The playground

Try any of 1042 endpoints — live.

Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.

Playground demo key · api.reefapi.com
post/holidays/v1/workday_count1 credit

business-day count over a date range: workdays/weekend_days/holiday_days + the holidays in range

Working example
Parameters

Range start date (inclusive), ISO YYYY-MM-DD.

Range end date (inclusive), ISO YYYY-MM-DD. Max range ~10 years.

2-letter ISO-3166 country code (e.g. US, GB, DE, TR, JP). 123 countries supported — call action='countries' for the full set. Case-insensitive.

Override the weekend definition with day names (e.g. 'Sat,Sun' or 'Fri,Sat'). Defaults to Sat+Sun (Fri+Sat for EG/BD).

Which holiday types count as a day off (comma-separated, case-insensitive). Defaults to Public only.

Optional ISO-3166-2 subdivision code (e.g. US-CA, GB-SCT) for region-precise business days. Omit for nationwide. Case-insensitive.

request preview
curl -X POST https://api.reefapi.com/holidays/v1/workday_count \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"country":"US","start":"2026-01-01","end":"2026-01-31"}'

Hit Send to run this endpoint live.