APIDeveloper

Search Google Maps for local businesses and places

Search for Google Maps for local businesses and places via API. Supply a search query. Sample fields include languages and addresses. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists country, language. Use the results to organize a research workflow and cross-check the relevant source records.

Selected price
$0.003 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Search Google Maps for local businesses and places

Prepare your request, then continue with your agent.

Selected price

$0.003 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Google Maps search phrase; leading and trailing whitespace is removed.
Optional parameters (5)
Two-letter country code, normalized to lowercase. Defaults to us.
Result language, for example en, de or zh-CN. Defaults to en.
locationobject

location

Search origin coordinates and map zoom (default 14). Required for page > 1. Latitude must be -90 to 90, longitude -180 to 180, and zoom 3 to 30. Example: {"latitude":40.7455,"longitude":-74.0083,"zoom":15}.
Page number, 1–6; default 1. Accepts an integer or canonical integer string such as "2". Empty strings use the default. Pages after the first require location.
Maximum places to return from this page, 1–20; default 20. Accepts an integer or canonical integer string such as "10". Empty strings use the default. Truncation does not reduce the page charge or carry places to the next page.

Sample response

{
  "results": [
    {
      "address": "<address>",
      "categories": [
        "<0>"
      ],
      "category": "<category>",
      "coordinates": {
        "latitude": -90,
        "longitude": -180
      },
      "description": "<description>",
      "maps_url": "<maps_url>",
      "name": "<name>",
      "open_state": "<open_state>",
      "opening_hours": {
        "friday": "<friday>",
        "monday": "<monday>",
        "saturday": "<saturday>",
        "sunday": "<sunday>",
        "thursday": "<thursday>",
        "tuesday": "<tuesday>",
        "wednesday": "<wednesday>"
      },
      "phone": "<phone>",
      "place_id": "<place_id>",
      "position": 1,
      "price": "<price>",
      "rating": 0,
      "review_count": 0,
      "thumbnail": "<thumbnail>",
      "website": "<website>"
    }
  ],
  "searchParameters": {
    "country": "us",
    "language": "en",
    "location": {
      "latitude": -90,
      "longitude": -180,
      "zoom": 14
    },
    "max_results": 20,
    "page": 1,
    "query": "<query>"
  }
}

Response result

Response structure

Inferred from examples
  • resultsobject[]
    • addressstring
    • categoriesstring[]
    • categorystring
    • coordinatesobject
      • latitudeinteger
      • longitudeinteger
    • descriptionstring
    • maps_urlstring
    • namestring
    • open_statestring
    • opening_hoursobject
      • fridaystring
      • mondaystring
      • saturdaystring
      • sundaystring
      • thursdaystring
      • tuesdaystring
      • wednesdaystring
    • phonestring
    • place_idstring
    • positioninteger
    • pricestring
    • ratinginteger
    • review_countinteger
    • thumbnailstring
    • websitestring
  • searchParametersobject
    • countrystring
    • languagestring
    • locationobject
      • latitudeinteger
      • longitudeinteger
      • zoominteger
    • max_resultsinteger
    • pageinteger
    • querystring

Sellers

SellerPricingRequests · 30dPerformanceAccess
openanyCurrent
Search Google Maps for local businesses and places · POST · View API reference
$0.003 / call—
—successP50—
Loading...
Selected pricing · openanyUSD / call
Unit price
$0.003

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.3

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/openany/maps
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/openany/maps' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "max_results": 5,
  "page": 1,
  "query": "coffee in Manhattan"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
queryJSON request bodybodystringYesGoogle Maps search phrase; leading and trailing whitespace is removed.

minLength: 1 · maxLength: 1000

countryJSON request bodybodystringNoTwo-letter country code, normalized to lowercase. Defaults to us.
languageJSON request bodybodystringNoResult language, for example en, de or zh-CN. Defaults to en.
locationJSON request bodybodyobjectNoSearch origin coordinates and map zoom (default 14). Required for page > 1. Latitude must be -90 to 90, longitude -180 to 180, and zoom 3 to 30. Example: {"latitude":40.7455,"longitude":-74.0083,"zoom":15}.
pageJSON request bodybodyintegerNoPage number, 1–6; default 1. Accepts an integer or canonical integer string such as "2". Empty strings use the default. Pages after the first require location.

minimum: 1 · maximum: 6

max_resultsJSON request bodybodyintegerNoMaximum places to return from this page, 1–20; default 20. Accepts an integer or canonical integer string such as "10". Empty strings use the default. Truncation does not reduce the page charge or carry places to the next page.

