GeoScraper API Documentation - Google Map Auto Search API

Google Map Auto Search API

This API provides the autosearch functionality of Google Maps, allowing you to search for places based on keywords and location.

Endpoint

  • POST: https://api.geoscraper.net/google/map/search

Headers

  • X-Berserker-Token: Your_Access_Token

Request Body

  • Format: JSON
  • Fields:
    • ll (required): Coordinates and zoom level in the format “@latitude,longitude,zoomz”.
    • query (required): The search query, e.g., “restaurants”.
    • hl (optional): Language parameter for response language.
    • catched (optional): Use cached data if available.

Sample Request

import requests

url = "https://api.geoscraper.net/google/map/search"
payload = {
    "ll": "@40.7455096,-74.0083012,14z",
    "query": "restaurants",
    "hl": "en",
    "catched": true
}
headers = {'X-Berserker-Token': 'Your_Access_Token'}

response = requests.post(url, headers=headers, json=payload)
print(response.text)

Sample Response

[
  {
    "keyword": "restaurants",
    "type": "keyword"
  },
  {
    "title": "Restaurants Reimagined",
    "gps_coordinates": {
      "latitude": 40.8124039,
      "longitude": -73.9424366
    },
    "address": "Malcolm X Boulevard, New York, NY",
    "data_id": "0x89c25dbfac0f3193:0x25ef8c7b5aea20b1",
    "type": "place"
  },
  {
    "keyword": "Restaurant Depot",
    "type": "keyword"
  },
  {
    "keyword": "restaurants chinois",
    "type": "keyword"
  },
  {
    "keyword": "restaurants japonais",
    "type": "keyword"
  }
]

Description

  • The response includes a list of search results based on the provided query and location. Each result may contain details like the title, GPS coordinates, address, and other relevant information.

Note: Replace Your_Access_Token with your actual API access token.