DocsTry itStatusPricing

GET /v1/is-business-day

GET /v1/is-business-day?country=&date= answers true or false for one date, and gives the reason when the answer is false.

Live

Parameters

ParameterNotes
countryISO alpha-2.
dateYYYY-MM-DD, inside 2026.

Response fields

FieldMeaning
is_business_daytrue when the date is a working day in that country.
reasonweekend or holiday (with the name) when false, null when true.
weekend_ruleThe weekend applied, Sat-Sun or Fri-Sat.

Three checks worth running

CallResultWhy
country=US&date=2026-01-03falseSaturday in the US.
country=SA&date=2026-01-02falseFriday is weekend in Saudi Arabia.
country=SA&date=2026-01-04trueSunday is a working day in Saudi Arabia.

Use this endpoint at checkout or scheduling time, when one date is all you have. A whole range belongs on the business-days endpoint, which costs one call instead of thirty.

Examples you can run

curl:

curl -s "https://api.kingai.work/v1/is-business-day?country=SA&date=2026-01-02"

Error codes

HTTPCodeMeaning
400invalid_parameterA parameter is missing or malformed, for example a date that is not YYYY-MM-DD.
404country_not_foundThe country code is not in the covered set of 12.
404year_not_coveredOnly 2026 is in the dataset. Other years return this error instead of a guess.

Errors use one shape: {"error": {"code": "...", "message": "..."}}. Try the bad-country button in the console to see one.