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
  • Runtime facts: 80f6d0ab09ca1b2bfaa51bc30934eca7d1f0ea7e38c9d075b9100f098998c5d9
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based billing; Default request estimate: $0.00089 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.00089
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

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"

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

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

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:
public_holidays
boolean

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

Response

Tool result data

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