Google Maps API

Google Maps Search API

Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.

POST/v1/run/maps.search
Uptime
99.78%
30d · 4,544 calls
Requests
4,554
30d · weekly, last 12 wks
Response
2.6s
median · 30d

Try it

Make your first request

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `cid` or `street`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "items": [
      {
        "address": "123 Main St",
        "category": "general",
        "cid": "a1b2c3d4",
        "city": "San Francisco",
        "countryCode": "US",
        "image": "https://example.com/image.jpg",
        "latitude": 37.7749,
        "longitude": -122.4194,
        "name": "Example title",
        "permanentlyClosed": false,
        "phone": "+1 555-0142",
        "placeId": "a1b2c3d4",
        "postalCode": "94107",
        "priceLevel": "19.99",
        "rating": 4.6,
        "reviewCount": 12500,
        "state": "CA",
        "street": "123 Main St",
        "url": "https://example.com/page",
        "website": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
interface MapsSearchResponse {
  data: {
    items: {
      address?: string;
      category?: string;
      cid?: string;
      city?: string;
      countryCode?: string;
      image?: string;
      latitude?: number;
      longitude?: number;
      name: string;
      permanentlyClosed?: boolean;
      phone?: string;
      placeId: string;
      postalCode?: string;
      priceLevel?: string;
      rating?: number;
      reviewCount?: number;
      state?: string;
      street?: string;
      url: string;
      website?: string;
    }[];
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/maps.search
curl -X POST https://api.getanyapi.com/v1/run/maps.search \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":3,"location":"Austin, TX","query":"coffee"}'
FieldTypeExample value
Request body
locationstring"Austin, TX"Free-text location to search in, ideally city plus country (e.g. Austin, USA).
querystring"coffee"What you would type in the Google Maps search bar (e.g. coffee shop).
categoryFilterWordsarrayOptional list of Google Maps place-category names to keep; results are limited to places whose category matches one of these. Use lowercase category names as shown on Google Maps (e.g. ["coffee shop", "restaurant"]). Omit to include all categories and stay on the cheapest price; a category filter routes to a dearer source.
languagestringTwo-letter language code for the results (e.g. en).
limitinteger3Maximum number of results to return (1-20, default 20). Pricing depends on the selected provider and may be flat per request.
placeMinimumStarsenumOnly return places with at least this average rating: two (2+), twoAndHalf (2.5+), three (3+), threeAndHalf (3.5+), four (4+), or fourAndHalf (4.5+). Places with no reviews are excluded. Omit this field to stay on the cheapest price; a rating floor routes to a dearer source.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `cid` or `street`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
websiteenumFilter places by whether they list a website: allPlaces (default), withWebsite (only places that have a website), or withoutWebsite (only places without one). Omit this field, or send allPlaces, to stay on the cheapest price; withWebsite and withoutWebsite route to a dearer source.
Response
dataobjectThe result wrapper, or null when nothing matched.
data.itemsobject[]Matching Google Maps place records. Populated whenever the provider has data for the entity.
data.items[].addresscan requirestringFull formatted street address.
data.items[].categorycan requirestringPrimary place category (e.g. Coffee shop).
data.items[].cidcan requirestringGoogle customer/place id (cid).
data.items[].citycan requirestringCity the place is in.
data.items[].countryCodecan requirestringTwo-letter country code.
data.items[].imagecan requirestringPrimary place photo URL.
data.items[].latitudecan requirenumberLatitude of the place in decimal degrees.
data.items[].longitudecan requirenumberLongitude of the place in decimal degrees.
data.items[].namestringPlace name. Populated whenever the provider has data for the entity.
data.items[].permanentlyClosedcan requirebooleanTrue when the place is marked permanently closed.
data.items[].phonecan requirestringBusiness phone number in E.164 format, when listed.
data.items[].placeIdstringGoogle Maps place id (stable identifier for the place). Populated whenever the provider has data for the entity.
data.items[].postalCodecan requirestringPostal code of the place.
data.items[].priceLevelcan requirestringRelative price level indicator (e.g. $, $10-20).
data.items[].ratingcan requirenumberAverage star rating out of 5.
data.items[].reviewCountcan requirenumberTotal number of reviews.
data.items[].statecan requirestringState or region the place is in.
data.items[].streetcan requirestringStreet line of the address.
data.items[].urlstringCanonical Google Maps URL for the place. Populated whenever the provider has data for the entity.
data.items[].websitecan requirestringThe place's own website URL, when listed.
foundbooleanTrue when the search returned at least one matching place.
Price
Price per requestUSD$0.00175
Price /1k reqUSD$1.75

FAQ

About the Google Maps Search API

The AnyAPI Google Maps Search API returns Google Maps search data as normalized JSON from one POST call to /v1/run/maps.search. Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request. AnyAPI routes each request across 3 sources and falls back automatically when one fails. It costs from $1.75 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.8% of Google Maps search calls through AnyAPI succeeded, with a median response time of 2.6 seconds across 4,544 measured calls.

It costs from $1.75 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 99.8% of Google Maps search calls through AnyAPI succeeded, with a median response time of 2.6 seconds across 4,544 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.