Google API docs

Google API: Maps — Places by query

Discover Maps data on Google from a user query and connect the results to search, catalog, or research interfaces.

Use “Places by query” when an exact object ID is not known and relevant candidates must be found first.

Method GET
Entity Maps
Versions 1
What this endpoint does

What you can build with this API method

Review the result and common workflows first, then move to parameters and a working request example.

What this endpoint helps with

The response includes matching Maps, public context, and pagination data when more results are available.

When to use it

Use “Places by query” when an exact object ID is not known and relevant candidates must be found first.

Common use cases

In-product search

Add Google data search to customer-facing and internal interfaces.

Catalog building

Find candidates by query and save relevant objects for later enrichment.

Market research

Collect result sets for topic, creator, and competitive analysis.

Available versions

Response version

Both versions solve the same job and accept the same parameters. Use the switch to compare the response structure and choose the version your client expects.

Response version V2

Switch versions on this page to compare response structures while keeping the same documentation URL.

V1 Not available

What stays the same

Authentication, required parameters, and the request shape stay the same across V1 and V2. In practice, you choose the version when you build the endpoint path and when you parse the response.

What changes between versions

The main difference is the response envelope. Use V2 for new integrations and keep V1 only when you need compatibility with an existing client contract.

How to use it

How to call the method

Use the same API key header and the same query parameters for both versions. This documentation shows the shared parameter set first, then version-specific endpoint paths and code snippets.

Input parameters

Shared parameters
Parameter Required Type Example Description
coordinates No str | None value Optional map coordinates in Google Maps center format. Example: @37.7749,-122.4194.
country_code No str US Two-letter country code used for geo-localized Google results. Example: US.
cursor No str | None QVFB... Next-page cursor returned by the previous response. Omit it for the first page.
language No str | None value Optional Google interface language code used for localized text fields. Example: en.
query No str coffee shops User-entered search query.
radius_meters No float | None value Optional search radius in meters for Google Maps places search. Example: 5000.

Version-specific request path

V2

Choose a version when you copy the exact endpoint path, example URL, and code snippet. The parameter list above stays the same.

GET /api/v2/google.com/maps/places-by-query

Normalized format

Code examples

curl --request GET \
  --url "https://www.scrapestorm.net/api/v2/google.com/maps/places-by-query" \
  --header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
  # Optional parameters:
  # --data-urlencode 'coordinates=value'
  # --data-urlencode 'country_code=US'
  # --data-urlencode 'cursor=QVFB...'
  # --data-urlencode 'language=value'
  # --data-urlencode 'query=coffee shops'
  # --data-urlencode 'radius_meters=value'
Response example

Live response by version

The preview keeps key fields and the first collection items so you can scan the response shape quickly. Switching versions changes the JSON format.

Response example

V2 response JSON

Verified example

This compact JSON example comes from the latest successful verification run for V2.

