Batch Geocode API

Introduction

NextBillion.ai Batch Geocode API allows searching for multiple known places using a single request. It can take up to 100 search queries and responds with matching place results for each of the search queries. The service accepts any free-form texts or known place names in the request body, to retrieve relevant results. The results are ranked based on the search score of a place.

POST

https://api.nextbillion.io/geocode/batch?key={your_api_key}


The method enables searching for multiple known places in a single request. Provide up to 100 search queries to get a response with matching places for all provided queries. It accepts any free-form texts or known place names in the request body, to retrieve relevant results. The results are ranked based on the search score of a place.

Request Parameters

Loading..

Request Body

Loading..

Response Schema

Loading..

Sample Request

1
2
curl --location 'https://api.nextbillion.io/h/geocode/batch?key=<your_api_key>'
3
--header 'Content-Type: application/json'
4
--data '[...]'

Sample API Response

1
[
2
{
3
"items": "[...]"
4
},
5
{
6
"items": "[...]"
7
},
8
9
]

API Query Limits

  1. A maximum of 100 Search queries can be added to a single input.
  2. NextBillion.ai allows a maximum rate limit of 60 queries per minute or 1 query per second for continuous requests.
    Note: We can increase the quota if needed on request. Contact [email protected] for more details.

API Error Codes

Response CodeDescriptionAdditional Notes
200

Normal success case.

Normal success case

400

Input validation failed.

There is a missing or an invalid parameter or a parameter with an invalid value type is added to the request.

401

APIKEY not supplied or invalid.

This error occurs when the wrong API key is passed in the request or the key is missing altogether

403

APIKEY is valid but does not have access to requested resources.

You might be querying for a geographical region which is not valid for your account, or requesting a service which is not enabled for you.

404

Requested host/path not found.

This error occurs when a malformed hostname is used.

422

Could not process the request.

Valid results could not be generated for the given parameters. Please modify the constraints/search query.

429

Too many requests.

QPM or API request count quota reached

500

Internal Service error.

There was an internal issue with NextBillion.ai services. You can reach out to [email protected] for an explanation.

© 2025 NextBillion.ai all rights reserved.