# Yelp: List questions

`yelp/questions/list` · version 1.0.0 · pilot · 1 credits a call

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.

Categories: Reviews, Restaurants

## When to use

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.

## Call

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"source": "yelp", "operation": "questions/list", "options": {"business": "https://www.yelp.com/biz/acme-pizza-brooklyn"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 10, "has_more": true, "next": {"source": "yelp", "operation": "questions/list", "options": {...}},
 "cost": {"credits": 1}, "balance": {"credits": 9990}, "results": [...]}
```

`cost` and `balance` are objects: a call's credits are `cost.credits`. `results` holds the records (below). `next` is the whole call for the following page: send it as it is; `null` on the last page.

Beside `options`, the call takes:

| Parameter | Type | Description |
|---|---|---|
| `fields` | array of string | The record fields to keep, by path: inside an object with a dot (`author.id`), in each item of a list with `[]` (`assistant_answer.sources[].type`, or with a dot: `assistant_answer.sources.type`); `object`, `id` and `position` always come. Left out: every field. |
| `limit` | integer | Only the first N records of this call (1 to 1000), in the call's order; the call costs the same, and `next` keeps the limit. Left out: every record. |

## Options

| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| `business` | string | yes |  | 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. |
| `sort` | `popular`, `newest`, `most_answered` |  | `"popular"` | 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` | string |  |  | 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`). |

## Record

Each item of `results`. Every field is always present, `null` when the site gives nothing.

| Field | Type | Description |
|---|---|---|
| `object` | `"question"` | The kind of record: a question asked of a business. |
| `id` | string | Yelp's id of the question. |
| `position` | integer | Its rank in the list, across pages: 11 is the first of page 2. |
| `text` | string | null |  |
| `author` | object | null | Who asked it, as Yelp shows them (a first name and an initial). |
| `author.id` | string |  |
| `author.name` | string | null |  |
| `author.photo_url` | string | null (uri) |  |
| `asked_from` | string | null | Where it was asked: web, or one of the apps. |
| `answer_count` | integer |  |
| `top_answer` | object | null | Its best answer, as the page shows it under the question; null when no one answered. |
| `top_answer.id` | string |  |
| `top_answer.text` | string | null |  |
| `top_answer.created_at` | string | null (date-time) |  |
| `top_answer.helpful_count` | integer |  |
| `top_answer.author` | object | null |  |
| `top_answer.author.id` | string |  |
| `top_answer.author.name` | string | null |  |
| `top_answer.author.photo_url` | string | null (uri) |  |
| `top_answer.author.role` | string | null | owner when the business answers through its owner; null for anyone else. |
| `assistant_answer` | object | null | Yelp Assistant's answer, Yelp's AI, when it gave one, and what it read to give it. |
| `assistant_answer.text` | string |  |
| `assistant_answer.sources` | array |  |
| `assistant_answer.sources[].type` | string | null | What it read: biz_menu (the business's menu), its website... |
| `assistant_answer.sources[].texts` | array of string |  |
| `assistant_answer.sources[].highlights` | array of string |  |
| `assistant_answer.sources[].title` | string | null |  |
| `assistant_answer.sources[].url` | string | null (uri) |  |
| `business` | object |  |
| `business.id` | string | null |  |
| `business.alias` | string | null |  |
| `business.name` | string | null |  |
| `source_url` | string (uri) | The business's page of questions, at this sort and page. |
| `observed_at` | string (date-time) |  |

Example:

```json
{
  "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"
}
```

## Price

1 credit per call that returns questions, a page of up to 10. An empty answer and a failed call are free.

## Errors

| Code | Status | Retry | Message |
|---|---|---|---|
| `invalid_input` | 422 | no | Pass a business's page on Yelp (yelp.com/biz/...), its alias or Yelp's id for it, and a sort its page offers. |
| `business_not_found` | 404 | no | Yelp has no business at this address, alias or id. Not charged. |
| `site_unavailable` | 503 | yes | Yelp did not answer properly; retry later (not charged). |
| `unexpected_answer` | 424 | no | Yelp answered in a shape we do not read yet; we are told and fix it (not charged). |
| `missing_api_key` | 401 | no | No API key: send it as `Authorization: Bearer <key>`. |
| `invalid_api_key` | 401 | no | The key is not valid, or not anymore. |
| `insufficient_credits` | 402 | no | The call costs more credits than are left. |
| `unknown_operation` | 404 | no | No such source and operation in the catalog. |
| `timeout` | 408 | yes | The call did not finish within its deadline (not charged). |
| `invalid_body` | 422 | no | The body is not a call: source, operation, options. |
| `invalid_options` | 422 | no | An option is missing or out of its contract; `param` names it. |
| `invalid_idempotency_key` | 400 | no | The Idempotency-Key header is not printable ASCII, or too long. |
| `concurrency_limit` | 429 | yes | The plan's calls at a time are all in progress (Free 1, Starter 2, Pro 10, Team 50); retry when one has finished (not charged, never queued). |
| `service_busy` | 503 | yes | Too many calls at once on the account; retry in a few seconds. |
| `balance_unavailable` | 503 | yes | The balance could not be read; retry in a few seconds. |

## Changelog

- **1.0.0** (2026-12-06): 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.

Schema: https://api.lobstr.io/v2/catalog/yelp/questions/list · All operations: https://api.lobstr.io/v2/catalog.md
