OSRM Batch Geocoding API
Geocode multiple addresses in one request for imports and data workflows. Review batch size, credit usage, response formats and available coverage.
/api/1/geocode/batchCurrent plan limits
Free includes Routing, Route Optimization, Geocoding (including reverse lookup and autocomplete) and Matrix APIs within plan limits. Map Matching, Isochrone, Truck Routing, Fuel Estimate and other separate APIs require a paid plan, including PAYG. API access follows the account’s effective plan; a positive balance alone does not override Free restrictions. Road Data and AI retain their separate Business requirements.
Replace YOUR_KEY with your own API key. Paid API requests consume credits; copying this example does not send a request.
Current plans and pricingOverview
Geocode up to 100 address strings per request. Results follow input order, and each query costs one credit.
API reference
/api/1/geocode/batch| Parameter | Type | Status |
|---|---|---|
| queries | array | Required |
| lang | string | Optional |
| limit | integer | Optional |
Example request
Credit cost: 1 credit / querycurl -X POST "https://osrmroute.com/api/1/geocode/batch" \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"queries":["Nizami küçəsi 10","28 May, Bakı"],"lang":"az"}'