Discover/data.unhcr.org API
live

data.unhcr.org APIdata.unhcr.org

Access UNHCR refugee situations, population data, countries, regions, documents, and partner organizations via 11 structured endpoints.

Endpoints
11
Updated
10d ago
Try it

No input parameters required.

api.parse.bot/scraper/9db8fcad-49c4-48d2-b8ad-bd3e2229dab0/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/9db8fcad-49c4-48d2-b8ad-bd3e2229dab0/list_situations' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 11 totalclick to expand

List all active refugee/displacement situations tracked by UNHCR. Returns situation names and URL slugs. Deduplicates entries by slug.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "situations": "array of situation objects, each with 'name' (string) and 'slug' (string)"
  },
  "sample": {
    "data": {
      "situations": [
        {
          "name": "Afghanistan situation",
          "slug": "afghanistan"
        },
        {
          "name": "Ukraine Refugee Situation",
          "slug": "ukraine"
        }
      ]
    },
    "status": "success"
  }
}

About the data.unhcr.org API

This API exposes 11 endpoints covering UNHCR's Operational Data Portal, returning structured data on refugee and displacement situations, country and regional bureau pages, population statistics, and document repositories. The get_situation_population_data endpoint retrieves time series and geographic population figures by situation slug, while search_documents lets you query UNHCR reports by keyword with pagination support.

Situations and Population Data

The list_situations endpoint returns all active displacement situations tracked by UNHCR, each with a name and slug. Pass that slug to get_situation_detail to retrieve associated widget API URLs, including widget_id and sv_id fields where available. For richer data, get_situation_population_data fetches population-related widget data for a situation — each result includes an api_url and a data object containing geographic coordinates, population group metadata, and time series statistics.

Countries and Regions

list_countries returns every country covered by the portal with ISO 3166-1 alpha-3 codes (lowercase, e.g. afg, col). Use that iso3 value with get_country_detail to retrieve widget API URLs for that country page. UNHCR's regional bureaus are available via list_regions, returning name and slug per bureau. get_region_detail takes a region slug (e.g. rbesa, rbap) and returns its widget URLs. Note that region detail requests may be slow due to large widget parameter lists.

Documents and Repositories

search_documents accepts optional query and page parameters and returns document id, title, and url fields sorted by relevance. Omitting the query returns recent documents. Retrieve per-document metadata with get_document_detail using a numeric document_id; the metadata object can include Publish Date, Upload Date, Document Type, and Document Language when those fields are present. list_document_repositories returns all UNHCR document repositories with name, slug, and url.

Partners

get_partners returns a deduplicated list of partner organization names working with UNHCR, with empty and placeholder entries filtered out. The response is a flat array of objects each containing a single name field.

Common use cases
  • Track displacement trends over time using time series data from get_situation_population_data for a specific situation slug
  • Build a country-level humanitarian dashboard by combining get_country_detail widget URLs with ISO3 codes from list_countries
  • Search UNHCR reports by keyword with search_documents and retrieve publish date and document type via get_document_detail
  • Enumerate all UNHCR regional bureaus and their associated data widgets using list_regions and get_region_detail
  • Compile a directory of UNHCR partner organizations for NGO mapping using get_partners
  • Catalog available document repositories with names and URLs via list_document_repositories for research pipeline indexing
  • Cross-reference situation slugs with geographic and population group metadata to support academic displacement research
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does data.unhcr.org have an official developer API?+
UNHCR provides some public data access through its Population Data portal at https://www.unhcr.org/refugee-statistics/download/ and a separate API at https://api.unhcr.org, but the Operational Data Portal at data.unhcr.org does not expose a formally documented public developer API. This Parse API covers the Operational Data Portal specifically.
What does `get_situation_population_data` return beyond simple totals?+
It returns an array where each entry includes the source api_url and a data object that can contain geographic coordinates, population group metadata (such as refugee, IDP, or returnee categories), and time series data showing how population figures have changed over time for that situation.
Does the document search support filtering by document type or date range?+
The search_documents endpoint accepts a query keyword and a page number for pagination, but does not currently expose filters for document type, date range, or language. You can retrieve per-document metadata including Document Type and Publish Date individually via get_document_detail. You can fork this API on Parse and revise it to add filtering logic on top of those fields.
Is there an endpoint for individual situation funding or financial response data?+
Not currently. The API covers situation details, population data, country and region widgets, documents, partners, and repositories. Financial response plan data (e.g. funding requirements or contributions) is not exposed. You can fork this API on Parse and revise it to add an endpoint targeting UNHCR's funding data widgets.
Are there any known quirks with the region detail endpoint?+
Yes. The get_region_detail endpoint is documented to be slow due to large widget parameter lists on regional bureau pages. If you are polling multiple regions in sequence, building in request delays or processing them asynchronously will reduce timeout risk.
Page content last updated . Spec covers 11 endpoints from data.unhcr.org.
Related APIs in Government PublicSee all →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.