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"const res = await fetch('https://pipefetch.com/v1/google/maps?q=coffee&location=Austin%2C+TX%2C+USA', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/google/maps",
params={"q": "coffee", "location": "Austin, TX, USA"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]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
{
"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
}
}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
| Name | Type | Description |
|---|---|---|
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.
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.
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.
Each endpoint says what a request costs. Requests that return nothing are free.
- $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
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 Google APIs
-
1 credit
Google Hotels API
Hotels for a place with Google's prices for your dates: nightly and total price, rating, star class, amenities and location.
GET /v1/google/hotels -
1 credit
Google News API
The articles Google News lists for a search: headline, publisher, publish time and Google News link, plus a coverage summary.
GET /v1/google/news -
1 credit
Google Search API
The first page of Google results for a search: rank, title, link, domain, snippet and date of each result, plus related searches.
GET /v1/google/search -
1 credit
Google Trends API
Search interest in a term over time and by region on Google's 0 to 100 scale, with its top and rising related queries.
GET /v1/google/trends -
1 credit
Google Flights API
Flights from Google Flights for a route and date: price, airline, flight numbers, times, duration, stops, layovers and emissions.
GET /v1/google/flights -
3 credits
Google Jobs API
Job listings from Google's jobs search: title, company, location, salary, posting date, job type, the board it is on, apply links and description.
GET /v1/google/jobs -
1 credit
Google Ads Transparency API
Ads a domain runs on Google, from the Google Ads Transparency Center: advertiser, first and last date shown, days shown and a preview link.
GET /v1/google/ads
Other sources
YouTubeInstagramWebsitesTikTokFacebookThreadsLinkedInApp storesSteamXPinterestAmazonAirbnbReal estateKeywordsJob boardsEventbriteShopify storesPublic tendersTrustpilotProduct HuntAudio & video
Make your first request in a minute
Sign in, copy your key and call an endpoint. Your account starts with 10 free credits.