GnistAI GnistAI
Log in

International Migration (UNHCR)

Global displacement statistics from UNHCR — refugees, asylum seekers, IDPs, stateless persons. 70+ years of data across 200+ countries with demographics and durable solutions.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Government

Data source: UNHCR Population Statistics API

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/migration/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-migration": {
      "url": "https://context.gnist.ai/mcp/migration/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/migration/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/migration/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/migration/report_feedback?feedback=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/migration/report_feedback",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "feedback": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc migration

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

get_population
Get refugee, asylum seeker, IDP, and stateless population statistics from UNHCR.
ParameterTypeRequiredDescription
yearanyoptionalFilter by year (1951–2025). Example: 2023.
country_of_originanyoptionalISO country code of origin (2 or 3 letter). Example: 'SYR' for Syria, 'UA' for Ukraine.
country_of_asylumanyoptionalISO country code of asylum (2 or 3 letter). Example: 'DEU' for Germany, 'US' for United States.
limitintegeroptionalResults per page (1-100). (default: 20)
pageintegeroptionalPage number. (default: 1)
get_demographics
Get age and gender demographic breakdowns of displaced populations.
ParameterTypeRequiredDescription
yearanyoptionalFilter by year (1951–2025).
country_of_originanyoptionalISO country code of origin.
country_of_asylumanyoptionalISO country code of asylum.
limitintegeroptionalResults per page (1-100). (default: 20)
pageintegeroptionalPage number. (default: 1)
get_solutions
Get durable solutions data — refugee returns, resettlement, and naturalisation.
ParameterTypeRequiredDescription
yearanyoptionalFilter by year (1951–2025).
country_of_originanyoptionalISO country code of origin.
country_of_asylumanyoptionalISO country code of asylum.
limitintegeroptionalResults per page (1-100). (default: 20)
pageintegeroptionalPage number. (default: 1)
list_countries
List all countries and territories in the UNHCR displacement dataset.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related