GET/v1/date/add
Add calendar or business days to a date
Negative days go backwards. With business=true weekends (and holidays, if country is given) are skipped.
PARAMETERS
- startquery · stringREQUIRED
- Start datee.g. 2026-12-23
- daysquery · integerREQUIRED
- Days to add (negative to subtract)e.g. 5
- businessquery · boolean
- Count business days instead of calendar dayse.g. false
- countryquery · string
- Country for holidays and weekend definitione.g. US
- subdivisionquery · string
- State / province for regional holidayse.g. string
REQUEST
curl "https://api.apialmanac.com/v1/date/add?start=2026-12-23&days=5" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/date/add?start=2026-12-23&days=5", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/date/add?start=2026-12-23&days=5", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"start": "2026-12-23",
"days": 5,
"business": true,
"result": "2026-12-31",
"weekday": "Thursday",
"calendar_days_elapsed": 8,
"calendar_used": "United States",
"skipped": [
{
"date": "2026-12-25",
"reason": "Christmas Day"
},
{
"date": "2026-12-26",
"reason": "weekend"
},
{
"date": "2026-12-27",
"reason": "weekend"
}
]
}