Google Autocomplete Scraper

ENDPOINTS
GET/places/suggestions

Place Suggestions

Get Google Maps suggestions: places, stations, chains and searches, with address, coordinates and place ID (up to 5).

QUERY PARAMS

The text typed into the Google Maps box: a place, a station, an address, a chain or a kind of place. 100 characters at most.

Where to look: a latitude and a longitude, or a Google Maps link that carries a map position. Places near it come first. By default it is the largest city of the country.

Examples:

  • Coordinates: 40.7128,-74.0060
  • URL: https://www.google.com/maps/@40.7128,-74.006,12z

Country to look in when no location is given, as a 2-letter code (US, GB, DE, IN): the map opens on its largest city.

Default: US

Language the suggestions and their addresses are written in: a 2-letter code (en, de) or a locale (pt-BR, zh-TW).

Default: en

{
  "query": "golden gate bridge",
  "location": null,
  "country": "US",
  "language": "en",
  "count": 5,
  "suggestions": [
    {
      "position": 1,
      "type": "place",
      "name": "Golden Gate Bridge Vista Point",
      "address": "San Francisco, CA",
      "text": "Golden Gate Bridge Vista Point, San Francisco, CA",
      "link": "https://www.google.com/maps/search/?api=1&query=Golden+Gate+Bridge+Vista+Point%2C+San+Francisco%2C+CA&query_place_id=ChIJZbs2BuyGhYARE9aDfk_IKf0",
      "latitude": 37.8077876,
      "longitude": -122.47520069999999,
      "country_code": "US",
      "category": null,
      "image": null,
      "place_id": "ChIJZbs2BuyGhYARE9aDfk_IKf0",
      "feature_id": "0x808586ec0636bb65:0xfd29c84f7e83d613",
      "knowledge_graph_id": "/m/0d6lp"
    },
    {
      "position": 2,
      "type": "place",
      "name": "Golden Gate Bridge",
      "address": "Golden Gate Bridge, San Francisco, CA",
      "text": "Golden Gate Bridge, Golden Gate Bridge, San Francisco, CA",
      "link": "https://www.google.com/maps/search/?api=1&query=Golden+Gate+Bridge%2C+Golden+Gate+Bridge%2C+San+Francisco%2C+CA&query_place_id=ChIJw____96GhYARCVVwg5cT7c0",
      "latitude": 37.819910899999996,
      "longitude": -122.4785598,
      "country_code": "US",
      "category": null,
      "image": null,
      "place_id": "ChIJw____96GhYARCVVwg5cT7c0",
      "feature_id": "0x808586deffffffc3:0xcded139783705509",
      "knowledge_graph_id": "/m/035p3"
    },
    {
      "position": 3,
      "type": "query",
      "name": "golden gate bridge",
      "address": null,
      "text": "golden gate bridge",
      "link": "https://www.google.com/maps/search/?api=1&query=golden+gate+bridge",
      "latitude": null,
      "longitude": null,
      "country_code": null,
      "category": null,
      "image": null,
      "place_id": null,
      "feature_id": null,
      "knowledge_graph_id": null
    },
    {
      "position": 4,
      "type": "place",
      "name": "Golden Gate Bridge Welcome Center",
      "address": "San Francisco, CA",
      "text": "Golden Gate Bridge Welcome Center, San Francisco, CA",
      "link": "https://www.google.com/maps/search/?api=1&query=Golden+Gate+Bridge+Welcome+Center%2C+San+Francisco%2C+CA&query_place_id=ChIJ5wYsQ5CGhYARvbU9mB9gyfo",
      "latitude": 37.8077973,
      "longitude": -122.4748473,
      "country_code": "US",
      "category": null,
      "image": null,
      "place_id": "ChIJ5wYsQ5CGhYARvbU9mB9gyfo",
      "feature_id": "0x80858690432c06e7:0xfac9601f983db5bd",
      "knowledge_graph_id": "/g/113g_h8cm"
    },
    {
      "position": 5,
      "type": "place",
      "name": "Hell Gate Bridge",
      "address": "Astoria, NY",
      "text": "Hell Gate Bridge, Astoria, NY",
      "link": "https://www.google.com/maps/search/?api=1&query=Hell+Gate+Bridge%2C+Astoria%2C+NY&query_place_id=ChIJ85xGu1lfwokRVClYsUw2OlE",
      "latitude": 40.7825959,
      "longitude": -73.9219127,
      "country_code": "US",
      "category": null,
      "image": null,
      "place_id": "ChIJ85xGu1lfwokRVClYsUw2OlE",
      "feature_id": "0x89c25f59bb469cf3:0x513a364cb1582954",
      "knowledge_graph_id": "/m/01v6ql"
    }
  ]
}