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...
Search Google Maps for local businesses and places
Prepare your request, then continue with your agent.
Selected price
$0.003 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
resultsobject[]addressstringcategoriesstring[]categorystringcoordinatesobjectlatitudeintegerlongitudeinteger
descriptionstringmaps_urlstringnamestringopen_statestringopening_hoursobjectfridaystringmondaystringsaturdaystringsundaystringthursdaystringtuesdaystringwednesdaystring
phonestringplace_idstringpositionintegerpricestringratingintegerreview_countintegerthumbnailstringwebsitestring
searchParametersobjectcountrystringlanguagestringlocationobjectlatitudeintegerlongitudeintegerzoominteger
max_resultsintegerpageintegerquerystring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
results?: Array<{
address?: string;
categories?: Array<string>;
category?: string;
coordinates?: {
latitude?: number;
longitude?: number;
};
description?: string;
maps_url?: string;
name?: string;
open_state?: string;
opening_hours?: {
friday?: string;
monday?: string;
saturday?: string;
sunday?: string;
thursday?: string;
tuesday?: string;
wednesday?: string;
};
phone?: string;
place_id?: string;
position?: number;
price?: string;
rating?: number;
review_count?: number;
thumbnail?: string;
website?: string;
}>;
searchParameters?: {
country?: string;
language?: string;
location?: {
latitude?: number;
longitude?: number;
zoom?: number;
};
max_results?: number;
page?: number;
query?: string;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
openanyCurrent Search Google Maps for local businesses and places · POST · View API reference | $0.003 / call | — | —successP50— |
- 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.
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.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
query | JSON request bodybody | string | Yes | Google Maps search phrase; leading and trailing whitespace is removed. minLength: 1 · maxLength: 1000 |
country | JSON request bodybody | string | No | Two-letter country code, normalized to lowercase. Defaults to us. |
language | JSON request bodybody | string | No | Result language, for example en, de or zh-CN. Defaults to en. |
location | JSON request bodybody | object | No | 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 | JSON request bodybody | integer | No | 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. minimum: 1 · maximum: 6 |
max_results | JSON request bodybody | integer | No | 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. 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.
{
"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
# 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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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" }'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>" } }