Statistics All docs

Statistics API Reference

3 routes. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Statistics API page.

GET/v1/statistics/series1 credit

Curated headline economic series (GDP, inflation, unemployment, interest rates, house prices, wages, trade, public finance) from OECD, the IMF World Economic Outlook and OpenDOSM (Malaysia). With country, only series that have data there, with their period range. 1 credit.

ParameterInTypeRules
qquerystringmax 100 chars · Words to match in id, name, topic or unit, e.g. inflation, unemployment, house
sourcequerystringone of oecd, imf, dosm, adb
countryquerystringISO 3166-1 alpha-2 (or EA20, EU, G7, G20, OECD)
pagequeryinteger1 to 1000 · default 1
limitqueryinteger1 to 200 · default 50
GET/v1/statistics/series
curl 'https://api.apifor.dev/v1/statistics/series' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "imf.LUR",
      "source": "imf",
      "name": "Unemployment rate",
      "unit": "percent of total labour force",
      "frequency": "annual",
      "topic": "labour",
      "description": "IMF World Economic Outlook; recent and future years are IMF staff estimates and projections.",
      "country": "MY",
      "first_period": "1985",
      "last_period": "2031",
      "observations": 47,
      "last_updated": "2026-11-30"
    },
    {
      "id": "dosm.unemployment_rate",
      "source": "dosm",
      "name": "Unemployment rate",
      "unit": "percent",
      "frequency": "monthly",
      "topic": "labour",
      "description": null,
      "country": "MY",
      "first_period": "2010-01",
      "last_period": "2026-09",
      "observations": 201,
      "last_updated": "2026-11-30"
    }
  ],
  "meta": {
    "total": 2,
    "page": 1,
    "per_page": 50,
    "total_pages": 1,
    "attribution": {
      "source": "International Monetary Fund, World Economic Outlook database (via the IMF DataMapper API); Department of Statistics Malaysia (DOSM), Open...",
      "licence": "Per source; see sources",
      "license": "Per source; see sources",
      "license_url": "https://apifor.dev/sources",
      "source_url": "https://apifor.dev/sources",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "Source: International Monetary Fund, World Economic Outlook, https://www.imf.org/external/datamapper/. IMF data is available free of char...",
      "sources": [
        {
          "source": "International Monetary Fund, World Economic Outlook database (via the IMF DataMapper API)",
          "licence": "IMF Copyright and Usage terms: use and redistribution allowed with attribution to the IMF",
          "license": "IMF Copyright and Usage terms: use and redistribution allowed with attribution to the IMF",
          "license_url": "https://www.imf.org/en/About/copyright-and-terms",
          "source_url": "https://www.imf.org/external/datamapper/",
          "attribution_page": "https://apifor.dev/sources",
          "notice": "Source: International Monetary Fund, World Economic Outlook, https://www.imf.org/external/datamapper/. IMF data is available free of char..."
        },
        {
          "source": "Department of Statistics Malaysia (DOSM), OpenDOSM via api.data.gov.my",
          "licence": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
          "license": "Creative Commons Attribution 4.0 International (CC BY 4.0)",
          "license_url": "https://creativecommons.org/licenses/by/4.0/",
          "source_url": "https://open.dosm.gov.my/",
          "attribution_page": "https://apifor.dev/sources",
          "notice": "Source: Department of Statistics Malaysia (OpenDOSM), CC BY 4.0. Fields normalized by APIFor."
        }
      ]
    }
  }
}
  • 200Series
  • 400Invalid parameters
GET/v1/statistics/data1 credit

Observations for up to 10 series and 20 countries, ordered by series, country and period. Each row has series_id, country, period, value, unit, frequency, source and last_updated. 1 credit. ADB Key Indicators series (adb.*) cover BN, KH, ID, LA, MY, MM, PH, SG, TH, TL, VN; their responses carry the ADB notice 'Contains information from ADB Key Indicators Database, © ADB <year>'.

