Government
UNHCR Data Portal logo

UNHCR Data Portal API

data.unhcr.org

UNHCR Operational Data Portal — document/dataset search and detail metadata.

Actions
2
Category
Government
Login
Not required
Output
JSON

Call the UNHCR Data Portal API

Submit a task, then poll the job until it settles. This example runs act_data_unhcr_org_document_detail.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_data_unhcr_org_document_detail",
    "params": {
      "document_id": "62038"
    }
  }'

2 actions on data.unhcr.org

Read

  • UNHCR Document Detail

    act_data_unhcr_org_document_detailread1 credit / call

    Fetch full metadata for one UNHCR document by id (title, type, language, dates, sectors, locations, downloads).

    document_id
    string · required
  • UNHCR Document Search

    act_data_unhcr_org_document_searchread1 credit / call

    Search UNHCR Operational Data Portal documents/datasets; returns title, id, url, type, download metadata.

    search_query
    string · required

UNHCR Data Portal API questions

Is there an API for UNHCR Data Portal?
UNHCR Data Portal does not offer a public data API for this, but Anakin Wire provides 2 maintained endpoints for data.unhcr.org. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape UNHCR Data Portal data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when data.unhcr.org changes its markup, Anakin updates the action.
Do I need a UNHCR Data Portal account?
No. Every UNHCR Data Portal action listed here runs anonymously — no account and no credentials required.
What does the UNHCR Data Portal API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Government APIs

All Government sites