Skip to main content
POST
Get Working Days

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-working-days
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-working-days
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

Country code (2-letter ISO 3166-1 alpha-2 code, e.g., 'US' for United States, 'GB' for United Kingdom).

Required string length: 2
Examples:

"US"

"GB"

"DE"

"FR"

"JP"

month
integer

Month number (1-12). If specified, returns working days for that specific month only.

Required range: 1 <= x <= 12
Examples:

1

6

12

public_holidays
boolean

Whether to include public holidays as non-working days. Defaults to true if not specified.

weekend
enum<string>[]

Weekend days. Each item must be mon, tue, wed, thu, fri, sat, or sun. Overrides the country's default weekend.

Minimum array length: 1
Available options:
mon,
tue,
wed,
thu,
fri,
sat,
sun
Examples:
year
integer

Calendar year 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

non_working_days
object[]
required
num_non_working_days
integer
required
num_working_days
integer
required
working_days
string[]
required