Call it
curl https://api.peume.com/v1/call/search-yelp-businesses-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"find_loc": "your find loc"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yelp-businesses-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"find_loc": "your find loc"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yelp-businesses-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"find_loc": "your find loc"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: search-yelp-businesses-2.
Parameters
find_locRequiredstringFrom where you want the search to originate. You can use any location you would use in a regular Yelp search. Following location formats are acceptable: - 706 Mission St, San Francisco, CA - San Francisco, CA - San Francisco, CA 94103 - 94103
next_page_tokenstringThe next page token. It is used for retrieving the next page of results with the same ranking as the first page. Up to `10` results are returned per page. Duplicate results can occasionally appear across pages because Yelp reorders results between requests. The same happens on yelp.com. The next page token can be found in the JSON response: `pagination -> next_page_token`. It can't be used together with the `start` parameter.
startstringThe result offset. It skips the given number of results. It's used for pagination. (e.g., `0` (default) is the first page of results, `10` is the 2nd page of results, `20` is the 3rd page of results). Yelp returns at most 25 results for a search, so the maximum value is `24`. Yelp ranks results differently for each visitor, so pages requested with `start` can repeat or miss results. Use `next_page_token` to keep the ranking of the first page.
sortbystringSorting results. Available options: `recommended` - Recommended (default) `rating` - Highest Rated `review_count` - Most Reviewed
yelp_domainstringThe Yelp domain to use. It defaults to `yelp.com`. Head to the Yelp domains for a full list of supported Yelp domains.
find_descstringThe query you want to search. You can use anything that you would use in a regular Yelp search.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
