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.
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