all-about-apikey/calendarific
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Calendarific

Description

Worldwide Holidays

Example Request

  • Curl
curl "https://calendarific.com/api/v2/holidays?api_key={{token}}&country=US&year=2021"
  • Raw
GET /api/v2/holidays?api_key={{token}}&country=US&year=2021 HTTP/1.1
Host: calendarific.com

Response

  • Success
{
    "meta":{
        "code":200
    },
    "response":{
        "holidays":[{
            "name":"New Year's Day",
            "description":"New Year's Day is the first day of the Gregorian calendar, which is widely used in many countries such as the USA.",
            "country":{
                "id":"us",
                "name":"United States"
            },
            "date":{
                "iso":"2021-01-01",
                "datetime":{
                    "year":2021,
                    "month":1,"day":1
                    }
                },
                ...
  • Error
{
    "meta":{
        "code":401,
        "error_type":"auth failed",
        "error_detail":"Missing or invalid api credentials. See https:\/\/calendarific.com\/api for details."
        },
    "response":[]
}

Regex

[a-z0-9]{40}

Example API key

fb928595c436941d6cbbcd4b408vk49d3993312d