# Nager.Date on Onekey > 5 endpoints for Nager.Date (5 stable, 0 beta), 1 to 5 credits each. Category: Fun & utilities. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/nager Reference (Markdown): https://onekey.dev/docs/api/nager.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 5 mapped Nager.Date endpoints return each: - `entity.name` (string): 4 - `entity.category` (string): 3 - `entity.date` (ISO 8601 date): 3 - `entity.description` (string): 3 - `entity.id` (string): 2 - `entity.createdAt` (ISO 8601 date): 1 - plus 6 platform-specific fields under `ext.` ## Endpoints ### nager.countries Countries supported by the holiday API. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/nager/countries` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name` - Reference: https://onekey.dev/docs/api/nager/countries.md ### nager.country_info Country info (names, region, borders) from the holiday API. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/nager/country_info?country=us` with header `x-api-key: YOUR_API_KEY` - Parameters: - `country` (string, required): ISO 3166-1 alpha-2, e.g. US - Fields returned: `entity.id`, `entity.name`, `entity.description`, `entity.category`, `ext.firstBorder` - Reference: https://onekey.dev/docs/api/nager/country_info.md ### nager.long_weekends Long weekends of a country in a year. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/nager/long_weekends?year=2025&country=us` with header `x-api-key: YOUR_API_KEY` - Parameters: - `year` (string, required): Year - `country` (string, required): ISO 3166-1 alpha-2, e.g. US - Fields returned: `entity.date`, `entity.createdAt`, `ext.days`, `ext.needsBridgeDay` - Reference: https://onekey.dev/docs/api/nager/long_weekends.md ### nager.next_holidays Upcoming public holidays of a country. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/nager/next_holidays?country=us` with header `x-api-key: YOUR_API_KEY` - Parameters: - `country` (string, required): ISO 3166-1 alpha-2, e.g. US - Fields returned: `entity.date`, `entity.name`, `entity.description`, `entity.category`, `ext.symbol` - Reference: https://onekey.dev/docs/api/nager/next_holidays.md ### nager.public_holidays Public holidays of a country in a year. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/nager/public_holidays?year=2025&country=us` with header `x-api-key: YOUR_API_KEY` - Parameters: - `year` (string, required): Year - `country` (string, required): ISO 3166-1 alpha-2, e.g. US - Fields returned: `entity.date`, `entity.name`, `entity.description`, `entity.category`, `ext.symbol`, `ext.nationwide`, `ext.fixedDate` - Reference: https://onekey.dev/docs/api/nager/public_holidays.md ## Sample request ```bash curl "https://api.onekey.dev/v1/nager/country_info?country=us" \ -H "x-api-key: YOUR_API_KEY" ```