NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

Unemployment API

The Unemployment API provides historical, current, and projected future unemployment statistics about every country in the world.

(4.2)

From 4,745 users

1,800+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
402ms433ms463ms868ms1336ms

Didn't find what you were looking for? Suggest an improvement


/v1/unemployment GET

https://api.api-ninjas.com/v1/unemployment

Get unemployment data for a given country. Returns historical, current and forecast unemployment statistics.

Parameters

At least one of the following parameters must be set: country, year

  • country  optional

    Country name (case-insensitive) or 2-letter ISO-3166 alpha-2 code of the country. E.g. Canada or CA.

  • year  optional

    Year for which to retrieve unemployment data.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • country

    The 3-letter ISO country code.

  • year

    The year for which the unemployment data is reported.

  • unemployment_rate

    The unemployment rate as a percentage.

Sample Request Live Demo!

country
year

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

https://api.api-ninjas.com/v1/unemployment?country=Canada

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      country:"CAN",
      year:1980,
      unemployment_rate:7.5
    },
    {
      country:"CAN",
      year:1981,
      unemployment_rate:7.6
    },
    {
      country:"CAN",
      year:1982,
      unemployment_rate:11.1
    },
    "..."
]

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/unemployment?country=United%20States" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the Unemployment API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.
  • The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.
  • Call the /v1/unemployment endpoint with at least one of the country or year parameters. The country value accepts a case-insensitive country name or 2-letter ISO-3166 alpha-2 code (e.g. Canada or CA), and year filters the data to a single year. Sign up for a free API key to get started.
  • The API returns a JSON array of objects, each containing country (the 3-letter ISO country code), year (the reported year), and unemployment_rate (the unemployment rate as a percentage). See the error codes page for details on unsuccessful requests.
  • It provides historical, current, and projected future unemployment statistics for every country in the world. To analyze it alongside other macroeconomic indicators, pair it with the GDP API, Inflation API, or Population API.
  • It is useful for building economic dashboards, comparing labor-market trends across countries, and powering financial or research applications that track unemployment_rate over time. Combine it with the Country API for richer per-country context, and review our pricing for higher request volumes.