{"operation":"questions/list","version":"1.0.0","status":"pilot","title":"List questions","summary":"One page of the questions asked of a Yelp business (\"Ask the community\"), 10 at most: each with its best answer (its author, the owner's own marked), its answer count, and Yelp Assistant's answer.","use_when":"You have a business on Yelp (its page's address, its alias, or Yelp's id for it) and need what customers ask about it and what they are told: the questions of its \"Ask the community\", each with its best answer, the answer's author (marked when it is the business's owner), date and helpful votes, its answer count, and the answer Yelp's AI (Yelp Assistant) gave from the business's menu or site. Sort them as its page does (`sort`: popular, newest, most_answered); follow `next` for the following page, to the list's end. For the business itself, use yelp/businesses/get; for its reviews, yelp/reviews/list.","categories":["Reviews","Restaurants"],"icon":"question","source":"yelp","input":{"type":"object","required":["business"],"additionalProperties":false,"properties":{"business":{"type":"string","minLength":1,"maxLength":2000,"description":"The business: its page on Yelp (yelp.com/biz/<name>), its alias (the <name>), or Yelp's id for it (22 letters and digits, the `id` of yelp/businesses/search). For a page or an alias, Yelp is asked its id first, in the same call.","examples":["https://www.yelp.com/biz/acme-pizza-brooklyn","Ab3Kd8Zq1Vx6Mb2Ny9Lr4T"]},"sort":{"enum":["popular","newest","most_answered"],"default":"popular","description":"The order of the list, as its page's: popular (Yelp's own, the page's default), newest (Newest First), the most answered first. Yelp may list newest in its popular order (a pizzeria's, 06/12, on its page too)."},"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 business and sort it was given with (otherwise `invalid_cursor`)."}}},"pagination":{"style":"cursor","page_size":10,"next":{"business":"<business as it was written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","text","author","asked_from","answer_count","top_answer","assistant_answer","business","source_url","observed_at"],"properties":{"object":{"const":"question","description":"The kind of record: a question asked of a business."},"id":{"type":"string","description":"Yelp's id of the question."},"position":{"type":"integer","minimum":1,"description":"Its rank in the list, across pages: 11 is the first of page 2."},"text":{"type":["string","null"]},"author":{"type":["object","null"],"additionalProperties":false,"required":["id","name","photo_url"],"description":"Who asked it, as Yelp shows them (a first name and an initial).","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"photo_url":{"type":["string","null"],"format":"uri"}}},"asked_from":{"type":["string","null"],"description":"Where it was asked: web, or one of the apps."},"answer_count":{"type":"integer","minimum":0},"top_answer":{"type":["object","null"],"additionalProperties":false,"required":["id","text","created_at","helpful_count","author"],"description":"Its best answer, as the page shows it under the question; null when no one answered.","properties":{"id":{"type":"string"},"text":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"helpful_count":{"type":"integer","minimum":0},"author":{"type":["object","null"],"additionalProperties":false,"required":["id","name","photo_url","role"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"photo_url":{"type":["string","null"],"format":"uri"},"role":{"type":["string","null"],"description":"owner when the business answers through its owner; null for anyone else."}}}}},"assistant_answer":{"type":["object","null"],"additionalProperties":false,"required":["text","sources"],"description":"Yelp Assistant's answer, Yelp's AI, when it gave one, and what it read to give it.","properties":{"text":{"type":"string"},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["type","texts","highlights","title","url"],"properties":{"type":{"type":["string","null"],"description":"What it read: biz_menu (the business's menu), its website..."},"texts":{"type":"array","items":{"type":"string"}},"highlights":{"type":"array","items":{"type":"string"}},"title":{"type":["string","null"]},"url":{"type":["string","null"],"format":"uri"}}}}}},"business":{"type":"object","additionalProperties":false,"required":["id","alias","name"],"properties":{"id":{"type":["string","null"]},"alias":{"type":["string","null"]},"name":{"type":["string","null"]}}},"source_url":{"type":"string","format":"uri","description":"The business's page of questions, at this sort and page."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit per call that returns questions, a page of up to 10. An empty answer and a failed call are free.","free":["empty","failed"]},"deadline":{"default_s":45,"max_s":90},"errors":[{"code":"invalid_input","status":422,"detail":true,"message":"Pass a business's page on Yelp (yelp.com/biz/...), its alias or Yelp's id for it, and a sort its page offers."},{"code":"business_not_found","status":404,"message":"Yelp has no business at this address, alias or id. 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":{"business":"https://www.yelp.com/biz/acme-pizza-brooklyn"},"records":[{"object":"question","id":"Qs1PCL1PTdEOdJ_7HVdmYB","position":1,"text":"Do they allow outside food, like a birthday cake?","author":{"id":"Us7p5nTW9Tpw_3VDC4vuLS","name":"Jane D.","photo_url":null},"asked_from":"web","answer_count":2,"top_answer":{"id":"An9tsiR9aSAZ6QdfKCVvyr","text":"In the outdoor dining area you can; inside, call ahead and ask.","created_at":"2025-09-22T14:46:59Z","helpful_count":1,"author":{"id":"Us2C5o_lkJhFZuih8jYEro","name":"Mike A.","photo_url":"https://s3-media0.fl.yelpcdn.com/photo/Av8QM__JxowhispPUV7Gs/ss.jpg","role":null}},"assistant_answer":null,"business":{"id":"Ab3Kd8Zq1Vx6Mb2Ny9Lr4T","alias":"acme-pizza-brooklyn","name":"Acme Pizza"},"source_url":"https://www.yelp.com/questions/Ab3Kd8Zq1Vx6Mb2Ny9Lr4T?sort_by=popular","observed_at":"2026-12-06T10:00:00Z"}]}],"health":{"canaries":[{"business":"https://www.yelp.com/biz/l-and-b-spumoni-gardens-brooklyn","min_records":8},{"business":"NPCQRbpaO6w0cKswP2J7ig","sort":"most_answered","min_records":5}],"required_fields":["id","text","business.id"]},"changelog":[{"version":"1.0.0","date":"2026-12-06","notes":"First version: a business's questions, 10 a page to the list's end, sorted as its page does, each with its best answer (the owner's marked), its answer count and Yelp Assistant's answer."}],"object":"operation","id":"yelp/questions/list","site":{"title":"Yelp","domain":"yelp.com","color":"#D32323"}}