Government Legal
UN Data logo

UN Data API

data.un.org

UN data portal - datasets, indicators, locations, and time-series tables.

Actions
7
Category
Government Legal
Login
Not required
Output
JSON

Call the UN Data API

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

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_un_org_indicator_catalog_listing",
    "params": {
      "df": "f2847225-7eb1-4c87-8bd1-4b00c64c00dc"
    }
  }'

7 actions on data.un.org

Read

  • Indicator Catalog Listing

    act_data_un_org_indicator_catalog_listingread2 credits / call

    Returns the indicator and dataset catalog with names, descriptions, and sources, optionally filtered by keyword.

    df
    string · required
    search_query
    string
  • Indicator Data Table

    act_data_un_org_indicator_data_tableread2 credits / call

    Returns time-series values for an indicator, location, and year range, with estimate types.

    indicator_id
    string · required
    location_id
    string · required
    time_range
    string · required
    end_year
    string · required
    route
    string · required
    sub_route
    string · required
    df
    string · required
    referer
    string
  • Indicator Dimension Metadata

    act_data_un_org_indicator_dimension_metadataread2 credits / call

    Returns an indicator's available dimensions such as age, sex, and variant values.

    indicator_id
    string · required
    df
    string · required
    referer
    string
  • Location Alphabetical Listing

    act_data_un_org_location_alphabetical_listingread1 credit / call

    Returns the alphabetical list of countries and regions with ISO codes and coordinates.

  • Table Dimension Setup

    act_data_un_org_table_dimension_setupread2 credits / call

    Returns the dimension configuration available for a given table view.

    route
    string · required
    sub_route
    string · required
  • Time Dimension Listing

    act_data_un_org_time_dimension_listingread1 credit / call

    Returns available year values for the start or end of a date range.

    time_type
    string · required
  • Topic Taxonomy Listing

    act_data_un_org_topic_taxonomy_listingread1 credit / call

    Returns the topic taxonomy such as Population, Fertility, and Mortality with IDs and names.

UN Data API questions

Is there an API for UN Data?
UN Data does not offer a public data API for this, but Anakin Wire provides 7 maintained endpoints for data.un.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 UN Data 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.un.org changes its markup, Anakin updates the action.
Do I need a UN Data account?
No. Every UN Data action listed here runs anonymously — no account and no credentials required.
What does the UN Data 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 Legal APIs

All Government Legal sites