tilwhen Parse API

The Parse API from tilwhen — 1 operation(s) for parse.

GitHub OpenAPI

Operations 1

GET /api/v1/parse Parse a natural-language date query and answer it #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tilwhen-com:tilwhen-com-parse-api"
All apis
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.

Get an API 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 Specification

tilwhen-com-parse-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: tilwhen date Parse API
  version: 1.0.0
  description: 'Free, read-only date calculations with auditable receipts. Every response includes a receipt: the normalized operation, pinned inputs, IANA timezone, counting convention (whole calendar days, today = day 0, exclusive; business days exclude the start day and include the end day), workweek, holiday jurisdiction with excluded holidays, engine and holiday-dataset versions, warnings, sources, and a stable result ID (deterministic hash of inputs + versions). Same inputs and versions always reproduce the same ID. Holiday jurisdictions are ISO 3166-1/-2 codes: US, GB, GB-SCT, GB-NIR, IE, FR, CA, AU, UG (legacy alias UK accepted). There is no default jurisdiction. Holiday-aware spans are limited to 100000 days between the two dates; plain calendar-day arithmetic is not. Errors are always JSON: {"error":{"code","message"}}. The API is rate limited per IP at 300 requests per 60 seconds and returns 429 with Retry-After when exceeded; no key, quota or signup is required below that.'
  contact:
    url: https://tilwhen.com/about
servers:
- url: https://tilwhen.com
tags:
- name: Parse
paths:
  /api/v1/parse:
    get:
      summary: Parse a natural-language date query and answer it
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          maxLength: 200
        example: 90 business days from today in uganda
      - name: tz
        in: query
        schema:
          $ref: '#/components/schemas/Timezone'
      - name: locale
        in: query
        schema:
          type: string
          enum:
          - mdy
          - dmy
        description: Resolves ambiguous slash dates like 03/04/2027; without it such dates return needsClarification instead of a guess.
      responses:
        '200':
          description: Parse outcome; parsed may be null with warnings or needsClarification
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParseResult'
        '400':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Parse
      operationId: getApiV1Parse
      x-operation-id-source: derived
components:
  schemas:
    ParseResult:
      type: object
      properties:
        parsed:
          type:
          - object
          - 'null'
        confidence:
          type: number
        warnings:
          type: array
          items:
            type: string
        needsClarification:
          type: object
        canonicalPath:
          type:
          - string
          - 'null'
        answer:
          type: object
        receipt:
          $ref: '#/components/schemas/Receipt'
    Timezone:
      type: string
      description: IANA timezone name; defaults to UTC.
      example: Africa/Kampala
    Workweek:
      type: string
      enum:
      - mon-fri
      - sun-thu
      - mon-sat
    Receipt:
      type: object
      description: Auditable calculation record; field order in serialized responses is stable.
      properties:
        id:
          type: string
          pattern: ^tw1-[0-9a-f]{16}$
        query:
          type: object
        resolved:
          type: object
          additionalProperties:
            type: string
        answer:
          type: object
        timezone:
          type: string
        convention:
          type: string
          const: exclusive-today-is-day-0
        workweek:
          $ref: '#/components/schemas/Workweek'
        jurisdiction:
          type:
          - string
          - 'null'
        customHolidays:
          type: array
          items:
            type: string
        holidaysExcluded:
          type: array
          description: Itemised excluded holidays, capped at 500; see holidaysExcludedCount for the true total.
          items:
            type: object
            properties:
              name:
                type: string
              dateISO:
                type: string
        holidaysExcludedCount:
          type: integer
          description: Total holidays excluded by the calculation. Exceeds holidaysExcluded.length on very wide spans, where a holiday_list_truncated warning also appears.
        computedAt:
          type: string
          format: date-time
        validFor:
          type: string
          format: date
        engineVersion:
          type: string
        holidayDatasetVersion:
          type: string
        warnings:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
        sources:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
              url:
                type: string
              publisher:
                type: string
              retrievedAt:
                type: string
  responses:
    RateLimited:
      description: Rate limited. The API is free and unauthenticated, so requests are metered per IP at 300 per 60 seconds. Counters are per Cloudflare location and eventually consistent, so this is an abuse brake rather than an exact quota. Retry-After gives the window.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
                required:
                - code
                - message
            required:
            - error
    Error:
      description: Machine-readable error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
                required:
                - code
                - message
            required:
            - error