ParameterInTypeRules
series *querystringComma-separated series ids from /v1/statistics/series
country *querystringComma-separated ISO 3166-1 alpha-2 codes (or EA20, EU, G7, G20, OECD)
fromquerystringFirst period: YYYY, YYYY-MM or YYYY-Qn
toquerystringLast period, inclusive (to=2025 includes 2025-12 and 2025-Q4)
pagequeryinteger1 to 1000 · default 1
limitqueryinteger1 to 5000 · default 500
GET/v1/statistics/data
curl 'https://api.apifor.dev/v1/statistics/data?series=&country=' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "series_id": "dosm.unemployment_rate",
      "country": "MY",
      "period": "2026-06",
      "value": 3,
      "unit": "percent",
      "frequency": "monthly",
      "source": "dosm",
      "last_updated": "2026-11-30"
    },
    {
      "series_id": "dosm.unemployment_rate",
      "country": "MY",
      "period": "2026-07",
      "value": 3,
      "unit": "percent",
      "frequency": "monthly",
      "source": "dosm",
      "last_updated": "2026-11-30"
    },
    {
      "series_id": "dosm.unemployment_rate",
      "country": "MY",
      "period": "2026-08",
      "value": 2.9,
      "unit": "percent",
      "frequency": "monthly",
      "source": "dosm",
      "last_updated": "2026-11-30"
    }
  ],
  "meta": {
    "total": 18,
    "page": 1,
    "per_page": 6,
    "total_pages": 3,
    "series": [
      {
        "id": "oecd.cpi_yoy",
        "source": "oecd",
        "name": "Consumer prices, all items, change over 12 months",
        "unit": "percent",
        "frequency": "monthly",
        "topic": "prices",
        "description": null
      },
      {
        "id": "imf.NGDP_RPCH",
        "source": "imf",
        "name": "Real GDP growth",
        "unit": "percent",
        "frequency": "annual",
        "topic": "gdp",
        "description": "IMF World Economic Outlook; recent and future years are IMF staff estimates and projections."
      }
    ],
    "attribution": {
      "source": "OECD Data Explorer: Key Short-Term Economic Indicators and Analytical House Price Indicators; International Monetary Fund, World Economic...",
      "licence": "Per source; see sources",
      "license": "Per source; see sources",
      "license_url": "https://apifor.dev/sources",
      "source_url": "https://apifor.dev/sources",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "Source: OECD (2026), Key Short-Term Economic Indicators (DF_KEI) and Analytical House Price Indicators (DF_HOUSE_PRICES), OECD Data Explo...",
      "sources": [
        {
          "source": "OECD Data Explorer: Key Short-Term Economic Indicators and Analytical House Price Indicators",
          "licence": "OECD Terms and Conditions: data may be used for any purpose, including commercial use, with credit to the OECD",
          "license": "OECD Terms and Conditions: data may be used for any purpose, including commercial use, with credit to the OECD",
          "license_url": "https://www.oecd.org/en/about/terms-conditions.html",
          "source_url": "https://data-explorer.oecd.org/",
          "attribution_page": "https://apifor.dev/sources",
          "notice": "Source: OECD (2026), Key Short-Term Economic Indicators (DF_KEI) and Analytical House Price Indicators (DF_HOUSE_PRICES), OECD Data Explo..."
        },
        {
          "source": "International Monetary Fund, World Economic Outlook database (via the IMF DataMapper API)",
          "licence": "IMF Copyright and Usage terms: use and redistribution allowed with attribution to the IMF",
          "license": "IMF Copyright and Usage terms: use and redistribution allowed with attribution to the IMF",
          "license_url": "https://www.imf.org/en/About/copyright-and-terms",
          "source_url": "https://www.imf.org/external/datamapper/",
          "attribution_page": "https://apifor.dev/sources",
          "notice": "Source: International Monetary Fund, World Economic Outlook, https://www.imf.org/external/datamapper/. IMF data is available free of char..."
        }
      ]
    }
  }
}
  • 200Observations
  • 400Invalid parameters
GET/v1/statistics/coverageFree

Countries this service covers, with sources, licences, row counts and country-only fields. Free (0 credits), still needs an API key. Price note: Free.

GET/v1/statistics/coverage
curl 'https://api.apifor.dev/v1/statistics/coverage' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "service": "statistics",
    "global": true,
    "country_param": "required",
    "param_name": "country",
    "countries": [
      {
        "country": "AR",
        "market": null,
        "subdivision_levels": [],
        "rows": null,
        "updated_at": null,
        "sources": [
          {
            "name": "OECD Data Explorer (DF_KEI, DF_HOUSE_PRICES)",
            "url": "https://data-explorer.oecd.org/",
            "licence": "OECD Terms and Conditions (commercial use allowed with credit)",
            "attribution": "Source: OECD, Key Short-Term Economic Indicators / Analytical House Price Indicators"
          },
          {
            "name": "IMF World Economic Outlook (DataMapper API)",
            "url": "https://www.imf.org/external/datamapper/",
            "licence": "IMF Copyright and Usage terms (attribution; IMF data is available free of charge from the IMF)",
            "attribution": "Source: International Monetary Fund, World Economic Outlook. IMF data is available free of charge from the IMF."
          }
        ],
        "local_fields": [],
        "notes": "OECD headline short-term indicators from 2000 (CPI, unemployment, interest rates, GDP growth, production, trade, hourly earnings, confide..."
      },
      {
        "country": "AU",
        "market": null,
        "subdivision_levels": [],
        "rows": null,
        "updated_at": null,
        "sources": [
          {
            "name": "OECD Data Explorer (DF_KEI, DF_HOUSE_PRICES)",
            "url": "https://data-explorer.oecd.org/",
            "licence": "OECD Terms and Conditions (commercial use allowed with credit)",
            "attribution": "Source: OECD, Key Short-Term Economic Indicators / Analytical House Price Indicators"
          },
          {
            "name": "IMF World Economic Outlook (DataMapper API)",
            "url": "https://www.imf.org/external/datamapper/",
            "licence": "IMF Copyright and Usage terms (attribution; IMF data is available free of charge from the IMF)",
            "attribution": "Source: International Monetary Fund, World Economic Outlook. IMF data is available free of charge from the IMF."
          }
        ],
        "local_fields": [],
        "notes": "OECD headline short-term indicators from 2000 (CPI, unemployment, interest rates, GDP growth, production, trade, hourly earnings, confide..."
      }
    ]
  }
}
  • 200Coverage

Error handling · Rate limits · Prices