Abstract API — Holidays
holidays.abstractapi.com · Developer Tools
Public and national holidays for 200+ countries via Abstract API. Includes holiday name, date, type, and localized description. Free tier: 1,000 requests/month.
Authentication
API Key
Free API key at abstractapi.com. Pass as ?api_key= query parameter.
Sample Requests
GET
Get country holidays
Get US holidays in December 2026.
https://holidays.abstractapi.com/v1?year=2026&month=12&api_key=YOUR_KEY&country=US
Hover any highlighted part to learn what it does
curl -X GET "https://holidays.abstractapi.com/v1/?year=2026&month=12&api_key=YOUR_KEY&country=US"
import requests
params = {
"year": "2026",
"month": "12",
"api_key": "YOUR_KEY",
"country": "US"
}
response = requests.get(
"https://holidays.abstractapi.com/v1/",
params=params,
)
print(response.json())const url = new URL('https://holidays.abstractapi.com/v1/');
url.searchParams.set('year', '2026');
url.searchParams.set('month', '12');
url.searchParams.set('api_key', 'YOUR_KEY');
url.searchParams.set('country', 'US');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://holidays.abstractapi.com/v1/")
q := baseURL.Query()
q.Set("year", "2026")
q.Set("month", "12")
q.Set("api_key", "YOUR_KEY")
q.Set("country", "US")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://holidays.abstractapi.com/v1/")
uri.query = URI.encode_www_form({
"year" => "2026",
"month" => "12",
"api_key" => "YOUR_KEY",
"country" => "US"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://holidays.abstractapi.com/v1/?" . http_build_query([
"year" => "2026",
"month" => "12",
"api_key" => "YOUR_KEY",
"country" => "US"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- Get a free API key at abstractapi.com/holidays-api
- Pass api_key=YOUR_KEY as query param
- GET /?api_key=KEY&country=GB&year=2026 — all UK holidays in 2026
- Add &month=3 to filter by month
- Abstract API also offers: VAT validation, IP geolocation, email validation, phone validation