The Postal Code API returns the city and state for a given postal code (pincode). Itβs useful for validating user input, auto-filling address forms, or verifying delivery coverage.
Authorization: X-Authorization-Token
(Get your token HERE)/v4/pincode
https://apihub.latlong.ai/v4/pincode
Parameter | Type | Required | Description |
---|---|---|---|
pincode | String | Yes | 6-digit postal code |
curl --location βhttps://apihub.latlong.ai/v4/pincode.json?pincode=560019'
{
"code": 1001,
"status": "success",
"data": [
{
"geoid": null,
"district": "Bangalore",
"state": "Karnataka",
"pincode": "560019",
"office_name": "Gaviopuram Extension",
"office_type": "S.O",
"latitude": 12.947128,
"longitude": 77.562411,
"gca": "Bengaluru City"
}
]
}
Fetch city and state by entering just a 6-digit pincode
Ideal for e-commerce, logistics, and address form validation
οΈ Fast and lightweight response structure
Status Code | Message | Description |
---|---|---|
400 | Missing required parameters | When query is not provided |
401 | Unauthorized | API key missing or invalid |
404 | Not found | No location found for the given pincode |
500 | Internal Server Error | Something went wrong on our side |