minimum: 1 · maximum: 20

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Response template · not a real response · Configured HTTP 200; actual status is unverified. Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

Schema template · Basic request (HTTP assumed)
{
  "results": [
    {
      "address": "<address>",
      "categories": [
        "<0>"
      ],
      "category": "<category>",
      "coordinates": {
        "latitude": -90,
        "longitude": -180
      },
      "description": "<description>",
      "maps_url": "<maps_url>",
      "name": "<name>",
      "open_state": "<open_state>",
      "opening_hours": {
        "friday": "<friday>",
        "monday": "<monday>",
        "saturday": "<saturday>",
        "sunday": "<sunday>",
        "thursday": "<thursday>",
        "tuesday": "<tuesday>",
        "wednesday": "<wednesday>"
      },
      "phone": "<phone>",
      "place_id": "<place_id>",
      "position": 1,
      "price": "<price>",
      "rating": 0,
      "review_count": 0,
      "thumbnail": "<thumbnail>",
      "website": "<website>"
    }
  ],
  "searchParameters": {
    "country": "us",
    "language": "en",
    "location": {
      "latitude": -90,
      "longitude": -180,
      "zoom": 14
    },
    "max_results": 20,
    "page": 1,
    "query": "<query>"
  }
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Search Google Maps for local businesses and places

Search for Google Maps for local businesses and places via API. Supply a search query. Sample fields include languages and addresses. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists country, language. Use the results to organize a research workflow and cross-check the relevant source records.
## Available implementations
openany · Search Google Maps for local businesses and places: https://openany.si/markets/apis/capabilities/web-search-google-maps-for-local-businesses-and-places?offering=9623a805-fd4a-4f4c-92c1-0536cb065d03 · $0.003 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/web-search-google-maps-for-local-businesses-and-places
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/openany/maps
Price: $0.003 / call
Provider: openany
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/openany/maps' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "max_results": 5,
  "page": 1,
  "query": "coffee in Manhattan"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Search Google Maps for local businesses and places",
  "endpoint": "https://api.openany.si/v1/agent-apis/openany/maps",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Google Maps search phrase; leading and trailing whitespace is removed.",
      "location": "body",
      "max_length": 1000,
      "min_length": 1,
      "name": "query",
      "nullable": false,
      "pointer": "/query",
      "required": true,
      "type": "string"
    },
    {
      "description": "Two-letter country code, normalized to lowercase. Defaults to us.",
      "location": "body",
      "name": "country",
      "nullable": false,
      "pointer": "/country",
      "required": false,
      "type": "string"
    },
    {
      "description": "Result language, for example en, de or zh-CN. Defaults to en.",
      "location": "body",
      "name": "language",
      "nullable": false,
      "pointer": "/language",
      "required": false,
      "type": "string"
    },
    {
      "description": "Search origin coordinates and map zoom (default 14). Required for page > 1. Latitude must be -90 to 90, longitude -180 to 180, and zoom 3 to 30. Example: {\"latitude\":40.7455,\"longitude\":-74.0083,\"zoom\":15}.",
      "location": "body",
      "name": "location",
      "nullable": false,
      "pointer": "/location",
      "required": false,
      "type": "object"
    },
    {
      "description": "Page number, 1–6; default 1. Accepts an integer or canonical integer string such as \"2\". Empty strings use the default. Pages after the first require location.",
      "location": "body",
      "maximum": "6",
      "minimum": "1",
      "name": "page",
      "nullable": false,
      "pointer": "/page",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Maximum places to return from this page, 1–20; default 20. Accepts an integer or canonical integer string such as \"10\". Empty strings use the default. Truncation does not reduce the page charge or carry places to the next page.",
      "location": "body",
      "maximum": "20",
      "minimum": "1",
      "name": "max_results",
      "nullable": false,
      "pointer": "/max_results",
      "required": false,
      "type": "integer"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "3000",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Schema template · Basic request (HTTP assumed)",
      "request": {
        "body": {
          "max_results": 5,
          "page": 1,
          "query": "coffee in Manhattan"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "results": [
          {
            "address": "<address>",
            "categories": [
              "<0>"
            ],
            "category": "<category>",
            "coordinates": {
              "latitude": -90,
              "longitude": -180
            },
            "description": "<description>",
            "maps_url": "<maps_url>",
            "name": "<name>",
            "open_state": "<open_state>",
            "opening_hours": {
              "friday": "<friday>",
              "monday": "<monday>",
              "saturday": "<saturday>",
              "sunday": "<sunday>",
              "thursday": "<thursday>",
              "tuesday": "<tuesday>",
              "wednesday": "<wednesday>"
            },
            "phone": "<phone>",
            "place_id": "<place_id>",
            "position": 1,
            "price": "<price>",
            "rating": 0,
            "review_count": 0,
            "thumbnail": "<thumbnail>",
            "website": "<website>"
          }
        ],
        "searchParameters": {
          "country": "us",
          "language": "en",
          "location": {
            "latitude": -90,
            "longitude": -180,
            "zoom": 14
          },
          "max_results": 20,
          "page": 1,
          "query": "<query>"
        }
      }
    },
    {
      "http_status": 200,
      "name": "Schema template · Page 2 with location (HTTP assumed)",
      "request": {
        "body": {
          "location": {
            "latitude": 40.7455,
            "longitude": -74.0083,
            "zoom": 15
          },
          "max_results": 5,
          "page": 2,
          "query": "coffee in Manhattan"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "results": [
          {
            "address": "<address>",
            "categories": [
              "<0>"
            ],
            "category": "<category>",
            "coordinates": {
              "latitude": -90,
              "longitude": -180
            },
            "description": "<description>",
            "maps_url": "<maps_url>",
            "name": "<name>",
            "open_state": "<open_state>",
            "opening_hours": {
              "friday": "<friday>",
              "monday": "<monday>",
              "saturday": "<saturday>",
              "sunday": "<sunday>",
              "thursday": "<thursday>",
              "tuesday": "<tuesday>",
              "wednesday": "<wednesday>"
            },
            "phone": "<phone>",
            "place_id": "<place_id>",
            "position": 1,
            "price": "<price>",
            "rating": 0,
            "review_count": 0,
            "thumbnail": "<thumbnail>",
            "website": "<website>"
          }
        ],
        "searchParameters": {
          "country": "us",
          "language": "en",
          "location": {
            "latitude": -90,
            "longitude": -180,
            "zoom": 14
          },
          "max_results": 20,
          "page": 1,
          "query": "<query>"
        }
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Schema template · Basic request (HTTP assumed)

Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 6

    Review these request fields before running. Keep the published provider and request method unchanged.

    query
    Google Maps search phrase; leading and trailing whitespace is removed.
    country
    Two-letter country code, normalized to lowercase. Defaults to us.
    language
    Result language, for example en, de or zh-CN. Defaults to en.
    location
    Search origin coordinates and map zoom (default 14). Required for page > 1. Latitude must be -90 to 90, longitude -180 to 180, and zoom 3 to 30. Example: {"latitude":40.7455,"longitude":-74.0083,"zoom":15}.
    page
    Page number, 1–6; default 1. Accepts an integer or canonical integer string such as "2". Empty strings use the default. Pages after the first require location.
    max_results
    Maximum places to return from this page, 1–20; default 20. Accepts an integer or canonical integer string such as "10". Empty strings use the default. Truncation does not reduce the page charge or carry places to the next page.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/openany/maps' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "max_results": 5,
      "page": 1,
      "query": "coffee in Manhattan"
    }'
  3. Check the response

    Response template · not a real response · Configured HTTP 200; actual status is unverified.

    Response template · not a real response
    {
      "results": [
        {
          "address": "<address>",
          "categories": [
            "<0>"
          ],
          "category": "<category>",
          "coordinates": {
            "latitude": -90,
            "longitude": -180
          },
          "description": "<description>",
          "maps_url": "<maps_url>",
          "name": "<name>",
          "open_state": "<open_state>",
          "opening_hours": {
            "friday": "<friday>",
            "monday": "<monday>",
            "saturday": "<saturday>",
            "sunday": "<sunday>",
            "thursday": "<thursday>",
            "tuesday": "<tuesday>",
            "wednesday": "<wednesday>"
          },
          "phone": "<phone>",
          "place_id": "<place_id>",
          "position": 1,
          "price": "<price>",
          "rating": 0,
          "review_count": 0,
          "thumbnail": "<thumbnail>",
          "website": "<website>"
        }
      ],
      "searchParameters": {
        "country": "us",
        "language": "en",
        "location": {
          "latitude": -90,
          "longitude": -180,
          "zoom": 14
        },
        "max_results": 20,
        "page": 1,
        "query": "<query>"
      }
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Search Google Maps for local businesses and places with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.