Search places on Google Maps by keyword and location
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.google.maps.search({ query: "coffee", location: "Austin, TX", openNow: true });
console.log(result.data.results);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.google.maps.search(query="coffee", location="Austin, TX", open_now=True)
print(result["data"]["results"])
curl -X POST https://api.stophy.dev/v1/google/maps/search \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"query":"coffee","location":"Austin, TX","openNow":true}'
stophy google maps search --query coffee --location "Austin, TX" --openNow
{
"success": true,
"data": {
"results": [
{
"placeId": "abc123",
"googlePlaceId": "abc123",
"placeUrl": "https://example.com/",
"name": "Example title",
"categories": [
"example"
],
"address": "example",
"latitude": 1,
"longitude": 1,
"rating": 4.5,
"reviews": 1234,
"photos": 1,
"phone": "example",
"website": "https://example.com/",
"description": "A short, readable summary of the result.",
"hours": [
{
"days": "example",
"times": [
"example"
]
}
],
"hoursToday": "example",
"openStatus": "example",
"timezone": "example",
"thumbnailUrl": "https://example.com/image.jpg",
"reservationUrl": "https://example.com/",
"attributes": [
"example"
]
}
],
"page": 1
},
"creditsUsed": 1,
"requestId": "cc56bfc2-db4e-4d82-9bb7-ee7cd3a1340f"
}
Endpoints
| Endpoint | Cost |
|---|---|
| Search places on Google Maps by keyword and location | 1 credit (no key needed) |
| Get a place’s address, hours, rating and contact details | 1 credit |
| Get a place’s reviews | 1 credit |
| Search hotels, restaurants and attractions | 1 credit |
| Get a place’s rating, ranking and details | 1 credit |
| Get a place’s reviews | 1 credit |
| Search Google Hotels with prices, ratings and Google’s own filters | 1 credit |
| Search flights with prices and times | 1 credit |
More ways to call it
Search Google Hotels with prices, ratings and Google’s own filters
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.google.hotels({ query: "Lisbon", checkIn: "2026-11-19" });
console.log(result.data.results);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.google.hotels(query="Lisbon", check_in="2026-11-19")
print(result["data"]["results"])
curl -X POST https://api.stophy.dev/v1/google/hotels \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"query":"Lisbon","checkIn":"2026-11-19"}'
stophy google hotels Lisbon --checkIn 2026-11-19
Search flights with prices and times
import { Stophy } from "stophy";
const stophy = new Stophy({ apiKey: process.env.STOPHY_API_KEY });
const result = await stophy.google.flights({ origin: "JFK", destination: "LAX", departDate: "2026-11-19" });
console.log(result.data.results);
from stophy import Stophy
stophy = Stophy() # reads STOPHY_API_KEY
result = stophy.google.flights(origin="JFK", destination="LAX", depart_date="2026-11-19")
print(result["data"]["results"])
curl -X POST https://api.stophy.dev/v1/google/flights \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "content-type: application/json" \
-d '{"origin":"JFK","destination":"LAX","departDate":"2026-11-19"}'
stophy google flights --origin JFK --destination LAX --departDate 2026-11-19
Google Maps search works without a key. Pass the place id from a Google Maps search, or the place link from a Tripadvisor search, into that source’s other endpoints.