← Back to Abstract
GET/v1
Public Holidays Lookup
Get holidays for a specific country, year, month, and day.
Abstract·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "abstractapi/public-holidays",
path: "/v1",
query: {
"country": "example",
"year": "example"
}
});
console.log(output);Query parameters
countryrequired
string
2-letter country code (e.g. US)
yearrequired
string
Year (e.g. 2024)
month
string
Month (1-12)
day
string
Day (1-31)