{"operation":"businesses/search","version":"1.0.0","status":"pilot","title":"Search businesses","summary":"One page of the businesses Yelp lists for a search, 10 at most, and the sponsored ones it shows with them: each business with its Yelp rating, categories, price, address, coordinates, this week's hours and a review's excerpt.","use_when":"You need the businesses Yelp lists for a search, as its results page shows them: what you would type in Yelp's search box (`query`: pizza, dentist, plumber, a business's name) and where (`location`: a city, a ZIP code, a neighborhood, an address). Each comes with its Yelp rating out of 5 and review count, categories, price level, street and neighborhood, coordinates, this week's opening hours, the excerpt of a review that matched the search, the highlights the business chose, its order or quote buttons, and its main photo. Narrow the list as Yelp's page does: a category (`category`), features (`features`: offers delivery, outdoor seating, free Wi-Fi), price levels (`price`), a box on the map (`map_area`); sort it by Yelp's recommendation, rating or review count. Follow `next` for the following page: Yelp lists 240 businesses at most for a search, 24 pages. The sponsored results Yelp shows with them (above the list and below it) come too, in the page's order, marked `sponsored`: where each was shown, the advertiser's campaign, the offer it promotes and its phone, to see who advertises on a search. For a business's reviews, use yelp/reviews/list with its `url` or `id`.","categories":["Lead generation","Restaurants"],"icon":"lens","source":"yelp","input":{"type":"object","required":["query","location"],"additionalProperties":false,"properties":{"query":{"type":"string","minLength":1,"maxLength":200,"description":"What you would type in Yelp's search box: a kind of business (pizza, dentist, plumber), a dish, or a business's name. Yelp always lists businesses near `location`: a search it cannot match lists others nearby.","examples":["pizza","dentist","coffee shops"]},"location":{"type":"string","minLength":1,"maxLength":200,"description":"Where to search, as Yelp's location box takes it: a city with its state (\"Brooklyn, NY\"), a ZIP code (78701), a neighborhood (\"Park Slope, Brooklyn, NY\"), an address, or a city elsewhere (\"Toronto, ON\", \"London, UK\").","examples":["Brooklyn, NY","Austin, TX","94103"]},"category":{"type":"string","pattern":"^[a-z0-9_]+$","description":"Only the businesses of one Yelp category, by its alias, as the page's Category filter does: italian, pizza, coffee, generaldentistry, plumbing. A record's `categories` say each category's alias.","examples":["italian","generaldentistry"]},"features":{"type":"array","maxItems":10,"items":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z0-9_]+)?$"},"description":"Only the businesses with all these features, by Yelp's names for them, as the page's filters do: RestaurantsDelivery (offers delivery), RestaurantsTakeOut, OnlineReservations, OutdoorSeating, WiFi.free, DogsAllowed, GoodForKids, Open24Hours, BusinessAcceptsApplePay, WheelchairAccessible. A name Yelp does not know is ignored by Yelp.","examples":[["RestaurantsDelivery"],["OutdoorSeating","DogsAllowed"]]},"price":{"type":"array","maxItems":4,"uniqueItems":true,"items":{"type":"integer","minimum":1,"maximum":4},"description":"Only these price levels, from 1 ($, inexpensive) to 4 ($$$$, very expensive): [1, 2] for $ and $$.","examples":[[1,2]]},"sort":{"enum":["recommended","highest_rated","most_reviewed"],"default":"recommended","description":"The order of the list: Yelp's own recommendation (its default), the highest rated first, or the most reviewed first."},"map_area":{"type":"object","additionalProperties":false,"required":["south","west","north","east"],"description":"Only the businesses inside this box on the map, as the page's \"Search as map moves\" and its distances (walking, within 4 blocks) do; `location` still names the place searched. In degrees: south and north latitudes, west and east longitudes.","properties":{"south":{"type":"number","minimum":-90,"maximum":90},"west":{"type":"number","minimum":-180,"maximum":180},"north":{"type":"number","minimum":-90,"maximum":90},"east":{"type":"number","minimum":-180,"maximum":180}},"examples":[{"south":40.6425,"west":-73.9522,"north":40.6621,"east":-73.9266}]},"page":{"type":"integer","minimum":1,"maximum":24,"default":1,"description":"The page to start at, 10 businesses a page; `next` in an answer goes on from it with `cursor`. Yelp lists 240 businesses at most for a search: page 24 is the last."},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,8000}$","description":"Where to go on, from `next` in an answer, as it is: opaque, and only for the search it was given with (otherwise `invalid_cursor`). Leave it out to start at `page`."}}},"pagination":{"style":"page","page_size":10,"next":{"cursor":"<opaque>"},"last_page":24},"record":{"type":"object","additionalProperties":false,"required":["object","id","alias","position","sponsored","ad","name","alternate_names","phone","categories","price","rating","address","service_area","location","timezone","hours","snippet","highlights","tags","actions","photo","photos","photos_url","portfolio_projects","verified_licenses","container_business","yelp_guaranteed","ids","url","source_url","observed_at"],"properties":{"object":{"const":"business","description":"The kind of record: a business on Yelp."},"id":{"type":"string","description":"Yelp's id for the business (22 letters and digits), as yelp/reviews/list takes it."},"alias":{"type":["string","null"],"description":"The business's name in its page's address: yelp.com/biz/<alias>."},"position":{"type":["integer","null"],"minimum":1,"description":"Its rank in the search's results, across pages and without sponsored results: 11 is the first of page 2. Null for a sponsored result."},"sponsored":{"type":"boolean","description":"Whether it is a sponsored result, an ad bought for the search; a business that advertises and also ranks comes twice, once each way."},"ad":{"type":["object","null"],"additionalProperties":false,"required":["placement","slot","campaign_id","showcase","offer"],"description":"Where a sponsored result was shown and what it promotes; null for a result.","properties":{"placement":{"type":["string","null"],"description":"Where on the page: top (the block above the results) or bottom (below them); Yelp's own name for another place."},"slot":{"type":["integer","null"],"minimum":1,"description":"Its place in that block, from 1."},"campaign_id":{"type":["string","null"],"description":"The advertiser's campaign on Yelp: the same id on every search the campaign appears in."},"showcase":{"type":"boolean","description":"Whether it is a Showcase ad, Yelp's larger ad with an offer."},"offer":{"type":["object","null"],"additionalProperties":false,"required":["type","title","description","photo_url","button"],"description":"The offer the ad promotes, when it promotes one.","properties":{"type":{"type":["string","null"],"description":"special_offer."},"title":{"type":"string","description":"Two pizzas and a dessert for $21.99."},"description":{"type":["string","null"]},"photo_url":{"type":["string","null"],"format":"uri"},"button":{"type":["string","null"],"description":"The offer's button: Order online."}}}}},"name":{"type":"string"},"alternate_names":{"type":"array","items":{"type":"string"},"description":"Other names Yelp knows the business by, in other languages or scripts."},"phone":{"type":["string","null"],"pattern":"^\\+[0-9]{6,15}$","description":"E.164. Yelp's search says a sponsored result's phone, not a result's: null for those (the business's page has it)."},"categories":{"type":"array","description":"Yelp's categories for the business, the main one first.","items":{"type":"object","additionalProperties":false,"required":["alias","title","root"],"properties":{"alias":{"type":["string","null"],"description":"The category's alias, as `category` takes it: pizza."},"title":{"type":"string","description":"Its name on Yelp: Pizza."},"root":{"type":["string","null"],"description":"The family of categories it belongs to, by alias: restaurants, health, homeservices."}}}},"price":{"type":["object","null"],"additionalProperties":false,"required":["display","level"],"description":"The business's price level, as Yelp shows it; null when Yelp gives none.","properties":{"display":{"type":"string","description":"As the page shows it, in the place's currency symbol: $$, or €€ in Paris."},"level":{"type":"integer","minimum":1,"maximum":4,"description":"From 1 (inexpensive) to 4 (very expensive), as `price` takes it."}}},"rating":{"type":["object","null"],"additionalProperties":false,"required":["value","scale","count"],"description":"The average rating and how many reviews make it; null when the business has no review yet.","properties":{"value":{"type":"number"},"scale":{"const":5,"description":"The best possible value: ratings from other sites compare once divided by it."},"count":{"type":"integer","description":"The reviews Yelp recommends and counts on the business's page."}}},"address":{"type":"object","additionalProperties":false,"required":["street","city","neighborhoods"],"description":"Where the business is, as Yelp lists it: the street address and the city (a search gives no postal code; its page does).","properties":{"street":{"type":["string","null"],"description":"The street address: 237 5th Ave. Null for a business that serves an area from no public address."},"city":{"type":["string","null"]},"neighborhoods":{"type":"array","items":{"type":"string"},"description":"The neighborhoods Yelp files it under: Park Slope."}}},"service_area":{"type":["string","null"],"description":"For a business that comes to its customers (a plumber, a mover): the area it serves, as Yelp names it. Null otherwise."},"location":{"type":["object","null"],"additionalProperties":false,"required":["latitude","longitude"],"description":"The business's point on Yelp's map.","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"}}},"timezone":{"type":["string","null"],"description":"The business's time zone, its hours' own: America/New_York."},"hours":{"type":["object","null"],"additionalProperties":false,"required":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"description":"This week's opening hours, in the business's time, a holiday's special hours included: each day's openings, none on a day it is closed. A closing after midnight says the next day's time (03:00), midnight itself 24:00. Null when Yelp gives no hours.","properties":{"monday":{"$ref":"#/$defs/openings"},"tuesday":{"$ref":"#/$defs/openings"},"wednesday":{"$ref":"#/$defs/openings"},"thursday":{"$ref":"#/$defs/openings"},"friday":{"$ref":"#/$defs/openings"},"saturday":{"$ref":"#/$defs/openings"},"sunday":{"$ref":"#/$defs/openings"}}},"snippet":{"type":["object","null"],"additionalProperties":false,"required":["type","text","highlights","review_id","url"],"description":"The excerpt Yelp shows under the business for this search; null when it shows none.","properties":{"type":{"type":["string","null"],"description":"Where the excerpt comes from: review."},"text":{"type":"string","description":"As the page shows it, cut by Yelp (it ends with ...)."},"highlights":{"type":"array","items":{"type":"string"},"description":"The words of the excerpt Yelp shows in bold, those that matched the search: Delicious pizza."},"review_id":{"type":["string","null"],"description":"The review's id on Yelp, as yelp/reviews/list's records give it."},"url":{"type":["string","null"],"format":"uri","description":"The review on the business's page."}}},"highlights":{"type":"array","description":"What the business chose to show about itself under its name: Established in 2009, Consultations available.","items":{"type":"object","additionalProperties":false,"required":["id","title"],"properties":{"id":{"type":["string","null"],"description":"Yelp's name for the highlight, the same in every search: YEARS_IN_BUSINESS."},"title":{"type":"string"}}}},"tags":{"type":"array","items":{"type":"string"},"description":"The features of a filter the business has, as the page notes them under it: Pets allowed."},"actions":{"type":"array","description":"The buttons the page shows with the business: order food through a delivery partner, request a quote.","items":{"type":"object","additionalProperties":false,"required":["type","label","partner","url","note"],"properties":{"type":{"enum":["order","quote",null],"description":"What the button does: order (food, through a partner), quote (ask the business for a quote); null for another kind, its label said."},"label":{"type":"string","description":"Its text on the page: Start Order, Request a quote."},"partner":{"type":["string","null"],"description":"The service an order goes through, as Yelp names it: DoorDash, grubhub_linkout."},"url":{"type":["string","null"],"format":"uri","description":"Where the button leads: the partner's order page, or Yelp's quote form."},"note":{"type":["string","null"],"description":"The line under the button, when there is one: 139 locals recently requested a quote."}}}},"photo":{"type":["object","null"],"additionalProperties":false,"required":["id","url","caption","author","keywords","uploaded_at"],"description":"The business's main photo on Yelp.","properties":{"id":{"type":"string"},"url":{"type":["string","null"],"format":"uri","description":"The photo, 1000 pixels wide."},"caption":{"type":["string","null"]},"author":{"type":["string","null"],"description":"Who posted it, as Yelp names them: Carmen H."},"keywords":{"type":"array","items":{"type":"string"},"description":"What Yelp sees in it: pizza, food."},"uploaded_at":{"type":["string","null"],"format":"date-time"}}},"photos":{"type":"array","items":{"type":"string","format":"uri"},"description":"The photos the results list shows with the business."},"photos_url":{"type":["string","null"],"format":"uri","description":"The business's page of photos on Yelp."},"portfolio_projects":{"type":"array","description":"The work a service business shows under its name (a car wrapped, a kitchen redone).","items":{"type":"object","additionalProperties":false,"required":["id","caption","photo_url"],"properties":{"id":{"type":["string","null"]},"caption":{"type":["string","null"]},"photo_url":{"type":["string","null"],"format":"uri"}}}},"verified_licenses":{"type":"array","description":"The professional licenses Yelp verified for the business (a contractor, an electrician).","items":{"type":"object","additionalProperties":false,"required":["trade","licensee","number","authority","verified_on","expires_on"],"properties":{"trade":{"type":["string","null"]},"licensee":{"type":["string","null"]},"number":{"type":["string","null"]},"authority":{"type":["string","null"],"description":"Who issued it."},"verified_on":{"type":["string","null"],"description":"When Yelp verified it, as Yelp says it."},"expires_on":{"type":["string","null"],"description":"When it expires (2027-01-31), where the search says it: on a sponsored result."}}}},"container_business":{"type":["object","null"],"additionalProperties":false,"required":["id","alias","name"],"description":"The place the business is inside of, on Yelp (a shopping center, a food hall); null otherwise.","properties":{"id":{"type":["string","null"]},"alias":{"type":["string","null"]},"name":{"type":["string","null"]}}},"yelp_guaranteed":{"type":"boolean","description":"Whether the business is in Yelp Guaranteed, Yelp's guarantee on a service business's work."},"ids":{"type":"object","additionalProperties":false,"required":["business_id","alias"],"properties":{"business_id":{"type":"string","description":"Yelp's id for the business, as `id`."},"alias":{"type":["string","null"]}}},"url":{"type":"string","format":"uri","description":"The business's page on Yelp."},"source_url":{"type":"string","format":"uri","description":"The search's page on Yelp, at this page."},"observed_at":{"type":"string","format":"date-time"}},"$defs":{"openings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["open","close"],"properties":{"open":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$"},"close":{"type":"string","pattern":"^[0-2][0-9]:[0-5][0-9]$"}}}}}},"price":{"credits_per_call":5,"description":"5 credits per call that returns businesses: a page of up to 10, with the sponsored results shown on it. An empty answer and a failed call are free.","free":["empty","failed"]},"deadline":{"default_s":60,"max_s":120},"errors":[{"code":"invalid_input","status":422,"detail":true,"message":"Pass a `query` and a `location`, and filters as Yelp's page offers them: a category's alias, Yelp's feature names, price levels from 1 to 4, a map box with south below north and west left of east, a page from 1 to 24."},{"code":"site_challenge","status":503,"retryable":true,"message":"Yelp's anti-bot refused the request; retry in a minute (not charged)."},{"code":"site_unavailable","status":503,"retryable":true,"message":"Yelp did not answer properly; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"Yelp answered in a shape we do not read yet; we are told and fix it (not charged)."}],"examples":[{"request":{"query":"pizza","location":"Brooklyn, NY","page":2},"records":[{"object":"business","id":"Ab3Kd8Zq1Vx6Mb2Ny9Lr4T","alias":"acme-pizza-brooklyn","position":11,"sponsored":false,"ad":null,"name":"Acme Pizza","alternate_names":[],"phone":null,"categories":[{"alias":"pizza","title":"Pizza","root":"restaurants"}],"price":{"display":"$$","level":2},"rating":{"value":4.3,"scale":5,"count":117},"address":{"street":"100 5th Ave","city":"Brooklyn","neighborhoods":["Park Slope"]},"service_area":null,"location":{"latitude":40.6752,"longitude":-73.981},"timezone":"America/New_York","hours":{"monday":[{"open":"11:30","close":"21:00"}],"tuesday":[{"open":"11:30","close":"21:00"}],"wednesday":[{"open":"11:30","close":"21:00"}],"thursday":[{"open":"11:30","close":"21:00"}],"friday":[{"open":"11:30","close":"23:00"}],"saturday":[{"open":"12:00","close":"01:00"}],"sunday":[]},"snippet":{"type":"review","text":"Great neighborhood spot with a modern twist. Delicious pizza and a great selection of...","highlights":["Delicious pizza"],"review_id":"Rv7Qm2Lx9Kp4Tz1Wn8Hc5A","url":"https://www.yelp.com/biz/acme-pizza-brooklyn?hrid=Rv7Qm2Lx9Kp4Tz1Wn8Hc5A"},"highlights":[{"id":"ESTABLISHED_IN","title":"Established in 2009"}],"tags":[],"actions":[{"type":"order","label":"Start Order","partner":"DoorDash","url":"https://www.doordash.com/store/00000000?src=yp","note":null}],"photo":{"id":"Ph3Kd8Zq1Vx6Mb2Ny9Lr4T","url":"https://s3-media0.fl.yelpcdn.com/bphoto/Ph3Kd8Zq1Vx6Mb2Ny9Lr4T/1000s.jpg","caption":"Margherita and pepperoni slices","author":"Jane D.","keywords":["pizza","food"],"uploaded_at":"2025-02-27T10:10:46Z"},"photos":["https://s3-media0.fl.yelpcdn.com/bphoto/Ph3Kd8Zq1Vx6Mb2Ny9Lr4T/ls.jpg"],"photos_url":"https://www.yelp.com/biz_photos/Ab3Kd8Zq1Vx6Mb2Ny9Lr4T","portfolio_projects":[],"verified_licenses":[],"container_business":null,"yelp_guaranteed":false,"ids":{"business_id":"Ab3Kd8Zq1Vx6Mb2Ny9Lr4T","alias":"acme-pizza-brooklyn"},"url":"https://www.yelp.com/biz/acme-pizza-brooklyn","source_url":"https://www.yelp.com/search?find_desc=pizza&find_loc=Brooklyn%2C+NY&start=10","observed_at":"2026-12-06T10:00:00Z"},{"object":"business","id":"Zx9Lr4TAb3Kd8Zq1Vx6Mb2","alias":"example-slice-house-brooklyn","position":null,"sponsored":true,"ad":{"placement":"top","slot":1,"campaign_id":"Cm4Pq7Rs2Tu9Vw1Xy5Za3","showcase":false,"offer":null},"name":"Example Slice House","alternate_names":[],"phone":"+17185550142","categories":[{"alias":"pizza","title":"Pizza","root":"restaurants"}],"price":{"display":"$","level":1},"rating":{"value":3.9,"scale":5,"count":33},"address":{"street":"200 3rd Ave","city":"Brooklyn","neighborhoods":["Gowanus"]},"service_area":null,"location":{"latitude":40.6781,"longitude":-73.9862},"timezone":"America/New_York","hours":{"monday":[{"open":"11:00","close":"24:00"}],"tuesday":[{"open":"11:00","close":"24:00"}],"wednesday":[{"open":"11:00","close":"24:00"}],"thursday":[{"open":"11:00","close":"24:00"}],"friday":[{"open":"11:00","close":"02:00"}],"saturday":[{"open":"11:00","close":"02:00"}],"sunday":[{"open":"11:00","close":"24:00"}]},"snippet":null,"highlights":[],"tags":[],"actions":[],"photo":null,"photos":["https://s3-media0.fl.yelpcdn.com/bphoto/Qw2Er5Ty8Ui1Op4As7Df0G/ls.jpg"],"photos_url":"https://www.yelp.com/biz_photos/Zx9Lr4TAb3Kd8Zq1Vx6Mb2","portfolio_projects":[],"verified_licenses":[],"container_business":null,"yelp_guaranteed":false,"ids":{"business_id":"Zx9Lr4TAb3Kd8Zq1Vx6Mb2","alias":"example-slice-house-brooklyn"},"url":"https://www.yelp.com/biz/example-slice-house-brooklyn","source_url":"https://www.yelp.com/search?find_desc=pizza&find_loc=Brooklyn%2C+NY&start=10","observed_at":"2026-12-06T10:00:00Z"}]}],"health":{"canaries":[{"query":"pizza","location":"Brooklyn, NY","min_records":8},{"query":"dentist","location":"Austin, TX","sort":"highest_rated","min_records":8}],"required_fields":["id","name","url","location.latitude","address.city"]},"changelog":[{"version":"1.0.0","date":"2026-12-06","notes":"First version: Yelp's search results, 10 a page to 24 pages, each with its rating, categories, price, address, coordinates, this week's hours, a review's excerpt, highlights, order and quote buttons and main photo; filtered by category, features, price and map area, sorted three ways. The sponsored results shown with them come too, with their placement, campaign, offer and phone."}],"object":"operation","id":"yelp/businesses/search","site":{"title":"Yelp","domain":"yelp.com","color":"#D32323"}}