GET /v1/pincodes/{pincode}
PIN Code LookupRetrieve state, district, and post offices for a given 6-digit pincode.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pincode | Path (string) | Yes | 6-digit Indian Pincode (e.g., 600001). |
A production-grade, high-performance REST API for Indian pincodes providing direct lookups, administrative metadata querying, autocomplete search, and spatial queries. Activate in ConsoleDesk and get your API Key.
Website: https://www.fastgst.in
Get API Key and Manage Access: https://consoledesk.in
Plans & Pricing: https://www.fastgst.in/pricing/
Authentication: All endpoints need authentication. Get your API Key from ConsoleDesk first. Pass your access key in the X-API-Key HTTP header.
Note: Before using the API, activate it in ConsoleDesk, generate an API Key, and start querying Indian post offices, pincodes, and distances.
Endpoints for direct pincode lookups and autocomplete matching.
Retrieve state, district, and post offices for a given 6-digit pincode.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pincode | Path (string) | Yes | 6-digit Indian Pincode (e.g., 600001). |
Search for districts and offices matching a case-insensitive query substring.
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | Query (string) | Yes | Query string (at least 3 characters). |
| limit | Query (integer) | No | Max results cap (1-100, default is 20). |
Administrative hierarchy endpoints listing states, districts, and mapping them to pincodes.
Retrieve a unique list of all states in India, sorted alphabetically.
No parameters required.
Retrieve a list of unique districts in a given state (case-insensitive).
| Parameter | Type | Required | Description |
|---|---|---|---|
| state | Path (string) | Yes | State name (case-insensitive). |
Retrieve a list of unique pincodes in a given district (case-insensitive).
| Parameter | Type | Required | Description |
|---|---|---|---|
| district | Path (string) | Yes | District name (case-insensitive). |
Coordinates-based geocoding, radius searches, and distance calculation between points.
Find the nearest post office and its pincode from latitude and longitude coordinates.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | Query (number) | Yes | Latitude (float64 format). |
| lng | Query (number) | Yes | Longitude (float64 format). |
Retrieve post offices located within a specified radius (in km) from coordinates.
| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | Query (number) | Yes | Latitude (float64 format). |
| lng | Query (number) | Yes | Longitude (float64 format). |
| radius | Query (number) | Yes | Search radius in kilometers (float64 format). |
| limit | Query (integer) | No | Max results cap (1-100, default is 20). |
Find pincodes located within a specified radius (in km) from a given pincode centroid.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pincode | Path (string) | Yes | Origin 6-digit Pincode. |
| radius | Query (number) | Yes | Search radius in kilometers (float64 format). |
Calculate the distance (in km) between the centroids of two pincodes.
| Parameter | Type | Required | Description |
|---|---|---|---|
| from | Query (string) | Yes | Origin 6-digit Pincode. |
| to | Query (string) | Yes | Destination 6-digit Pincode. |