Government Documents APIs
Access government data APIs for location and address verification. These APIs provide real-time access to India Post pincode data — essential for address validation, logistics routing, and form auto-fill.
Use cases
| Industry | Use case |
|---|---|
| E-commerce & logistics | Map pincodes to districts and regions for delivery planning |
| Financial services | Validate customer addresses during onboarding |
| SaaS platforms | Auto-fill city, district, and state from a pincode |
| Insurance | Verify policyholder addresses |
| Government portals | Address standardization for citizen services |
Available endpoints
| Endpoint | Method | Path | Description |
|---|---|---|---|
| Pincode Details | GET | /vas-api/v1/pincode-details | Get district, division, region, state, and country code |
Authentication
All Government Documents endpoints require an OAuth2 Bearer token. You need to:
- Sign up for a developer account
- Get an access token using your client credentials
- Include the token in every request:
Authorization: Bearer YOUR_ACCESS_TOKEN
Quick example
Look up location details for a pincode:
bash
curl -X GET "https://api.api4business.com/vas-api/v1/pincode-details?pincode=400059" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Error handling
See Government Documents Error Codes for the complete list, or the Error Handling Guide for retry patterns.
What's next
- Pincode Details — Look up any Indian pincode
- Quick Start — Make your first API call in under 10 minutes
- Error Codes — All error codes
- Changelog — Version history