Temsor Calendar API
The Calendar API from Temsor — 1 operation(s) for calendar.
The Calendar API from Temsor — 1 operation(s) for calendar.
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/temsor-com:temsor-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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: temsor Calendar API
version: 1.0.0
description: 'Turkish-domain data APIs plus a growing archive of public time series, and voice/call-ops agent tooling (orchestration · promises · search · handoff). Most endpoints are deterministic and answer in single-digit milliseconds. Idle $0 when quiet; no invented live PSTN.
Every success carries the same envelope: `{ ok, data, meta }`. Every failure: `{ ok:false, error:{code,message} }`.
Auth: `Authorization: Bearer fk_live_…` or `x-api-key`. Calls without a key work on a narrow per-IP demo quota, so you can try any endpoint before signing up.
**Plans:** Free free — 500 credits, 1 rps · Starter $19/mo — 50,000 credits, 10 rps · Pro $79/mo — 300,000 credits, 30 rps · Scale $299/mo — 2,000,000 credits, 100 rps'
servers:
- url: https://api.temsor.com
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Calendar
paths:
/v1/tr/business-days:
post:
tags:
- Calendar
summary: Adds business days or counts them between two dates, accounting for Turkish…
description: 'Ramadan and Sacrifice feasts follow the Hijri calendar and cannot be derived reliably by formula, so announced dates are read from a table; years without an official announcement are returned with `confirmed:false` rather than guessed silently. For delivery promises, SLA clocks, payment terms and shipping estimates.
**Credits per call:** 1 · **Operation id:** `tr_business_days`'
operationId: tr_business_days
responses:
'200':
description: Success
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
ok:
const: true
data:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
mode:
type: string
enum:
- add
- count
start:
type: string
end:
anyOf:
- type: string
- type: 'null'
businessDays:
anyOf:
- type: number
- type: 'null'
resultDate:
anyOf:
- type: string
- type: 'null'
holidaysInRange:
type: array
items:
type: object
properties:
date:
type: string
name:
type: string
type:
type: string
enum:
- resmi
- dini
half:
type: boolean
confirmed:
type: boolean
required:
- date
- name
- type
- half
- confirmed
additionalProperties: false
warnings:
type: array
items:
type: string
required:
- mode
- start
- end
- businessDays
- resultDate
- holidaysInRange
- warnings
additionalProperties: false
meta:
type: object
properties:
credits:
type: integer
cached:
type: boolean
requestId:
type: string
durationMs:
type: integer
required:
- ok
- data
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
start:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
description: Start date (YYYY-MM-DD).
addDays:
description: Add/subtract this many business days (not calendar days).
type: integer
minimum: -3650
maximum: 3650
end:
description: If set, count business days between start and this date.
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
countHalfDaysAsWork:
default: true
description: Count Arife half-days as working days?
type: boolean
required:
- start
get:
tags:
- Calendar
summary: Adds business days or counts them between two dates, accounting for Turkish…
description: 'Ramadan and Sacrifice feasts follow the Hijri calendar and cannot be derived reliably by formula, so announced dates are read from a table; years without an official announcement are returned with `confirmed:false` rather than guessed silently. For delivery promises, SLA clocks, payment terms and shipping estimates.
**Credits per call:** 1 · **Operation id:** `tr_business_days`
In the GET form every field is a query parameter; object and array fields are JSON-encoded.'
operationId: tr_business_days_get
responses:
'200':
description: Success
headers:
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
ok:
const: true
data:
$schema: https://json-schema.org/draft/2020-12/schema
type: object
properties:
mode:
type: string
enum:
- add
- count
start:
type: string
end:
anyOf:
- type: string
- type: 'null'
businessDays:
anyOf:
- type: number
- type: 'null'
resultDate:
anyOf:
- type: string
- type: 'null'
holidaysInRange:
type: array
items:
type: object
properties:
date:
type: string
name:
type: string
type:
type: string
enum:
- resmi
- dini
half:
type: boolean
confirmed:
type: boolean
required:
- date
- name
- type
- half
- confirmed
additionalProperties: false
warnings:
type: array
items:
type: string
required:
- mode
- start
- end
- businessDays
- resultDate
- holidaysInRange
- warnings
additionalProperties: false
meta:
type: object
properties:
credits:
type: integer
cached:
type: boolean
requestId:
type: string
durationMs:
type: integer
required:
- ok
- data
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'402':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
parameters:
- name: start
in: query
required: true
description: Start date (YYYY-MM-DD).
schema:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
description: Start date (YYYY-MM-DD).
- name: addDays
in: query
required: false
description: Add/subtract this many business days (not calendar days).
schema:
description: Add/subtract this many business days (not calendar days).
type: integer
minimum: -3650
maximum: 3650
- name: end
in: query
required: false
description: If set, count business days between start and this date.
schema:
description: If set, count business days between start and this date.
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
- name: countHalfDaysAsWork
in: query
required: false
description: Count Arife half-days as working days?
schema:
default: true
description: Count Arife half-days as working days?
type: boolean
components:
headers:
RateLimit:
description: 'IETF draft-ietf-httpapi-ratelimit-headers. r = requests left right now, t = seconds until the bucket is full again. Example: `"default";r=39;t=1`.'
schema:
type: string
RateLimitPolicy:
description: 'IETF draft-ietf-httpapi-ratelimit-headers. q = token-bucket capacity (requests), w = seconds for an empty bucket to refill. Example: `"default";q=40;w=4`.'
schema:
type: string
XRateLimitLimit:
description: Token-bucket capacity (same as q).
schema:
type: integer
XRateLimitRemaining:
description: Requests left right now (same as r).
schema:
type: integer
RetryAfter:
description: Seconds to wait before the next request succeeds (429 only).
schema:
type: integer
XRateLimitReset:
description: Seconds until the bucket is full again (same as t).
schema:
type: integer
responses:
Error:
description: Error
content:
application/json:
schema:
type: object
properties:
ok:
const: false
error:
type: object
properties:
code:
type: string
message:
type: string
details: {}
required:
- code
- message
requestId:
type: string
required:
- ok
- error
RateLimited:
description: Rate limit exceeded — wait `Retry-After` seconds. The RateLimit headers are sent here too.
headers:
Retry-After:
$ref: '#/components/headers/RetryAfter'
RateLimit-Policy:
$ref: '#/components/headers/RateLimitPolicy'
RateLimit:
$ref: '#/components/headers/RateLimit'
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
content:
application/json:
schema:
type: object
properties:
ok:
const: false
error:
type: object
properties:
code:
type: string
message:
type: string
details: {}
required:
- code
- message
requestId:
type: string
required:
- ok
- error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
apiKeyHeader:
type: apiKey
in: header
name: x-api-key