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.
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.
curl 'https://api.apifor.dev/v1/holidays' \
-G -d country=SK -d year=2024 -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"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
}
]
}curl 'https://api.apifor.dev/v1/airports' \
-G -d country=US -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"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
}
]
}curl 'https://api.apifor.dev/v1/ip' \
-G -d address=8.8.8.8 \
-H 'x-api-key: YOUR_API_KEY'{
"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
}
}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.
| Dataset | Endpoint | Records | Countries | Licence |
|---|---|---|---|---|
| Public Holidays Plan around public holidays, with dates, local names and regional scope. | /v1/holidays | 13k | 204 | MIT |
| Postal Codes Match postal codes to place names and administrative areas. | /v1/postal-codes | 1.84M | 124 | CC BY 4.0 |
| Airports Look up airport identifiers, locations, types and scheduled-service flags. | /v1/airports | 49k | 239 | Public domain |
| Ports Find port locations and reported harbour and vessel dimensions. | /v1/ports | 3,805 | 193 | Public domain / US government work |
| World Bank Indicators Read country-level development indicators and historical observations. | /v1/indicators | 298k | 217 | CC BY 4.0 |
| Universities Find university names, websites and institutional domains. | /v1/universities | 14k | 200 | MIT |
| Schools Find schools by name, type and administrative area. | /v1/schools | 94k | 1 | Publisher terms |
| Hospitals Look up hospitals with type, class, bed counts and location. | /v1/hospitals | 2,907 | 1 | Publisher terms |
| Administrative Regions Walk administrative areas level by level, from top-level regions down to villages. | /v1/regions | 92k | 1 | CC BY 4.0 |
| Prayer Times Read daily prayer times by region and date. | /v1/prayer-times | 186k | 1 | Publisher terms |
| Exchange Rates Get daily central bank reference rates by currency and date. | /v1/exchange-rates | 1,767 | 1 | Publisher terms |
| Earthquakes Query earthquake observations by location, magnitude and time. | /v1/earthquakes | Live feed | Global | Public domain / US government work |
| IP Geolocation Look up approximate locations and autonomous system information for IP addresses. | /v1/ip | Lookup | Global | CC BY 4.0 |
| Legal Entity Identifiers Look up legal entities using their LEI identifiers. | /v1/lei | By LEI | Global | CC0 1.0 |
| Countries Retrieve country codes, capitals, currencies and geographic reference fields. | /v1/countries | 252 | 252 | CC BY 4.0 |
| Cities Find populated places, coordinates, populations and time zones. | /v1/cities | 70k | 245 | CC BY 4.0 |
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
- Web page to markdown API1 credit
- Website screenshot API5 credits
- HTML to PDF API5 credits
- Phone number validation API1 credit
- Domain lookup API2 credits
- Sanctions screening API10 credits
- Company check API20 credits
- VAT rates and VAT number validation API1 credit
- Import duty and landed cost API2 credits
- Public tenders API1 credit
- Product recall API1 credit
From sign-up to your first call.
No card needed to start. The free allowance lands as soon as your email is verified.
- /01Sign up
- /02Verify email
- /031,000 requests
- /04Create a key
- /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.
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.
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.
{
"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
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
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.