# Google Maps Nearby Search

Get Google Maps data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by anyapi, pass parameters such as coordinates, limit, query, and retrieve structured data including item collection, returned cost usd field, returned hint field, returned openany cost field, and returned next cursor field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/market/apis/google/google-maps/?offering=a17a3810-e6db-4e16-bece-9004443dc113
API ID: a17a3810-e6db-4e16-bece-9004443dc113
Provider: anyapi
Contract revision: 8
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/maps.search_nearby
Page update time: 2026-12-03T02:53:21.504Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.0013 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:53:16.943Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1300",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Google Maps Nearby Search request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "fields": {
          "type": "string",
          "description": "Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost."
        },
        "max_items": {
          "type": "integer",
          "description": "Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.",
          "minimum": 0
        },
        "summary": {
          "type": "boolean",
          "description": "Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost."
        },
        "jq": {
          "type": "string",
          "description": "Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost."
        },
        "max_cost_usd": {
          "type": "string",
          "description": "Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {
        "Idempotency-Key": {
          "type": "string",
          "description": "Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.",
          "minLength": 1,
          "maxLength": 255
        }
      }
    },
    "body": {
      "type": "object",
      "properties": {
        "allowFallbacks": {
          "type": "boolean",
          "description": "Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price."
        },
        "coordinates": {
          "additionalProperties": false,
          "description": "The exact map centre to search around. Use maps.search instead if you only have a place name.",
          "properties": {
            "latitude": {
              "description": "Latitude of the map centre in decimal degrees.",
              "maximum": 90,
              "minimum": -90,
              "type": "number"
            },
            "longitude": {
              "description": "Longitude of the map centre in decimal degrees.",
              "maximum": 180,
              "minimum": -180,
              "type": "number"
            }
          },
          "required": [
            "latitude",
            "longitude"
          ],
          "type": "object"
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor from a previous response's nextCursor. Pass it back to get the next page of places."
        },
        "ignoreSources": {
          "type": "array",
          "description": "Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.",
          "items": {
            "type": "string"
          }
        },
        "language": {
          "type": "string",
          "description": "Two-letter language code for the results (e.g. en)."
        },
        "limit": {
          "type": "integer",
          "description": "Accepted but does not change the page: every call returns one full Google Maps viewport of about 20 places, never trimmed, so nextCursor continues exactly where this response ended. Price is flat per request.",
          "minimum": 1,
          "maximum": 20
        },
        "preferLatencyUnderMs": {
          "type": "integer",
          "description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.",
          "minimum": 1
        },
        "query": {
          "type": "string",
          "description": "What you would type in the Google Maps search bar (e.g. coffee shop).",
          "minLength": 1
        },
        "source": {
          "type": "array",
          "description": "Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.",
          "items": {
            "type": "string"
          }
        },
        "zoom": {
          "type": "number",
          "description": "Google Maps viewport zoom. Lower covers a wider area, higher focuses more tightly around the coordinates.",
          "minimum": 3,
          "maximum": 21
        }
      },
      "required": [
        "coordinates",
        "query"
      ]
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "costUsd": {
      "type": "number"
    },
    "hint": {
      "type": "string"
    },
    "items": {
      "type": "integer"
    },
    "openany_cost": {
      "type": "integer"
    },
    "output": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string"
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "category": {
                    "type": "string"
                  },
                  "cid": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "countryCode": {
                    "type": "string"
                  },
                  "domain": {
                    "type": "string"
                  },
                  "image": {
                    "type": "string"
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "neighborhood": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "placeId": {
                    "type": "string"
                  },
                  "postalCode": {
                    "type": "string"
                  },
                  "rank": {
                    "type": "integer"
                  },
                  "rating": {
                    "type": "number"
                  },
                  "reviewCount": {
                    "type": "integer"
                  },
                  "state": {
                    "type": "string"
                  },
                  "street": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "website": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                }
              }
            },
            "nextCursor": {
              "type": "string"
            }
          }
        },
        "found": {
          "type": "boolean"
        }
      }
    },
    "provider": {
      "type": "string"
    },
    "replayed": {
      "type": "boolean"
    },
    "resultId": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "properties": {
        "artworkKey": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Recorded example (sanitized, abridged; 2026-11-18)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/maps.search_nearby?max_cost_usd=0.0013' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "coordinates": {
    "latitude": 30.2672,
    "longitude": -97.7431
  },
  "limit": 1,
  "query": "coffee shop"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "costUsd": 0.0013,
  "hint": "large_result: this response is ~18 KB. To keep future runs from flooding your context, re-run with `fields` (keep only the keys you need), `max_items` (cap rows), `summary=true` (outline only), or `jq` for arbitrary reshaping (e.g. `jq=.data.markdown[:2000]`) — these trim the response only, never the charge.",
  "items": 20,
  "openany_cost": 1300,
  "output": {
    "data": {
      "items": [
        {
          "address": "3908 Avenue B, Austin, TX 78751",
          "categories": [
            "Coffee shop",
            "Coffee stand"
          ],
          "category": "Coffee shop",
          "cid": "2982629209513831130",
          "city": "Austin",
          "countryCode": "US",
          "domain": "terriblelovecoffee.com",
          "image": "https://lh3.googleusercontent.com/grass-cs/AABkmLc01H6xLTYgvyn_MqHnNMLLA5o8aimBUPAEg14PfBQjQruhUNg_vvUclMqEq3A0kPs7pxhUJ7EylBVmTPKMtCPe4HGD8ypu2R39JQJNhm1kOAFAs4tC-f8sz_WcoXYKXOdQGaQ=w408-h544-k-no",
          "latitude": 30.3045132,
          "longitude": -97.735632,
          "name": "Terrible Love Coffee",
          "neighborhood": "Hyde Park",
          "phone": "",
          "placeId": "ChIJP8p2kJC1RIYR2qrGoXZtZCk",
          "postalCode": "78751",
          "rank": 1,
          "rating": 4.9,
          "reviewCount": 435,
          "state": "Texas",
          "street": "3908 Avenue B",
          "url": "https://www.google.com/maps/search/?api=1&query=coffee+shop&query_place_id=ChIJP8p2kJC1RIYR2qrGoXZtZCk",
          "website": "http://terriblelovecoffee.com/"
        },
        {
          "address": "4715 S Lamar Blvd #102, Sunset Valley, TX 78745",
          "categories": [
            "Coffee shop",
            "Beer hall"
          ],
          "category": "Coffee shop",
          "cid": "6135172139715582269",
          "city": "Sunset Valley",
          "countryCode": "US",
          "description": "Relaxed cafe & bar featuring coffee drinks, craft beers, pastries & light bites in modern digs.",
          "domain": "stouthauscoffee.com",
          "image": "https://lh3.googleusercontent.com/grass-cs/AABkmLc-5mi5Fc4SFSoS_tdVL0v3XtxKr1L5PJlWgyL5iRLGVPLnwOBF_C8dJ908yHuW4VAYD7muJJZaRSOt2XoB-hBZj6eCWQROANZx50Fibs1Q3qZ1qIq5VGgyRsPKjhBeY3B6XzTa=w408-h306-k-no",
          "latitude": 30.2325888,
          "longitude": -97.81133299999999,
          "name": "Stouthaus Coffee - Sunset Valley",
          "neighborhood": "Meadowview At Sunset Valley",
          "phone": "+1-202-555-0100",
          "placeId": "ChIJkUX0vBZLW4YRPdmeN46CJFU",
          "postalCode": "78745",
          "rank": 2,
          "rating": 4.6,
          "reviewCount": 786,
          "state": "Texas",
          "street": "4715 S Lamar Blvd #102",
          "url": "https://www.google.com/maps/search/?api=1&query=coffee+shop&query_place_id=ChIJkUX0vBZLW4YRPdmeN46CJFU",
          "website": "http://www.stouthauscoffee.com/"
        }
      ],
      "nextCursor": "cur_xrM00ZFkXlAB3FQVTSUGtQ"
    },
    "found": true
  },
  "provider": "AnyAPI",
  "replayed": false,
  "resultId": "<RESULT_ID>",
  "source": {
    "artworkKey": "chameleon",
    "id": "anonymous-chameleon-ee237f60",
    "kind": "anonymous",
    "name": "Chameleon"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- anyapi: https://openany.si/market/apis/google/google-maps/?offering=398aadb5-41a0-4160-9cb8-b2fb01111c35
- anyapi: https://openany.si/market/apis/google/google-maps/?offering=817f5ee8-77e4-4591-b467-e3129c59af67
- anyapi: https://openany.si/market/apis/google/google-maps/?offering=a17a3810-e6db-4e16-bece-9004443dc113
- anyapi: https://openany.si/market/apis/google/google-maps/?offering=ceee8602-721a-45ae-a584-a2425ca46911
- anyapi: https://openany.si/market/apis/google/google-maps/?offering=de886d24-af79-4c0d-b9d3-51cf65a5a3be
- litescrape: https://openany.si/market/apis/google/google-maps/?offering=02edd1d0-a1ca-4c13-9356-c6f321a7f5f7
- litescrape: https://openany.si/market/apis/google/google-maps/?offering=35cf8c95-8a15-4fdf-8a72-c56027aa66ff
- litescrape: https://openany.si/market/apis/google/google-maps/?offering=7329f016-2931-4dd4-b00e-ce0916b64db2
- litescrape: https://openany.si/market/apis/google/google-maps/?offering=8d5cd2ae-3af6-4045-afaf-331c42e0132c
- litescrape: https://openany.si/market/apis/google/google-maps/?offering=e3a51ba1-1fd6-4f16-b41f-3d5188f28098
- litescrape: https://openany.si/market/apis/google/google-maps/?offering=f6115836-b95d-47e6-a625-b04b7f56b2c0
- serper: https://openany.si/market/apis/google/google-maps/?offering=07983be6-0346-4c86-840a-9253dbb3d3f2
- serper: https://openany.si/market/apis/google/google-maps/?offering=33af9d62-b4b9-4c48-9d68-162fce987e63
- serper: https://openany.si/market/apis/google/google-maps/?offering=a837c5ff-1997-45cf-95f2-31848c29e731

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
