API documentation
Base URL https://bankday.dev/v1. Every endpoint is a GET returning JSON. Dates are YYYY-MM-DD.
Quickstart
- Get a free API key (instant, 1,000 requests/month).
- Call an endpoint:
export BANKDAY_KEY=bd_live_... curl "https://bankday.dev/v1/today?calendar=us-fed" -H "Authorization: Bearer $BANKDAY_KEY"
Authentication
Send your key in the Authorization: Bearer header (preferred) or X-API-Key header. ?api_key= also works for quick tests, but keeps keys in logs, so avoid it in production. Keys can be rotated from the dashboard. CORS is open, but don't ship your key in public front-end code; call Bankday from your server.
Calendars
A calendar is a set of weekend days plus a list of closures. Three kinds:
- Payment rails (when money settles):
us-fedUS Federal Reserve (FedACH, Fedwire);us-fednowFedNow & RTP (24x7x365);eu-target2TARGET2 / T2 (Eurosystem);ca-paymentsPayments Canada (Lynx, ACSS);uk-bacsUK Bacs & Faster Payments settlement. - Exchanges (full-day trading closures), by ISO 10383 MIC:
xnys,xnas,xcme,xlon,xtse,xasx,xjpx,xhkg,xshg,xsheand 18 more. - Countries (national public holidays, local weekends), by ISO 3166 alpha-2 code:
us,gb,de,in… 247 countries.
Which one should I use? For US bank transfers, ACH and wires use us-fed, not us: the Fed's schedule differs from federal-government closures. For euro payments use eu-target2. For UK Direct Debits use uk-bacs. For trade settlement use the exchange.
Each calendar has a coverage range (most 2000–2040). Requests outside it return 422 date_out_of_range rather than a wrong answer.
Joint calendars
Pass several ids separated by commas. A day is a business day only if it is a business day on every calendar, and responses list which calendar closed it. Typical uses: cross-border payouts (us-fed,eu-target2), US equities settled in USD (xnys,us-fed), multi-country payroll.
Is a date a business day?
Returns whether date is a business day on the calendar, why not (weekend or the holiday name, per calendar), and the next and previous business days. On shortened trading sessions (e.g. NYSE 1:00 p.m. closes) the response also includes early_closes with the local close time. Alias: /v1/is-business-day.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
date required | YYYY-MM-DD |
curl "https://bankday.dev/v1/business-day?calendar=us-fed&date=2026-10-12" \ -H "Authorization: Bearer $BANKDAY_KEY"
{
"calendar": "us-fed",
"date": "2026-10-12",
"weekday": "Monday",
"business_day": false,
"closures": [{ "calendar": "us-fed", "reason": "holiday", "name": "Columbus Day" }],
"next_business_day": "2026-10-13",
"previous_business_day": "2026-10-09"
}
Today's status in the calendar's time zone
Same as business-day for the current date in the calendar's local time zone (e.g. America/New_York for us-fed), plus the next five holidays within 120 days.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
timezone | Optional IANA time zone overriding the calendar's own (default UTC for country calendars). |
curl "https://bankday.dev/v1/today?calendar=xnys" \ -H "Authorization: Bearer $BANKDAY_KEY"
Add or subtract business days
Moves days business days from date. The start date itself is not counted, so adding 1 business day to a Friday gives the following Monday (if it is open). Negative values go backwards.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
date required | YYYY-MM-DD |
days required | Integer between -2600 and 2600 |
curl "https://bankday.dev/v1/business-days/add?calendar=us-fed&date=2026-11-25&days=2" \ -H "Authorization: Bearer $BANKDAY_KEY"
{
"calendar": "us-fed",
"date": "2026-11-25",
"days": 2,
"result": "2026-11-30",
"result_status": { "date": "2026-11-30", "weekday": "Monday", "business_day": true, "closures": [] }
}
Count business days between two dates
Counts business days d with start < d ≤ end (the usual "how many business days until"). Pass include_start=true to count start ≤ d ≤ end. Returns a negative number when end is before start.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
start required | YYYY-MM-DD |
end required | YYYY-MM-DD |
include_start | true | false (default false) |
curl "https://bankday.dev/v1/business-days/count?calendar=gb&start=2026-12-18&end=2027-01-08" \ -H "Authorization: Bearer $BANKDAY_KEY"
Next (or previous) business day
The first business day strictly after date (default: today in the calendar's time zone). Use inclusive=true to return the date itself when it is a business day. /v1/business-days/previous works the same way backwards.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
date | YYYY-MM-DD (default today) |
inclusive | true | false (default false) |
curl "https://bankday.dev/v1/business-days/next?calendar=eu-target2&date=2026-12-24" \ -H "Authorization: Bearer $BANKDAY_KEY"
Adjust a date with a business-day convention
Rolls a non-business date using ISDA-style conventions: following, preceding, modified_following (following, unless that crosses into the next month), modified_preceding. Business days are returned unchanged.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
date required | YYYY-MM-DD |
convention | following (default) | preceding | modified_following | modified_preceding |
curl "https://bankday.dev/v1/business-days/roll?calendar=us-fed&date=2026-05-31&convention=modified_following" \ -H "Authorization: Bearer $BANKDAY_KEY"
List business days in a range
All business days between start and end inclusive (max 2 years).
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
start required | YYYY-MM-DD |
end required | YYYY-MM-DD |
format | json (default) or csv, e.g. for a spreadsheet IMPORTDATA |
curl "https://bankday.dev/v1/business-days?calendar=jp&start=2026-12-25&end=2027-01-10" \ -H "Authorization: Bearer $BANKDAY_KEY"
List holidays
Holidays for a year (default: current year) or a date range up to 10 years. For joint calendars every calendar's holidays are listed with a calendar field. Exchange calendars with shortened sessions also return early_closes for the range.
| Parameter | Description |
|---|---|
calendar required | Calendar id, or up to 10 comma-separated ids for a joint calendar (e.g. us-fed,eu-target2). Aliases such as nyse, ach, sepa, bacs are accepted. |
year | e.g. 2027 |
start / end | YYYY-MM-DD range instead of year |
format | json (default) or csv, e.g. for a spreadsheet IMPORTDATA |
curl "https://bankday.dev/v1/holidays?calendar=uk-bacs&year=2027" \ -H "Authorization: Bearer $BANKDAY_KEY"
FX spot value date
Spot date for a currency pair traded on trade_date. T+2 by default, T+1 for USD/CAD, USD/TRY, USD/RUB, USD/PHP and USD/KZT. The intermediate day only needs to be a business day for the non-USD currency; the spot date must be a business day for both currencies and, for crosses such as EURGBP, also a USD business day. Currencies map to settlement calendars (USD → us-fed, EUR → eu-target2, GBP → uk-bacs, others → country).
| Parameter | Description |
|---|---|
pair required | e.g. EURUSD, EUR/USD |
trade_date required | YYYY-MM-DD |
curl "https://bankday.dev/v1/fx/spot?pair=EURUSD&trade_date=2026-11-25" \ -H "Authorization: Bearer $BANKDAY_KEY"
{
"pair": "EURUSD",
"trade_date": "2026-11-25",
"spot_lag": 2,
"spot_date": "2026-11-27",
"calendars": { "EUR": "eu-target2", "USD": "us-fed" },
"convention": "T+2 spot: ..."
}
US ACH settlement estimate
Estimates when an ACH entry settles at the Federal Reserve, given when you submit it. Same Day ACH uses the three FedACH windows (submission deadlines 10:30 a.m., 2:45 p.m. and 4:45 p.m. ET; settlement 1:00, 5:00 and 6:00 p.m. ET) and the $1,000,000 per-payment limit. Standard ACH settles the next settlement day at 8:30 a.m. ET. Your bank's (ODFI's) cut-offs are earlier than the Fed's.
| Parameter | Description |
|---|---|
submitted_at | ISO 8601 timestamp with offset (default: now) |
type | standard (default) | same_day |
amount | Optional, in USD; same-day entries over $1M fall back to standard |
curl "https://bankday.dev/v1/ach/settlement?type=same_day&submitted_at=2026-10-09T17:10:00-04:00" \ -H "Authorization: Bearer $BANKDAY_KEY"
Payroll schedule
Every pay date in a year (or a range of up to 2 years) for a weekly, biweekly, semimonthly or monthly schedule. Pay dates that land on a weekend or holiday move to the previous business day by default, and each one comes with submit_by: the business day the payroll file is due, lead_days business days before the pay date. Use us-fed for US direct deposit and ca-payments for Canada. Pay dates are selected by their scheduled date, so a January 1 payday moved to December 31 still belongs to the new year.
| Parameter | Description |
|---|---|
calendar required | e.g. us-fed, ca-payments |
frequency required | weekly | biweekly | semimonthly | monthly |
year | Defaults to this year (or use start and end) |
anchor | Any regular pay date; required for weekly and biweekly |
days | Semimonthly days of the month: 15,last (default), 1,15, ... |
day | Monthly day of the month, 1-31 or last (default) |
adjust | preceding (default) | following | modified_preceding | modified_following | none |
lead_days | Business days before the pay date to submit, 0-10 (default 2) |
format | json (default) or csv, e.g. for a spreadsheet IMPORTDATA |
curl "https://bankday.dev/v1/payroll/schedule?calendar=us-fed&frequency=semimonthly&year=2027" \ -H "Authorization: Bearer $BANKDAY_KEY"
{
"calendar": "us-fed",
"frequency": "semimonthly",
"count": 24,
"adjusted_count": 8,
"pay_dates": [
{ "scheduled": "2027-01-15", "pay_date": "2027-01-15", "weekday": "Friday", "adjusted": false, "submit_by": "2027-01-13" },
{ "scheduled": "2027-01-31", "pay_date": "2027-01-29", "weekday": "Friday", "adjusted": true, "reason": "weekend", "submit_by": "2027-01-27" },
{ "scheduled": "2027-02-15", "pay_date": "2027-02-12", "weekday": "Friday", "adjusted": true, "reason": "Washington's Birthday (Presidents Day)", "submit_by": "2027-02-10" }
]
}
List calendars
All calendars with metadata (type, weekend days, time zone, coverage years, source). Filter with type and q. GET /v1/calendars/{id} returns one calendar plus this year's holidays.
| Parameter | Description |
|---|---|
type | rail | exchange | country |
q | Search text |
curl "https://bankday.dev/v1/calendars?type=rail" \ -H "Authorization: Bearer $BANKDAY_KEY"
Minimum wage at a place and date
Every minimum wage that applies at a location on a date: federal, state (or a state region such as New York City or the Portland metro area), county and city, with the one that governs, the tipped minimum cash wage, other rates for defined groups (youth, small employers, hotels, fast food, health care), the next scheduled change and changes whose amount isn't announced yet. Every rate carries its official source and the date we last checked it. Give an address or coordinates for an exact answer: they resolve to a Census county and incorporated place, so unincorporated areas and towns that opted out of a county ordinance come out right. A city and county name works too, and the response lists under may_apply any rate that depends on details a name can't settle. When a state's own rate depends on the county (Oregon), minimum_wage is null until you pass one. other_rates lists the group rates under each law that covers the location. Each employee is owed the highest rate that covers them, so a lower state or federal group rate doesn't override a city or county rate unless the local law exempts that group. Canada: pass the province code as state. Plans: federal and state rates are on every plan; city and county rates by name need Developer, and address or coordinate lookups need Business. On the Free plan, a lookup where a local rate applies returns minimum_wage: null and a local_rates note instead of a figure a local rate overrides.
| Parameter | Description |
|---|---|
address | US street address, e.g. 600 4th Ave, Seattle, WA 98104 (Business plan) |
lat, lon | Coordinates in decimal degrees (Business plan) |
state | Two-letter state, territory or Canadian province code, when not using an address |
county | County name, e.g. King County (optional) |
city | City name, e.g. Seattle (optional) |
date | YYYY-MM-DD, default today. Data starts on 2026-01-01. |
curl "https://bankday.dev/v1/minimum-wage?state=WA&city=Seattle&date=2027-01-01" \ -H "Authorization: Bearer $BANKDAY_KEY"
{
"date": "2027-01-01",
"location": { "country": "US", "state": "WA", "county": "King County", "county_fips": "53033", "city": "Seattle", "place_fips": "5363000", "incorporated": true, "resolved_by": "name" },
"currency": "USD",
"minimum_wage": 22.14,
"governing_jurisdiction": "us-wa-seattle",
"tipped_minimum_cash_wage": 22.14,
"rates": [
{ "jurisdiction": "us", "name": "United States", "level": "federal", "rate": 7.25, "tipped_cash_wage": 2.13, "effective": "2009-07-24", "source": "https://www.dol.gov/agencies/whd/minimum-wage", "verified": "2026-10-26" },
{ "jurisdiction": "us-wa", "name": "Washington", "level": "state", "rate": 17.73, "tipped_cash_wage": 17.73, "effective": "2027-01-01", "source": "https://lni.wa.gov/...", "verified": "2026-10-26" },
{ "jurisdiction": "us-wa-seattle", "name": "Seattle", "level": "city", "rate": 22.14, "tipped_cash_wage": 22.14, "effective": "2027-01-01", "source": "https://www.seattle.gov/...", "verified": "2026-10-26" }
],
"may_apply": [],
"other_rates": [
{ "jurisdiction": "us", "variant": "youth", "label": "Youth opportunity wage", "rate": 4.25, "effective": "1997-09-01" },
{ "jurisdiction": "us-wa", "variant": "youth-14-15", "label": "Workers aged 14 and 15", "rate": 15.07, "effective": "2027-01-01" }
],
"next_change": null,
"pending_changes": [
{ "jurisdiction": "us-wa", "name": "Washington", "effective": "2028-01-01", "note": "Annual CPI-W adjustment (August to August). L&I announces the new rate on September 30, 2027.", "source": "https://lni.wa.gov/..." },
{ "jurisdiction": "us-wa-seattle", "name": "Seattle", "effective": "2028-01-01", "note": "Annual inflation adjustment (Seattle-Tacoma-Bellevue CPI-W). The Office of Labor Standards announces the next year's rate by the fall.", "source": "https://www.seattle.gov/..." }
],
"warnings": [],
"data_as_of": "2026-10-27"
}
Minimum wage change feed
Every scheduled minimum wage change between from and to (default: the next 12 months), with the previous and new rate and the source, plus pending: changes that are scheduled but whose amount isn't published yet. Poll it monthly, or before January 1 and July 1, to update rates ahead of time. Supports format=csv. Business plan and above.
| Parameter | Description |
|---|---|
from / to | YYYY-MM-DD range |
state | Two-letter state or province code (optional) |
level | federal, state, region, county, city, province or territory (optional) |
include_variants | true to include youth, small employer and industry rates |
curl "https://bankday.dev/v1/minimum-wage/changes?from=2027-01-01&to=2027-01-01" \ -H "Authorization: Bearer $BANKDAY_KEY"
Jurisdictions we cover
Every jurisdiction in the minimum wage data, with its level, coverage and other rate groups. Filter by state, country or level. Supports format=csv. The full data with every rate and source is at /v1/minimum-wage/export (Scale plan, JSON or format=csv).
| Parameter | Description |
|---|---|
state | Two-letter state or province code (optional) |
level | Level filter (optional) |
curl "https://bankday.dev/v1/minimum-wage/jurisdictions?state=CA" \ -H "Authorization: Bearer $BANKDAY_KEY"
Your plan and usage
Plan, usage for the current month and usage history. Not counted toward your quota.
curl "https://bankday.dev/v1/account" \ -H "Authorization: Bearer $BANKDAY_KEY"
Errors
Errors use standard HTTP status codes and a JSON body:
{ "error": { "code": "date_out_of_range", "message": "...", "supported_years": [2000, 2040] } }
| Status | Codes |
|---|---|
| 400 | missing_parameter, invalid_date, invalid_parameter, invalid_range |
| 401 | missing_api_key, invalid_api_key |
| 403 | plan_required (the feature needs a higher plan; required_plan says which) |
| 404 | unknown_calendar, not_found, address_not_found |
| 422 | date_out_of_range, unsupported_currency, outside_coverage |
| 429 | quota_exceeded (Free plan only) |
| 503 | geocoder_unavailable (the Census geocoder didn't answer; retry, or pass state, county and city) |
Quotas & response headers
Each response includes x-quota-limit, x-quota-used, x-quota-remaining, x-plan and x-request-id. Free accounts are blocked at the monthly limit; paid plans continue with overage billing. Responses are deterministic for past dates, so cache them freely.
MCP server for AI agents
Bankday exposes a remote Model Context Protocol server at https://bankday.dev/mcp (streamable HTTP). Tools: is_business_day, add_business_days, count_business_days, list_holidays, today_status, fx_spot_date, ach_settlement_date, payroll_schedule, minimum_wage, minimum_wage_changes, search_calendars. Each tool call counts as one request.
{
"mcpServers": {
"bankday": {
"type": "http",
"url": "https://bankday.dev/mcp",
"headers": { "Authorization": "Bearer bd_live_..." }
}
}
}
Claude Code: claude mcp add --transport http bankday https://bankday.dev/mcp --header "Authorization: Bearer bd_live_..."
Code samples
JavaScript / TypeScript
async function bankday(path, params) {
const url = new URL("https://bankday.dev/v1/" + path);
Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v));
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.BANKDAY_KEY}` } });
if (!res.ok) throw new Error((await res.json()).error.message);
return res.json();
}
const { result } = await bankday("business-days/add", { calendar: "us-fed", date: "2026-12-23", days: 3 });
Python
import os, requests
def bankday(path, **params):
r = requests.get(f"https://bankday.dev/v1/{path}", params=params,
headers={"Authorization": f"Bearer {os.environ['BANKDAY_KEY']}"}, timeout=10)
r.raise_for_status()
return r.json()
print(bankday("business-day", calendar="xnys", date="2026-11-26")["business_day"]) # False
Go
req, _ := http.NewRequest("GET", "https://bankday.dev/v1/fx/spot?pair=EURUSD&trade_date=2026-11-25", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("BANKDAY_KEY"))
resp, err := http.DefaultClient.Do(req)
Google Sheets / Excel
=IMPORTDATA("https://bankday.dev/v1/business-days/add?calendar=us-fed&date=2026-12-23&days=3&api_key=YOUR_KEY")