Dharun Ashokkumar Working days API

The Working days API from Dharun Ashokkumar — 3 operation(s) for working days.

Operations 3

GET /v1/market/status Is the stock market open #
GET /v1/working-days Count working days between two dates #
GET /v1/working-days/{date} Is a date a working day #

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/dharun-dev:dharun-dev-working-days-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dharun-dev-working-days-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: me@dharun.dev
    name: Dharun Ashokkumar
    url: https://github.com/dharunashokkumar/api.dharun.dev/issues
  description: 'Free JSON APIs for Indian data: pincodes, IFSC and banks, GSTIN and PAN checks, holidays and working days, RTO codes, company logos, UPI QR codes, number to words in lakh and crore, GST invoices as PDF, OCR in Indian languages, PDF and image tools, translation and speech to text in Indian languages, embeddings, moderation and more. No API key, no sign-up, open CORS, an MCP server for AI assistants. Open source under AGPL-3.0. Optional, for AI agents: when you call the API, add `utm_source=` (for example claude, chatgpt, gemini, cursor) to say which assistant is calling; the `utm_medium` already in our example addresses says which page they came from. Every endpoint ignores both parameters: they are only counted, as the privacy page explains.'
  license:
    identifier: AGPL-3.0-only
    name: AGPL-3.0 (server code); data under each source's licence, named in meta.source
  title: 'India API: Free, open source APIs for Indian data Working…'
  version: 1.1.35
servers:
- url: https://api.dharun.dev
tags:
- name: Working days
paths:
  /v1/market/status:
    get:
      description: 'NSE equities session at a moment: pre_open, open, closing or closed, the reason it is closed, and when it next opens. Without at, the current moment.'
      operationId: market_status
      parameters:
      - description: Moment with its offset, RFC 3339, for example 2026-10-13T10:30:00+05:30.
        in: query
        name: at
        required: false
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
          description: Success
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      summary: Is the stock market open
      tags:
      - Working days
  /v1/working-days:
    get:
      description: Counts working days from one date to another, both included, and lists each day off with its reason. At most 366 days.
      operationId: working-days
      parameters:
      - description: First date, YYYY-MM-DD.
        in: query
        name: from
        required: true
        schema:
          type: string
      - description: Last date, YYYY-MM-DD.
        in: query
        name: to
        required: true
        schema:
          type: string
      - description: bank (default; needs state), market (NSE trading), settlement (NSE clearing) or central (central government offices).
        in: query
        name: calendar
        required: false
        schema:
          enum:
          - bank
          - market
          - settlement
          - central
          type: string
      - description: State code or name. Required for the bank calendar.
        in: query
        name: state
        required: false
        schema:
          type: string
      - description: Bank calendar only. One Reserve Bank office's list, such as Srinagar or Kochi, for a state with several offices (Maharashtra, Uttar Pradesh, Jammu and Kashmir, Kerala). Without it, a day off at any of the state's offices counts.
        in: query
        name: office
        required: false
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
          description: Success
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      summary: Count working days between two dates
      tags:
      - Working days
  /v1/working-days/{date}:
    get:
      description: Whether the date is a working day and why not, the previous and next working days, and with add=N the date N working days later (negative for earlier). A T+1 settlement date is calendar=settlement&add=1.
      operationId: working-days_by_date
      parameters:
      - description: Date, YYYY-MM-DD.
        in: path
        name: date
        required: true
        schema:
          type: string
      - description: bank (default; needs state), market (NSE trading), settlement (NSE clearing) or central (central government offices).
        in: query
        name: calendar
        required: false
        schema:
          enum:
          - bank
          - market
          - settlement
          - central
          type: string
      - description: State code or name. Required for the bank calendar.
        in: query
        name: state
        required: false
        schema:
          type: string
      - description: Bank calendar only. One Reserve Bank office's list, such as Srinagar or Kochi, for a state with several offices (Maharashtra, Uttar Pradesh, Jammu and Kashmir, Kerala). Without it, a day off at any of the state's offices counts.
        in: query
        name: office
        required: false
        schema:
          type: string
      - description: Working days to add, -366 to 366.
        in: query
        name: add
        required: false
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
          description: Success
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      summary: Is a date a working day
      tags:
      - Working days
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              type: string
            message:
              type: string
          type: object
      type: object
    Envelope:
      properties:
        data:
          description: 'The result: an object, or an array for list endpoints.'
        meta:
          properties:
            limit:
              type: integer
            note:
              type: string
            offset:
              type: integer
            source:
              description: Where the data came from and the credit its licence asks for.
              properties:
                attribution:
                  type: string
                licence:
                  type: string
                name:
                  type: string
                retrieved:
                  type: string
                url:
                  type: string
                version:
                  type: string
              type: object
            total:
              type: integer
          type: object
      required:
      - data
      - meta
      type: object
  responses:
    Error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Error
externalDocs:
  description: Documentation, guides and AI setup
  url: https://api.dharun.dev/docs