Top host / origin countries
top_host_countriesRank countries by refugee numbers for a selected year, either by host country or country of origin, with optional normalization by population or GDP.
Instructions
Rank countries by a displacement metric for a year. by="asylum" (default) ranks host countries; by="origin" ranks countries people fled from. Set normalize_by="population" to rank per 1,000 residents (or "gdp" per US$1bn) — the ranking that shows Lebanon and Chad ahead of large economies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Rank hosts ("asylum") or origins ("origin") | |
| year | No | Year to rank (default: latest available) | |
| limit | No | How many rows (default 10) | |
| metric | No | Metric to rank by (default refugees) | |
| normalize_by | No | Normalize values by a denominator: "population" → per 1,000 residents, "gdp" → per US$1bn GDP. Requires the worldbank provider. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| unit | Yes | ||
| year | Yes | ||
| metric | Yes | ||
| source | Yes | ||
| ranking | Yes | ||
| normalize_by | Yes |