Google API

Google Maps API

Send what you are looking for and where, such as coffee in Austin, TX, and get the places Google Maps lists as JSON: name, category, address, phone, website, rating, number of reviews, opening hours and coordinates.

  • 10 free credits
  • No card needed
  • No scraper to build or maintain
curl "https://pipefetch.com/v1/google/maps?q=coffee&location=Austin%2C+TX%2C+USA" \
  -H "x-api-key: YOUR_API_KEY"
The response

What you get

  • Up to 20 places per request, in Google Maps' order
  • Name, category and full address
  • Phone and website
  • Rating, number of reviews and opening hours
  • Coordinates, Google place id and Maps link
200 OK · application/json
{
  "data": {
    "query": "coffee",
    "location": "Austin, Travis County, Texas, United States",
    "places": [
      {
        "rank": 1,
        "name": "Flora Coffee & Culture",
        "category": "Coffee shop",
        "categories": [
          "Coffee shop"
        ],
        "address": "3300 W Anderson Ln. Ste 300, Austin, TX 78757",
        "street": "3300 W Anderson Ln. Ste 300",
        "city": "Austin",
        "postalCode": "78757",
        "state": "Texas",
        "countryCode": "US",
        "phone": null,
        "website": "http://floracoffee.co/",
        "rating": 4.9,
        "reviews": 422,
        "location": {
          "lat": 30.362347,
          "lng": -97.7421123
        },
        "openingHours": [
          {
            "day": "Monday",
            "hours": "7 AM–3 PM"
          },
          {
            "day": "Tuesday",
            "hours": "7 AM–3 PM"
          }
        ],
        "permanentlyClosed": false,
        "temporarilyClosed": false,
        "imageUrl": "https://lh3.googleusercontent.com/grass-cs/AABkmLcDV93hvD03BGfMiWJ-N9_KnnbCiMJWiPYWr1S-wZojbOt_MxO4AkrGimEqNZ2N34yk8-2qa6WvTZaLzd2iLw_828TOzFB7jP5nGOK…",
        "placeId": "ChIJK_G24QHrRIYRFsqJnuQaKv0",
        "url": "https://www.google.com/maps/search/?api=1&query=Flora%20Coffee%20%26%20Culture&query_place_id=ChIJK_G24QHrRIYRFsqJnuQaKv0"
      },
      {
        "rank": 2,
        "name": "Terrible Love Coffee",
        "category": "Coffee shop",
        "categories": [
          "Coffee shop",
          "Coffee stand"
        ],
        "address": "3908 Avenue B, Austin, TX 78751",
        "street": "3908 Avenue B",
        "city": "Austin",
        "postalCode": "78751",
        "state": "Texas",
        "countryCode": "US",
        "phone": null,
        "website": "http://terriblelovecoffee.com/",
        "rating": 4.9,
        "reviews": 437,
        "location": {
          "lat": 30.3045132,
          "lng": -97.735632
        },
        "openingHours": [
          {
            "day": "Monday",
            "hours": "7:30 AM–2 PM"
          },
          {
            "day": "Tuesday",
            "hours": "7:30 AM–2 PM"
          }
        ],
        "permanentlyClosed": false,
        "temporarilyClosed": false,
        "imageUrl": "https://lh3.googleusercontent.com/grass-cs/AABkmLfMwI1tnhcqUaUZTmOaJ-5ndLyXvmgt-CEdccvABVBSEHXZVMW_ZTO35RzKdV4rhvii9cnLzUpAwC-mANHhMfUn9nMidjxPyaGe9DK…",
        "placeId": "ChIJP8p2kJC1RIYR2qrGoXZtZCk",
        "url": "https://www.google.com/maps/search/?api=1&query=Terrible%20Love%20Coffee&query_place_id=ChIJP8p2kJC1RIYR2qrGoXZtZCk"
      }
    ]
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}
Reference

One GET request

Everything the endpoint accepts. The full reference, with the complete example response, is in the docs.

GET/v1/google/maps

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
qrequired string What to look for, such as coffee, dentist or hotel.
locationrequired string Where to look: a city, area or address, such as Austin, TX, USA.
limitoptional integer How many places to return. Default: 20. From 1 to 20.

Good to know

  • Places come in Google Maps' order for the search, inside the location's area.
  • A location Google Maps does not know answers 404 location_not_found, and a search with no places 404 no_places; neither costs anything.

Open the reference

Use cases

What people build with it

  • Lead lists

    Build lists of local businesses with their phones and websites.

  • Local market research

    Compare the businesses of a kind in a city by rating and reviews.

  • Location data

    Get coordinates and opening hours for places in your app.

  • Local search for AI agents

    An agent finds places nearby with their details in one call.

Pricing

Buy credits once. Use them whenever.

This endpoint costs 1 credit per request, and a request that returns no data costs nothing. Move the slider to see what your volume costs.

5,000credits a month
5005,00050,000250,000
5,000requests at 1 credit
1,666jobs requests at 3 credits

Each endpoint says what a request costs. Requests that return nothing are free.

Best fit
Builder pack
12,000 credits, one-time payment
$29once
  • $2.42 per 1,000 credits
  • About $12.08 a month at this pace
  • Lasts about 2.4 months at this pace
  • Credits never expire
Start with 10 free credits

See all packs and what a credit buys

FAQ

Questions and answers

Is this the official Google Maps API?

No. Pipefetch is an independent service and is not affiliated with Google Maps. It returns what Google Maps shows publicly to a visitor who is not signed in; you need no Google Maps account, only one Pipefetch API key.

How many places do I get?

Up to 20 per request, as Google Maps lists them for the search in that location.

What does a request cost?

One request costs 1 credit. Credit packs start at $9 for 3,000 credits, never expire, and a request that returns no data is not charged. New accounts get 10 free credits without a card.

More

More Google APIs

Also on the same key

Other sources

Make your first request in a minute

Sign in, copy your key and call an endpoint. Your account starts with 10 free credits.