{
  "success": true,
  "status": "ok",
  "pagination": {
    "cursor": "QVFB...",
    "has_more": true
  },
  "search_context": {
    "language": "en",
    "country_code": "us",
    "query": "coffee san francisco"
  },
  "data": {
    "places": {
      "count": 20,
      "items": [
        {
          "rank": 1,
          "company_id": "5181132708478222499",
          "name": "The Coffee Berry SF",
          "feature_id": "0x80858135f0db680b:0x47e714bf5f0080a3",
          "place_id": "ChIJC2jb8DWBhYARo4AAX78U50c",
          "rating": 4.9,
          "categories": [
            "Coffee shop"
          ],
          "category_code": "coffee",
          "tags": [
            "Dogs allowed"
          ],
          "formatted_address": "1410 Lombard St, San Francisco, CA 94123",
          "address": {
            "street_address": "1410 Lombard St",
            "locality": "San Francisco",
            "postal_code": "94123",
            "region": "California",
            "country_code": "US"
          },
          "full_address": "The Coffee Berry SF, 1410 Lombard St, San Francisco, CA 94123",
          "address_lines": [
            "1410 Lombard St",
            "San Francisco, CA 94123"
          ],
          "neighborhood": "Marina District",
          "locality": "San Francisco",
          "coordinates": {
            "latitude": 37.8014124,
            "longitude": -122.4249979
          },
          "timezone": "America/Los_Angeles",
          "phone_number": "+1 415-800-7073",
          "website_url": "http://thecoffeeberrysf.com/",
          "website_host": "thecoffeeberrysf.com",
          "google_maps_url": "https://www.google.com/maps/place/?q=place_id:ChIJC2jb8DWBhYARo4AAX78U50c",
          "opening_hours": {
            "open_now_text": "Open",
            "hours_summary": "Open · Closes 6 PM",
            "today_hours": [
              "7 AM–6 PM"
            ]
          },
          "accessibility_features": [
            {
              "code": "/geo/type/establishment_poi/has_wheelchair_accessible_entrance",
              "label": "Wheelchair accessible entrance",
              "available": true
            },
            {
              "code": "/geo/type/establishment_poi/has_wheelchair_accessible_parking",
              "label": "Wheelchair accessible parking lot",
              "available": true
            },
            {
              "_more_items": 3
            }
          ],
          "business_highlights": [
            "LGBTQ+ friendly",
            "Identifies as Latino-owned"
          ],
          "_more_fields": "1 more fields"
        },
        {
          "rank": 2,
          "company_id": "1904023059391355563",
          "name": "Saint Frank Coffee",
          "feature_id": "0x808580e84308f899:0x1a6c72e2732c9aab",
          "place_id": "ChIJmfgIQ-iAhYARq5osc-JybBo",
          "rating": 4.5,
          "categories": [
            "Coffee shop",
            "Cafe"
          ],
          "category_code": "coffee",
          "tags": [
            "Bright & spacious local coffeehouse"
          ],
          "formatted_address": "2340 Polk St, San Francisco, CA 94109",
          "address": {
            "street_address": "2340 Polk St",
            "locality": "San Francisco",
            "postal_code": "94109",
            "region": "California",
            "country_code": "US"
          },
          "full_address": "Saint Frank Coffee, 2340 Polk St, San Francisco, CA 94109",
          "address_lines": [
            "2340 Polk St",
            "San Francisco, CA 94109"
          ],
          "neighborhood": "Polk Gulch",
          "locality": "San Francisco",
          "coordinates": {
            "latitude": 37.7984797,
            "longitude": -122.4220775
          },
          "timezone": "America/Los_Angeles",
          "phone_number": "+1 415-881-8062",
          "website_url": "http://www.saintfrankcoffee.com/",
          "website_host": "saintfrankcoffee.com",
          "google_maps_url": "https://www.google.com/maps/place/?q=place_id:ChIJmfgIQ-iAhYARq5osc-JybBo",
          "opening_hours": {
            "open_now_text": "Open",
            "hours_summary": "Open · Closes 6 PM",
            "today_hours": [
              "7 AM–6 PM"
            ]
          },
          "accessibility_features": [
            {
              "code": "/geo/type/establishment_poi/has_wheelchair_accessible_entrance",
              "label": "Wheelchair accessible entrance",
              "available": true
            },
            {
              "code": "/geo/type/establishment_poi/has_wheelchair_accessible_restroom",
              "label": "Wheelchair accessible restroom",
              "available": true
            },
            {
              "_more_items": 1
            }
          ],
          "business_highlights": null,
          "_more_fields": "1 more fields"
        },
        {
          "_more_items": 18
        }
      ]
    }
  }
}
What to do next

Continue the evaluation

Use this documentation as the first decision point, then move into pricing, platform coverage, and integration rules before you connect the endpoint for recurring use.

Open the Google platform page

Compare adjacent entities, API method groups, and related docs before implementation.

Open platform page

Compare API method pricing

Check where this API method sits inside the public price table before you scale usage.

View pricing

Review integration rules

Use the starter docs to confirm authentication, versioning, retries, and mock vs live behavior.

Open docs
FAQ

Questions teams ask before implementation

Use these answers to decide whether this API method fits your workflow, versioning choice, and rollout plan.

What data does this Google API method return?

The method performs “Places by query” for Maps. The compact response example below shows the exact field structure.

Should I choose V1 or V2?

Choose V2 for new integrations because it provides a normalized structure. Use V1 only for compatibility with clients that already consume the platform-native format.

What do I need for the first request?

Create an API key, send it in the request header, and provide the required parameters from the table. The code samples already contain the correct path and request structure.