geoportal.mp.gov.in APIgeoportal.mp.gov.in ↗
Access district, tehsil, and village boundaries, road networks, and forest data for Madhya Pradesh via 8 structured GeoJSON endpoints.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/8dea8cbf-95f7-4067-8148-06ef8f2ee39f/get_service_catalog' \ -H 'X-API-Key: $PARSE_API_KEY'
Fetches a summary of available GIS services and folders from the NIC GIS server. Returns the root service catalog listing all MapServer services available.
No input parameters required.
{
"type": "object",
"fields": {
"nic_catalog": "object containing currentVersion, folders array, and services array"
},
"sample": {
"data": {
"nic_catalog": {
"folders": [
"Hosted",
"MyServerFolder",
"nicstreet",
"school",
"Utilities"
],
"services": [
{
"name": "admin2024",
"type": "MapServer"
},
{
"name": "roadnetwork",
"type": "MapServer"
}
],
"currentVersion": 10.91
}
},
"status": "success"
}
}About the geoportal.mp.gov.in API
This API exposes 8 endpoints covering geospatial data for Madhya Pradesh sourced from the NIC GIS server at geoportal.mp.gov.in. Use get_district_boundaries to retrieve polygon geometries for all 55 districts as GeoJSON FeatureCollections, or drill down to tehsil and village level with dedicated endpoints. Road network polylines, forest layer data, and the full administrative layer catalog are also available as structured JSON responses.
Administrative Boundary Data
get_districts returns a flat list of all 55 districts in Madhya Pradesh, each record including dtname, stcode11, dtcode11, dist_lgd, and objectid. Results are sorted alphabetically. For polygon geometries, get_district_boundaries accepts an optional district_name parameter (case-insensitive) to filter to a single district or return all districts as a GeoJSON FeatureCollection in WGS84 (EPSG:4326). Subdistrict (Tehsil) polygons follow the same pattern via get_subdistrict_boundaries, which surfaces sdtname, dtname, and subdt_lgd per feature, capped at 200 features per response.
Village and Road Data
get_village_boundaries requires a district_name parameter and returns up to 100 village polygon features per call, each carrying vilname11, sdtname, dtname, vil_lgd, and block_name — enough to reconstruct the full administrative hierarchy from state down to village. Road network data comes from get_road_network, which returns the first 100 road features as esriGeometryPolyline objects with attributes including road type, name, class code, and length in meters, plus a fields array describing each attribute's name, type, and alias.
Service Catalog and Forest Layers
get_service_catalog queries the root NIC GIS server and returns currentVersion, a folders array, and a services array — useful for discovering what MapServer services are available before targeting specific layers. get_administrative_layers lists every layer in the admin2024 MapServer, including layer id, name, type, geometryType, and parentLayerId. Forest data is available through get_forest_data, which accepts an optional service_path parameter (defaulting to MP_Forest_Data/MapServer/0) and returns fields, features, and displayFieldName arrays.
- Render district boundary maps of Madhya Pradesh using GeoJSON polygons from
get_district_boundaries. - Build an administrative hierarchy lookup from state to village using
dtname,sdtname, andvilname11fields. - Plot road networks on a map using polyline geometries and road class codes from
get_road_network. - Discover available GIS layers before querying by inspecting the
get_service_catalogandget_administrative_layersresponses. - Filter tehsil boundaries by parent district using the
district_nameparam inget_subdistrict_boundaries. - Cross-reference village LGD codes (
vil_lgd) with national Local Government Directory datasets. - Analyze forest coverage distribution across MP districts using layer data from
get_forest_data.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does geoportal.mp.gov.in have an official developer API?+
What does `get_village_boundaries` return, and is there a pagination option?+
get_village_boundaries returns up to 100 village polygon features per call for a given district, each with vilname11, sdtname, dtname, vil_lgd, and block_name properties. There is no pagination parameter exposed — the 100-feature cap is a fixed limit of the current endpoint. Districts with more than 100 villages will return a partial result set.