API Documentation
Everything runs on one base URL, https://api.apifor.dev, and one header, x-api-key. Responses are JSON with a success flag and a data field.
Try it
curl 'https://api.apifor.dev/v1/holidays' \
-G -d country=JP -d year=2026 \
-H 'x-api-key: YOUR_API_KEY'QuickstartKey to first request in three stepsAuthenticationx-api-key headerMCP serverhttps://mcp.apifor.devErrors and limitsStatus codes, 429 handling
Endpoint reference
Generated from the OpenAPI document at /v1/openapi.json, with parameters, example requests and example responses for every route.
Public Holidays/v1/holidaysPostal Codes/v1/postal-codesAirports/v1/airportsPorts/v1/portsWorld Bank Indicators/v1/indicatorsUniversities/v1/universitiesEarthquakes/v1/earthquakesIP Geolocation/v1/ipLegal Entity Identifiers/v1/leiCountries/v1/countriesCities/v1/citiesIndonesia · Regions/v1/id/regionsIndonesia · Public holidays/v1/id/holidaysIndonesia · Postal codes/v1/id/postal-codesIndonesia · Schools/v1/id/schoolsIndonesia · Universities/v1/id/universitiesIndonesia · Hospitals/v1/id/hospitalsIndonesia · Prayer times/v1/id/prayer-timesIndonesia · Exchange rates/v1/id/exchange-rates