Place Lookup API

Introduction

NextBillion.ai Place Lookup API allows you to find the details of a POI, Point Address, Geography, Street or any other geographical entity by its unique identifier. It returns the complete postal address of the matched place along with a variety of relevant details like - location coordinates, access points, contacts etc.

GET

https://api.nextbillion.io/lookup?id={place_id}&key={your_api_key}

Request Parameters

Loading..

Response Schema

Loading..

Sample Request

1
curl --location 'https://api.nextbillion.io/lookup?id=2EmBgAmFpR9dg0D89EBzNA&key=<your_api_key>'

Sample Response

1
{
2
"items": [
3
{
4
"title": "Mullen Avenue, San Francisco, CA 94110, United States",
5
"id": "2EmBgAmFpR9dg0D89EBzNA",
6
"address": {
7
"label": "Mullen Avenue, San Francisco, CA 94110, United States",
8
"countryCode": "USA",
9
"countryName": "United States",
10
"stateCode": "CA",
11
"state": "California",
12
"county": "San Francisco",
13
"city": "San Francisco",
14
"street": "Mullen Avenue",
15
"postalCode": "94110"
16
},
17
"position": {
18
"lat": 37.746349,
19
"lng": -122.408424
20
},
21
"access": [
22
{
23
"lat": 37.746349,
24
"lng": -122.408424
25
}
26
],
27
"mapView": {
28
"west": -122.41056,
29
"south": 37.74516,
30
"east": -122.40595,
31
"north": 37.74694
32
}
33
}
34
]
35
}

API Query Limits

NextBillion.ai allows a maximum rate limit of 2400 queries per minute or 40 queries/second for continuous requests.

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.

© 2024 NextBillion.ai all rights reserved.