Spatial India Boundaries API

The Boundaries API from Spatial India — 1 operation(s) for boundaries.

GitHub OpenAPI

Operations 1

GET /boundaries/{objectid}.geojson One district's boundary #

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/spatialindia-com:spatialindia-com-boundaries-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

spatialindia-com-boundaries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spatialindia Com Boundaries API
  version: 1.0.0
  contact:
    name: Spatial India
    url: https://spatialindia.com/api-platform
  license:
    name: Free for personal and non-commercial use, with attribution
    url: https://spatialindia.com/terms
  termsOfService: https://spatialindia.com/terms
  description: 'Operations tagged Boundaries across 2 of this provider''s published API definitions: openapi.json, spatialindia-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.spatialindia.com/v1
tags:
- name: Boundaries
paths:
  /boundaries/{objectid}.geojson:
    get:
      operationId: getBoundary
      summary: One district's boundary
      description: A GeoJSON Feature with the district polygon and its objectid, name and state. Only named districts have one.
      parameters:
      - $ref: '#/components/parameters/objectid'
      responses:
        '200':
          description: A GeoJSON Feature.
          content:
            application/geo+json:
              schema:
                type: object
                properties:
                  type:
                    const: Feature
                  meta:
                    type: object
                    description: A GeoJSON foreign member (RFC 7946 §6.1). Reproduce `attribution` wherever the boundary appears; `licence` states what you may do with it.
                    properties:
                      boundary_vintage:
                        type: string
                      attribution:
                        type: string
                      licence:
                        type: string
                  properties:
                    type: object
                    properties:
                      objectid:
                        type: integer
                      dist_lgd:
                        type: string
                        nullable: true
                      district:
                        type: string
                        nullable: true
                      state:
                        type: string
                        nullable: true
                      state_code:
                        type: string
                        nullable: true
                      area_sqkm:
                        type: number
                        nullable: true
                  geometry:
                    type: object
                required:
                - type
                - geometry
                - properties
        '404':
          description: No boundary carries that objectid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Boundaries
    servers:
    - url: https://api.spatialindia.com/v1
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: A stable machine-readable code.
        message:
          type: string
        hint:
          type: string
          description: How to correct the request. Present on some 404s.
      required:
      - error
  parameters:
    objectid:
      name: objectid
      in: path
      required: true
      schema:
        type: integer
      description: 'The district''s id in this dataset. Resolve a name to one with `GET /v1/districts?q=`. Ids are pinned: a district keeps its objectid across data refreshes.'
      example: 421
x-refined-from:
- openapi.json
- spatialindia-com-openapi.json