Call it
curl https://api.peume.com/v1/call/search-yelp-businesses \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"find_desc": "coffee",
"find_loc": "Austin, TX",
"yelp_domain": "www.yelp.com",
"l": "g:-97.80,30.20,-97.70,30.30",
"cflt": "coffee",
"sortby": "recommended"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-yelp-businesses", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"find_desc": "coffee",
"find_loc": "Austin, TX",
"yelp_domain": "www.yelp.com",
"l": "g:-97.80,30.20,-97.70,30.30",
"cflt": "coffee",
"sortby": "recommended"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-yelp-businesses",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"find_desc": "coffee",
"find_loc": "Austin, TX",
"yelp_domain": "www.yelp.com",
"l": "g:-97.80,30.20,-97.70,30.30",
"cflt": "coffee",
"sortby": "recommended"
}
},
)
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.
Parameters
find_descstringBusiness name, category, or search terms, up to 500 characters.
Example: coffee
find_locRequiredstringSearch location, 1 to 500 characters.
Example: Austin, TX
yelp_domainstringSupported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
Example: www.yelp.com
lstringYelp map-bounds token, up to 1,024 characters.
Example: g:-97.80,30.20,-97.70,30.30
cfltstringYelp category identifier, such as coffee.
Example: coffee
sortbystringResult order.
recommended · rating · review_count
Example: recommended
attrsstringComma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters.
Example: OutdoorSeating
startintegerResult offset from 0 through 10,000.
Example: 0
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
Other ways to do it
Same job, other sources, cheapest first.
