DATPAQ Calendar API
Month, day, and range calendars with optional public-holiday overlays
Month, day, and range calendars with optional public-holiday overlays
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/datpaq-com:datpaq-com-calendar-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Datpaq Com Calendar API
version: 1.1.0
contact:
name: Datpaq Support
url: https://datpaq.com
license:
name: Proprietary
description: 'Operations tagged Calendar across 2 of this provider''s published API definitions: datpaq-com.yaml, datpaq-com-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Calendar
description: Month, day, and range calendars with optional public-holiday overlays
paths:
/calendar/month:
get:
tags:
- Calendar
operationId: calendarMonth
summary: Month calendar
description: Requires year and month. Returns BI-friendly date attributes, flat or nested by week.
responses:
'200':
description: Month calendar structure
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
data:
year: 2026
month: 8
days:
- date: '2026-08-20'
weekday: Thursday
isWeekend: false
metadata:
correlationId: abc123-def456
timestamp: '2026-08-20T12:00:00.000Z'
processingTime: 11ms
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
parameters:
- name: year
in: query
required: true
description: Calendar year
schema:
type: integer
example: 2026
- name: month
in: query
required: true
description: Month 1-12
schema:
type: integer
example: 8
- name: week_start
in: query
required: false
description: Week start
schema:
type: string
enum:
- sunday
- monday
example: monday
- name: timezone
in: query
required: false
description: IANA timezone
schema:
type: string
example: UTC
- name: include_holidays
in: query
required: false
description: Overlay public holidays
schema:
type: boolean
example: false
- name: country_code
in: query
required: false
description: ISO2 country for public holidays
schema:
type: string
example: US
- name: output_format
in: query
required: false
description: flat or nested
schema:
type: string
enum:
- flat
- nested
example: nested
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/calendar/day:
get:
tags:
- Calendar
operationId: calendarDay
summary: Single day attributes
description: Requires date (YYYY-MM-DD). Returns attributes for one date with optional holidays.
responses:
'200':
description: Day calendar attributes
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
data:
date: '2026-08-20'
weekday: Thursday
isWeekend: false
holidays: []
metadata:
correlationId: abc123-def456
timestamp: '2026-08-20T12:00:00.000Z'
processingTime: 7ms
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
parameters:
- name: date
in: query
required: true
description: ISO date
schema:
type: string
example: '2026-08-20'
- name: include_holidays
in: query
required: false
description: Overlay public holidays
schema:
type: boolean
example: false
- name: country_code
in: query
required: false
description: ISO2 country for public holidays
schema:
type: string
example: US
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/calendar/range:
get:
tags:
- Calendar
operationId: calendarRange
summary: Date range calendar
description: Requires start_date and end_date. Span cannot exceed 366 days.
responses:
'200':
description: Date-range calendar rows
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
data:
start_date: '2026-08-01'
end_date: '2026-08-31'
days:
- date: '2026-08-01'
weekday: Saturday
isWeekend: true
metadata:
correlationId: abc123-def456
timestamp: '2026-08-20T12:00:00.000Z'
processingTime: 14ms
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
parameters:
- name: start_date
in: query
required: true
description: Range start YYYY-MM-DD
schema:
type: string
example: '2026-08-01'
- name: end_date
in: query
required: true
description: Range end YYYY-MM-DD
schema:
type: string
example: '2026-08-31'
- name: include_weekends
in: query
required: false
description: Include Saturday and Sunday
schema:
type: boolean
example: true
- name: include_holidays
in: query
required: false
description: Overlay public holidays
schema:
type: boolean
example: false
- name: country_code
in: query
required: false
description: ISO2 country for public holidays
schema:
type: string
example: US
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/calendar/holidays:
get:
tags:
- Calendar
operationId: calendarHolidays
summary: Holiday overlay for a year
description: Requires year. country_code is required when holiday_sources includes public.
responses:
'200':
description: Holiday rows for the year
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
data:
year: 2026
country_code: US
holidays:
- date: '2026-12-25'
name: Christmas Day
metadata:
correlationId: abc123-def456
timestamp: '2026-08-20T12:00:00.000Z'
processingTime: 9ms
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
parameters:
- name: year
in: query
required: true
description: Calendar year
schema:
type: integer
example: 2026
- name: month
in: query
required: false
description: Optional month 1-12
schema:
type: integer
example: 12
- name: country_code
in: query
required: false
description: ISO2 country
schema:
type: string
example: US
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
description: Human-readable error message
example: Invalid API key
correlationId:
type: string
description: Request tracking identifier for support
example: abc123-def456-789ghi
service:
type: string
description: Service name that produced the error
example: ip-geolocation
GenericSuccess:
type: object
description: Standard success envelope. The data property structure varies by endpoint.
properties:
correlationId:
type: string
description: Request tracking identifier
example: abc123-def456
data:
type: object
description: Response payload (structure varies by endpoint)
cached:
type: boolean
description: Whether the response was served from cache
example: false
responses:
BadRequest:
description: Bad request — missing or invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
RateLimited:
description: Rate limit exceeded — retry after the indicated period
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
ServiceUnavailable:
description: Service temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
Unauthorized:
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: API key passed via x-api-key request header
ApiKeyQuery:
type: apiKey
in: query
name: api_key
description: API key passed as api_key query parameter
x-refined-from:
- datpaq-com.yaml
- datpaq-com-openapi.yaml