Google Maps Scraper API
/autocompleteAutocomplete
Google Maps search-box suggestions for partial text: businesses, places and query completions with ids.
QUERY PARAMS
Partial text to complete.
Examples:
new ystarbucks bev
Latitude to bias the suggestions towards. Pass together with lng.
Allowed values: -90-90
Longitude to bias the suggestions towards. Pass together with lat.
Allowed values: -180-180
Language of the results (ISO 639-1).
Default: en
Allowed values: any ISO 639-1 code (en, es, fr, de, pt, ja, ...)
Country to query Google Maps from (ISO 3166-1 alpha-2). Affects ranking and localized data.
Default: us
Allowed values: any ISO 3166-1 alpha-2 code (us, gb, in, de, fr, au, ...)
{
"count": 5,
"results": [
{
"type": "city",
"description": "New York, NY",
"main_text": "New York",
"main_text_highlights": [
{
"offset": 0,
"length": 5
}
],
"secondary_text": "NY",
"place_id": "ChIJOwg_06VPwokRYv534QaPC8g",
"data_id": "0x89c24fa5d33f083b:0xc80b8f06e177fe62",
"kgmid": "/m/02_286",
"coordinates": {
"latitude": 40.7127753,
"longitude": -74.0059728
},
"country": null
},
{
"type": "region",
"description": "New York State",
"main_text": "New York State",
"main_text_highlights": [
{
"offset": 0,
"length": 5
}
],
"secondary_text": null,
"place_id": "ChIJqaUj8fBLzEwRZ5UY3sHGz90",
"data_id": "0x4ccc4bf0f123a5a9:0xddcfc6c1de189567",
"kgmid": "/m/059rby",
"coordinates": {
"latitude": 43.2994285,
"longitude": -74.2179326
},
"country": null
},
{
"type": "business",
"description": "New York Marriott Marquis, Broadway, New York, NY",
"main_text": "New York Marriott Marquis",
"main_text_highlights": [
{
"offset": 0,
"length": 5
}
],
"secondary_text": "Broadway, New York, NY",
"place_id": "ChIJiVXoAFVYwokREqPijh-d8xg",
"data_id": "0x89c2585500e85589:0x18f39d1f8ee2a312",
"kgmid": "/m/062wc2",
"coordinates": {
"latitude": 40.7586927,
"longitude": -73.9861993
},
"country": null
},
{
"type": "business",
"description": "New York Aquarium, Surf Avenue, Brooklyn, NY",
"main_text": "New York Aquarium",
"main_text_highlights": [
{
"offset": 0,
"length": 5
}
],
"secondary_text": "Surf Avenue, Brooklyn, NY",
"place_id": "ChIJcRMeDzZEwokR3NsXUDpO9UU",
"data_id": "0x89c244360f1e1371:0x45f54e3a5017dbdc",
"kgmid": "/m/09sg3h",
"coordinates": {
"latitude": 40.5743017,
"longitude": -73.9748532
},
"country": null
},
{
"type": "business",
"description": "New York Public Library - Stephen A. Schwarzman Building, 5th Avenue, New York, NY",
"main_text": "New York Public Library - Stephen A. Schwarzman Building",
"main_text_highlights": [
{
"offset": 0,
"length": 5
}
],
"secondary_text": "5th Avenue, New York, NY",
"place_id": "ChIJqaiomQBZwokRTHOaUG7fUTs",
"data_id": "0x89c2590099a8a8a9:0x3b51df6e509a734c",
"kgmid": "/m/03gyv_y",
"coordinates": {
"latitude": 40.7531823,
"longitude": -73.98225339999999
},
"country": null
}
]
}