Spatial India Data API
Standardised indicators for every district of India, joined from Indian government sources (Census 2011, NFHS-5, NCRB, RBI, the Agricultural Census and…
Government & public#government
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Standardised indicators for every district of India, joined from Indian government sources (Census 2011, NFHS-5, NCRB, RBI, the Agricultural Census and others) onto one district geography.
No API key and no registration. Requests are rate-limited per IP and responses are cached for a week at the edge.
Every response carries a meta block with the dataset version, the boundary vintage, and the source, vintage and caveat of each indicator returned, plus the attribution strings the source licences require you to reproduce. Quote them alongside the numbers.
Districts are addressed by objectid. Names are not unique — four district names each belong to two states — so resolve a name with GET /v1/districts?q=, which returns every match with its state.
There is also an MCP server at https://api.spatialindia.com/mcp for LLM clients.
Endpoints 5
- GETThe indicator catalogue
/indicatorsEvery indicator id with its name, unit, source, vintage, caveat, estimation method, ranking polarity, district coverage and how many of those districts report… - GETDistricts, with optional indicator values
/districtsWithout indicators this is the district directory — name, state, LGD code, 2011 population and area. With indicators it is the joined table, sorted and paged.… - GETOne district's full profile
/districts/:objectidEvery published indicator for one district in a single call. indicators narrows it and, unlike on /districts, is uncapped — the default is already everything. - GETOne district's boundary
/boundaries/:objectid.geojsonA GeoJSON Feature with the district polygon and its objectid, name and state. Only named districts have one. - GETThis document
/openapi.jsonThe OpenAPI description of every endpoint above.
API details
- Base URL
https://api.spatialindia.com/v1- Authentication
- None declared in the description
- Operations
- 5 operations on 5 pathsGET 5
- Response formats
application/jsonapplication/geo+json- Description format
- OpenAPI 3.1.0, API version
1.0.0 - Links
- OpenAPI document · Terms of service · Support
- Listed from
- Spatialindia's published OpenAPI description
How to test the Spatial India Data API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Spatial India Data API collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “The indicator catalogue” (GET /indicators), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Spatial India Data API?
Standardised indicators for every district of India, joined from Indian government sources (Census 2011, NFHS-5, NCRB, RBI, the Agricultural Census and… It is listed under Government & public and has 5 endpoints.
Who publishes the Spatial India Data API?
It is listed from Spatial India's public API description (an OpenAPI document), not published by Spatial India on Swastik Codes. Anyone who controls spatialindia.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Spatial India Data API?
Requests go to https://api.spatialindia.com/v1. Endpoint paths are added to this base URL.
How do I authenticate with the Spatial India Data API?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Spatial India Data API have?
5 operations on 5 paths (5 GET).
Is forking the Spatial India Data API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.