One key. Public data for every country.

Holidays, airports, postal codes and 13 more datasets, over REST or MCP.

1,000 free requests. No card.

2.66Mrecords in the snapshot
254countries and territories
16datasets
28 Nov 2026coverage snapshot
/01 A real call

See exactly what comes back.

These are the documented example responses from our OpenAPI file. Copy the request, add your key, and you get the same shape.

200 OK
GET/v1/holidays
curl 'https://api.apifor.dev/v1/holidays' \
  -G -d country=SK -d year=2024 -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Response, application/json
{
  "success": true,
  "data": [
    {
      "id": 10889,
      "country_code": "SK",
      "date": "2024-01-01",
      "year": 2024,
      "local_name": "Deň vzniku Slovenskej republiky",
      "name": "Day of the Establishment of the Slovak Republic",
      "is_global": 1,
      "is_fixed": 0,
      "counties": null,
      "types": "Public",
      "launch_year": null
    }
  ]
}
GET/v1/airports
curl 'https://api.apifor.dev/v1/airports' \
  -G -d country=US -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Response, application/json
{
  "success": true,
  "data": [
    {
      "ident": "00AA",
      "icao": null,
      "iata": null,
      "gps_code": "00AA",
      "local_code": "00AA",
      "name": "Aero B Ranch Airport",
      "type": "small_airport",
      "lat": 38.704022,
      "lng": -101.473911,
      "elevation_ft": 3435,
      "continent": "NA",
      "country": "US",
      "country_name": "United States",
      "region": "US-KS",
      "region_name": "Kansas",
      "municipality": "Leoti",
      "scheduled_service": 0,
      "home_link": null,
      "wikipedia_link": null
    }
  ]
}
GET/v1/ip
curl 'https://api.apifor.dev/v1/ip' \
  -G -d address=8.8.8.8 \
  -H 'x-api-key: YOUR_API_KEY'
Response, application/json
{
  "success": true,
  "data": {
    "address": "8.8.8.8",
    "version": 4,
    "id": 18894,
    "continent": "NA",
    "country": "US",
    "region": "California",
    "city": "Mountain View",
    "lat": 37.422,
    "lon": -122.085
  }
}
/02 Datasets

Pick a dataset, then a country.

Every dataset lists its source, its licence and how many records we hold per country. The counts come from a dated database snapshot, so you can check coverage before you write any code.

DatasetEndpointRecordsCountriesLicence
/03 Services

Services, priced per call.

For jobs that need a live lookup or a browser. They use the same key and credits as the datasets, and a failed call costs nothing. All services

/04 Getting started

From sign-up to your first call.

No card needed to start. The free allowance lands as soon as your email is verified.

  1. /01Sign up
  2. /02Verify email
  3. /031,000 requests
  4. /04Create a key
  5. /05Call /v1

OAuth sign-in counts as verified. Each dataset request uses one credit, and the public catalogue at /v1/catalog is free to call without a key.

/05 Access

REST for your code. MCP for your assistant.

Both run on the same account and draw from the same credits. Prototype in an AI client, then ship the same queries from your backend.

REST

Plain HTTPS and JSON. Send your key in the x-api-key header, filter with query parameters, page with page and limit.

server.js
const res = await fetch('https://api.apifor.dev/v1/airports?country=BR', {
  headers: { 'x-api-key': process.env.APIFOR_API_KEY },
});
const { data } = await res.json();
  • OpenAPI document at /v1/openapi.json, with an example response for every operation
  • Explicit pagination, no silent truncation
  • One credit per dataset request

MCP

Add https://mcp.apifor.dev/mcp to any MCP client that supports remote servers. Sign in with OAuth or pass your API key as a Bearer token.

mcp.json
{
  "mcpServers": {
    "apifor": {
      "url": "https://mcp.apifor.dev/mcp"
    }
  }
}
  • OAuth sign-in or Bearer API key
  • Same datasets, services and credits as REST
  • MCP setup guide
/06 Pricing

Start free. Pay per request after that.

No subscription. When you need more, buy a credit pack. One credit covers one dataset request, services list their price per call, and credits never expire. Pricing details

Free$01,000 requestsOnce, after email verification
Starter$55,000 requests$1.00 per 1,000
Growth$1930,000 requests$0.63 per 1,000
Scale$49100,000 requests$0.49 per 1,000
Pro$149400,000 requests$0.37 per 1,000
/07 Questions

Questions people ask first.

Is the free allowance monthly?

No. You get 1,000 free requests once, after email verification. OAuth sign-in counts as verified.

How are paid requests billed?

Prepaid credit packs. One credit pays for one request. Packs start at $5 for 5,000 requests and credits never expire.

Does every dataset cover every country?

No. Coverage depends on the source. Country pages below are generated only for datasets with records in our verified database snapshot.

Can I use the data commercially?

Check the source and licence for each dataset. Attribution and other source terms still apply when you use the API.

Start with a thousand free requests.

Create an account, verify your email and copy your key from the dashboard.

Get a free API key