Abstract API Public Holidays API

Holiday lookup operations

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/email-reputation-breach-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/phone-intelligence-phone-country-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-geolocation-currency-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-intelligence-asn-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/company-enrichment-company-enrichment-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/exchange-rates-convert-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/public-holidays-holiday-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/timezones-convert-time-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/vat-validation-vat-calculate-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/iban-validation-iban-validation-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/image-processing-image-processing-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/web-scraping-web-scraping-response-schema.json

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/email-reputation-breach-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/phone-intelligence-phone-country-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-geolocation-currency-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-intelligence-asn-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/company-enrichment-company-enrichment-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/exchange-rates-convert-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/public-holidays-holiday-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/timezones-convert-time-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/vat-validation-vat-calculate-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/iban-validation-iban-validation-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/image-processing-image-processing-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/web-scraping-web-scraping-response-example.json

OpenAPI Specification

abstract-api-public-holidays-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Abstract API Avatars Public Holidays API
  description: Create highly customizable avatar images using a person's name or initials. Supports color, font, and size customization for user profile images.
  version: 1.0.0
  contact:
    url: https://www.abstractapi.com/
  x-generated-from: documentation
servers:
- url: https://avatars.abstractapi.com/v1
  description: Avatars API v1
security:
- apiKey: []
tags:
- name: Public Holidays
  description: Holiday lookup operations
paths:
  /:
    get:
      operationId: getPublicHolidays
      summary: Abstract API Get Public Holidays
      description: Retrieve public, local, religious, and other holidays for a given country and optional date filter.
      tags:
      - Public Holidays
      parameters:
      - name: api_key
        in: query
        required: true
        description: Your unique API key for the Public Holidays API.
        schema:
          type: string
        example: abc123def456
      - name: country
        in: query
        required: true
        description: ISO 3166-1 alpha-2 two-letter country code.
        schema:
          type: string
        example: US
      - name: year
        in: query
        required: false
        description: Year to query (required on free plan). Defaults to current year on paid.
        schema:
          type: string
        example: '2026'
      - name: month
        in: query
        required: false
        description: Month to query (1-12, required on free plan). Defaults to current month.
        schema:
          type: string
        example: '4'
      - name: day
        in: query
        required: false
        description: Day to query (1-31, required on free plan). Defaults to current day.
        schema:
          type: string
        example: '19'
      responses:
        '200':
          description: List of public holidays
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Holiday'
              examples:
                getPublicHolidays200Example:
                  summary: Default getPublicHolidays 200 response
                  x-microcks-default: true
                  value:
                  - name: Easter Sunday
                    name_local: Easter Sunday
                    language: EN
                    description: Easter Sunday marks the resurrection of Jesus Christ
                    country: US
                    location: ''
                    type: National
                    date: 04/20/2025
                    date_year: '2025'
                    date_month: '04'
                    date_day: '20'
                    week_day: Sunday
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          example: The provided API key is invalid
        error:
          type: string
          example: invalid_api_key
    Holiday:
      type: object
      description: A public holiday entry
      properties:
        name:
          type: string
          description: Holiday name in English
          example: Easter Sunday
        name_local:
          type: string
          description: Holiday name in local language
          example: Paques
        language:
          type: string
          description: Language of the local name
          example: FR
        description:
          type: string
          description: Additional details about the holiday
          example: Easter Sunday marks the resurrection of Jesus Christ
        country:
          type: string
          description: Country code
          example: US
        location:
          type: string
          description: Specific region where holiday applies
          example: ''
        type:
          type: string
          description: Holiday classification
          example: National
          enum:
          - National
          - Local
          - Religious
          - Observance
          - Season
          - Clock Change/Daylight Saving Time
        date:
          type: string
          description: Holiday date in MM/DD/YYYY format
          example: 04/20/2025
        date_year:
          type: string
          description: Year of the holiday
          example: '2025'
        date_month:
          type: string
          description: Month of the holiday
          example: '04'
        date_day:
          type: string
          description: Day of the holiday
          example: '20'
        week_day:
          type: string
          description: Day of the week
          example: Sunday
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: api_key