Google Maps Search API (Async)

The Google Maps Search API endpoint returns Google Maps Search result page and transform it into usable JSON.

Single Query Request

curl -X POST \
    -H "Content-Type: application/json" \
    -d '{
            "apiKey": "API_KEY",
            "query": "QUERY",
            "latitude": LATITUDE,
            "longitude": LONGITUDE,
            "callback": {
                "type": "webhook",
                "url": "YYYYYY"
            }
        }' \
    "https://async.scraperapi.com/structured/google/mapssearch"

Multiple Queries Request

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "apiKey": "API_KEY",
    "jobs": [
      {
        "query": "QUERY1",
        "latitude": LATITUDE_1,
        "longitude": LONGITUDE_1,
        "callback": {
          "type": "webhook",
          "url": "YYYYYY"
        }
      },
      {
        "query": "QUERY2",
        "latitude": LATITUDE_2,
        "longitude": LONGITUDE_2,
        "callback": {
          "type": "webhook",
          "url": "YYYYYY"
        }
      }
    ]
  }' \
  "https://async.scraperapi.com/structured/google/mapssearch"
circle-check

Supported Parameters

Parameter
Details

API_KEY(required)

Your API Key.

QUERY(required)

Query string for example: vegan restaurant

LATITUDE(required)

Latitude value, for example: 21.029738077531196

LONGITUDE(required)

Longitude value, for example: 105.85222341863856

Sample Response

Single Query Request

Multiple Queries Request

After the job(s) finish, you will find the result under the response key in the response JSON object. The structure is the same as in the corresponding SYNC data endpoint.

Last updated