Skip to content

ToolsMaps and Yelp

Docs

Tools

Maps and Yelp

Businesses near a place, their details and their reviews.

Things to ask#

Ask your agent in plain words. It picks the tool.

  • Find coffee roasters in Portland, OR and rank them by rating and review count.
  • Pull the latest 20 Google Maps reviews for Stumptown Coffee Roasters and list what customers complain about.
  • Compare this restaurant's Yelp rating and opening hours with its Google Maps listing.

Tools in Maps and Yelp#

5 tools. Prices are in credits; 1,000 credits are $1.

ToolUse it whenCost
maps_search_placesYou need businesses of a kind in a place: dentists in Austin, coffee near Shibuya.1.65 credits a search, or 1.65 credits a place when it falls back to the Maps scraper
maps_get_placeYou have a business's Google Maps link (maps_search_places returns one) and need its details.1.65 credits per call
maps_get_reviewsYou need what customers say about a business on Google Maps.1.65 credits per review
yelp_get_businessYou have a Yelp business URL and need its details.1.65 credits per call
yelp_get_reviewsYou need what customers say about a business on Yelp.1.65 credits per review

Search Google Maps#

Toolmaps_search_places
Reads
Good for
You need businesses of a kind in a place: dentists in Austin, coffee near Shibuya.
Not the tool for
One business you already have the Maps URL of (use maps_get_place).
What you get
The places Google lists, each with name, category, rating, review count, address, phone and website when shown, and the Maps url that maps_get_place and maps_get_reviews take. Usually seconds; when Google Maps is slow it answers status "working" and the same call returns the places a few minutes later.
Cost
1.65 credits a search, or 1.65 credits a place when it falls back to the Maps scraper. Cached 24 hours: a cache hit costs 50% of the live price.

Parameters

NameTypeRequiredDescription
querystringYesWhat and where, e.g. 'dentists in Austin TX'.
countrystringNoTwo-letter country code to search from, e.g. us, gb, de. Default: the brand's country, else us.
languagestringNoInterface language, e.g. en, de, pt-br. Default: the brand's language, else en.
limitintegerNoHow many places to return, at most 100. Default 20.
Example
{
  "name": "maps_search_places",
  "arguments": {
    "query": "coffee roasters in Portland, OR",
    "country": "us",
    "limit": 10
  }
}

Get a Google Maps place#

Toolmaps_get_place
Reads
Good for
You have a business's Google Maps link (maps_search_places returns one) and need its details.
Not the tool for
Its reviews (use maps_get_reviews).
What you get
The place: name, category, address, phone, website, hours, rating, review count, coordinates and whether it is claimed or closed.
Cost
1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits.

Parameters

NameTypeRequiredDescription
urlstringYesThe Google Maps place URL, e.g. https://www.google.com/maps?cid=13959367496257718607
Example
{
  "name": "maps_get_place",
  "arguments": {
    "url": "https://www.google.com/maps?cid=13959367496257718607"
  }
}

Get Google Maps reviews#

Toolmaps_get_reviews
Reads
Good for
You need what customers say about a business on Google Maps.
Not the tool for
The business's details (use maps_get_place).
What you get
The newest reviews, each with rating, text, date and the owner's reply.
Cost
1.65 credits per review. Cached 24 hours: a cache hit costs 50% of the live price.

Parameters

NameTypeRequiredDescription
urlstringYesThe Google Maps place URL, e.g. https://www.google.com/maps?cid=13959367496257718607
limitintegerNoHow many reviews to return, at most 100. Default 20.
Example
{
  "name": "maps_get_reviews",
  "arguments": {
    "url": "https://www.google.com/maps?cid=13959367496257718607",
    "limit": 20
  }
}

Get a Yelp business#

Toolyelp_get_business
Reads
Good for
You have a Yelp business URL and need its details.
Not the tool for
Its reviews (use yelp_get_reviews).
What you get
The business: rating, review count, categories, address, phone, website, hours, price range and whether it is claimed.
Cost
1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits.

Parameters

NameTypeRequiredDescription
urlstringYesThe Yelp business URL, e.g. https://www.yelp.com/biz/...
Example
{
  "name": "yelp_get_business",
  "arguments": {
    "url": "https://www.yelp.com/biz/stumptown-coffee-roasters-portland-2"
  }
}

Get Yelp reviews#

Toolyelp_get_reviews
Reads
Good for
You need what customers say about a business on Yelp.
Not the tool for
The business's details (use yelp_get_business).
What you get
Reviews, each with rating, text, date and reactions.
Cost
1.65 credits per review. Cached 24 hours: a cache hit costs 50% of the live price.

Parameters

NameTypeRequiredDescription
urlstringYesThe Yelp business URL, e.g. https://www.yelp.com/biz/...
limitintegerNoHow many reviews to return, at most 100. Default 20.
Example
{
  "name": "yelp_get_reviews",
  "arguments": {
    "url": "https://www.yelp.com/biz/stumptown-coffee-roasters-portland-2",
    "limit": 20
  }
}