{"openapi":"3.1.0","info":{"title":"Yelp Local Businesses and Reviews Data (x402 & MCP)","version":"0.1.0","description":"Yelp local business listings, phones, ratings, addresses, websites and optional reviews across 27 markets, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/yelp-com/v1/search":{"post":{"operationId":"yelp_com_search","summary":"Yelp Local Businesses and Reviews Data: Search Yelp local businesses, phones and reviews","description":"Query Yelp local businesses by keyword, location, category or business URL with ratings, contact details and optional reviews. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["yelp-com","Business"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"searchType":{"type":"string","description":"Choose search, category, business details or a public Yelp company page. Auto infers a mode from your targets; select category explicitly when combining a category alias with a location.","default":"auto","enum":["auto","search","category","detail","phone","about","privacy","support","press","ir","contact","photos","map"]},"findDesc":{"type":"string","description":"Keyword or business name, such as pizza or plumbers. When a search has a location but no keyword, the Actor uses ramen."},"findLoc":{"type":"string","description":"City, neighborhood or address, such as New York, NY. When a search has a keyword but no location, the Actor uses Chicago, IL."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Yelp search or business page URLs. Each URL has its own maxResults allowance; search URL filters may not be reproduced exactly, so also specify the keyword and location."},"bizSlug":{"type":"string","description":"Business slug, such as joes-pizza-new-york, or a full Yelp business page URL. This target selects business details in Auto mode."},"cflt":{"type":"string","description":"Category alias such as restaurants, dentists or hotels; beauty maps to beautysvc. Category mode may use the fallback keyword ramen even when another keyword is supplied; use a keyword search for more predictable matching."},"maxResults":{"type":"integer","description":"Maximum rows per URL, or per single search, detail or company input: default 70, maximum 200. Business and review rows share the allowance; the whole run is also limited by your maximum charge and the Free plan cap of 200 rows.","default":5,"minimum":1,"maximum":10},"market":{"type":"string","description":"Country-site choice for the requested Yelp pages; United States is the default. Availability of businesses, pages and individual fields varies by location.","default":"us","enum":["us","uk","ca","ie","au","de","fr","it","es","nl","be","ch","at","se","no","dk","fi","pl","cz","jp","sg","hk","tw","tr","br","cl","mx"]},"sortBy":{"type":"string","description":"Requested result order: recommended, highest rated or most reviewed. The returned ordering may vary.","default":"recommended","enum":["recommended","rating","review_count"]},"start":{"type":"integer","description":"Initial search offset; 0 starts at the beginning. The number of results available still depends on the search and page allowance.","default":0,"minimum":0,"maximum":990},"maxPages":{"type":"integer","description":"Optional upper bound, from 1 to 20; by default pages follow maxResults. Collection may stop earlier when the row allowance is reached or no new businesses are found.","minimum":1,"maximum":20},"enrichDetails":{"type":"boolean","description":"Add available business details such as opening hours and other business information. Enabled by default; missing details do not guarantee that the business row will be discarded.","default":true},"includeReviews":{"type":"boolean","description":"Add available reviews as separate, equally priced rows. Disabled by default; business and review rows share maxResults for each input.","default":false},"reviewTerm":{"type":"string","description":"Not available in this Actor. Changing this field currently does not filter review text."},"reviewLimit":{"type":"integer","description":"Not available in this Actor. Changing this field currently does not change the review allowance; use maxResults to limit all rows.","default":20,"minimum":1,"maximum":100},"reviewOffset":{"type":"integer","description":"Not available in this Actor. Changing this field currently does not select a review offset.","default":0,"minimum":0},"includePhotos":{"type":"boolean","description":"Not available in this Actor. Changing this field currently does not request additional photos.","default":false},"photoLimit":{"type":"integer","description":"Not available in this Actor. Changing this field currently does not change the number of photos.","default":10,"minimum":1,"maximum":50},"includePresentation":{"type":"boolean","description":"Not available in this Actor. Changing this field currently does not request page layout information.","default":false},"includeMobileSubsurfaces":{"type":"boolean","description":"Adds extra per-business sections (offers, services, pricing, posts, portfolio, claim info, sponsored, call-to-action) under a mobile field on each business row. Off by default.","default":false},"mobileSubsurfaces":{"type":"array","items":{"type":"string"},"description":"Which extra sections to add when Include extra business sections is on. Leave empty for all. Allowed: offer_campaigns, service_offering, pricing, posts, business_portfolio, claim_info, sponsored_gems, objective_cta.","default":[]},"communityQuestionsFirst":{"type":"integer","description":"Not available in this Actor. Changing this field currently does not change the number of community questions.","default":5,"minimum":1,"maximum":20},"registerDevice":{"type":"boolean","description":"Leave unchanged. Used only by the developer for testing.","default":false},"phoneNumber":{"type":"string","description":"Phone reverse lookup is not available in this Actor. Use a keyword, business slug or business URL instead."},"phoneCountry":{"type":"string","description":"Phone reverse lookup is not available in this Actor. This setting does not enable it.","default":"US","pattern":"^[A-Za-z]{2}$"}},"additionalProperties":false},"example":{"searchType":"auto","findDesc":"pizza","findLoc":"New York, NY","market":"us","sortBy":"recommended","enrichDetails":true,"includeReviews":false,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_yelp_com"},"example":{"jobId":"job_yelp-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"listingId":"example_listingId","name":"example_name","url":"https://yelp.com/item/1","rating":4.7,"detailError":"example_detailError","hours":"example_hours"}],"meta":{"site":"yelp-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/yelp-com/v1/health":{"get":{"operationId":"yelp_com_health","summary":"Yelp Local Businesses and Reviews Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["yelp-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_yelp_com":{"type":"object","properties":{"listingId":{"type":["string","null"],"title":"ID"},"name":{"type":["string","null"],"title":"Name"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"rating":{"type":["number","null"],"title":"Rating"},"detailError":{"type":["string","null"],"title":"Detail error"},"hours":{"type":["string","null"],"title":"hours"},"reviews":{"type":["string","null"],"title":"reviews"},"phones":{"type":["string","null"],"title":"phones"},"emails":{"type":["string","null"],"title":"emails"},"address.full":{"type":["string","null"],"title":"address"},"person.name":{"type":["string","null"],"title":"person"},"org.name":{"type":["string","null"],"title":"org"},"leadAbsences":{"type":["string","null"],"title":"leadAbsences"}},"additionalProperties":true},"Response_yelp_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_yelp_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}