all-about-apikey/abstract-public-holidays
Muhammad Daffa 043959c57d Minor changes 2022-07-25 13:04:42 +07:00
..
README.md Minor changes 2022-07-25 13:04:42 +07:00

README.md

Abstract Public Holidays

Description

Data on national, regional, and religious holidays via API

Example Request

  • Curl
curl "https://holidays.abstractapi.com/v1/?api_key={{token}}&country=GB&year=2021&month=1&day=25"
  • Raw
GET /v1/?api_key={{token}}&country=GB&year=2021&month=1&day=25 HTTP/1.1
Host: holidays.abstractapi.com

Response

  • Success
{
    "total_count":1,
    "limit":100,
    "offset":0,
    "entries":[
        {
            "type":"collection",
            "name":"Favorites",
            "collection_type":"favorites",
            "id":"8830329105"
        }
    ]
}
  • Error
{
    "error":{
        "message":"Invalid API key provided.",
        "code":"unauthorized",
        "details":null
    }
}

Regex

[a-z0-9]{32}

Example API key

of3ab02f3xd12ldofxc3fosc129sd241