Skip to main content
POST
Get Public Holidays

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-public-holidays
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-public-holidays
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
country
string
required

2-letter ISO country code or full country name (e.g., 'US', 'United States', 'GB', 'United Kingdom'). Determines which country's public holidays to retrieve.

Examples:

"US"

"United States"

"GB"

"CA"

"FR"

year
integer

Calendar year to retrieve public holidays for. Must be between 1980 and 2050 (inclusive). Defaults to current year if not specified.

Required range: 1980 <= x <= 2050
Examples:

2024

2025

2026

Response

Tool result data

details
object[]
required