# Yelp: List photos

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

One page of a Yelp business's photos and videos, 100 at most: each at full size, with its caption, who posted it and when, its likes, and the review it came with.

Categories: Restaurants, Reviews

## When to use

You have a business on Yelp (its page's address, its alias, or Yelp's id for it) and need its photos and videos, as its page of photos lists them: each photo at its original size, a video's files, the caption, what Yelp sees in it (keywords), who posted it and when, its likes, and the review it came with (rating, text, reviewer). All of them by default, photos and videos in Yelp's order; or one tab (`tab`: food, drink, inside, outside, menu, videos, or a tab's own such as pizza); or the photos Yelp finds for a word (`query`), from what they show and their caption. Follow `next` for the following page, to the list's end. For the business itself, use yelp/businesses/search; 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": "photos/list", "options": {"business": "https://www.yelp.com/biz/acme-pizza-brooklyn", "tab": "food"}}'
```

It answers:

```json
{"object": "run", "status": "succeeded", "count": 100, "has_more": true, "next": {"source": "yelp", "operation": "photos/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 (`video.duration_ms`), in each item of a list with `[]` (`video.files[].url`, or with a dot: `video.files.url`); `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, from any of its sites (yelp.com/biz/<name>, its page of photos yelp.com/biz_photos/<name>...), its alias (the <name>), or Yelp's id for it (22 letters and digits, the `id` of yelp/businesses/search). |
| `tab` | string |  | `"all"` | The tab of the business's photos, as its page names them: all (photos and videos, Yelp's order), food, drink, inside, outside, menu, videos, or a tab's own (a pizzeria's Food holds pizza, dessert, pasta). A business has the tabs its photos fill; a tab it does not have answers an empty page. |
| `query` | string |  |  | A word or a few, as the page's Search photos box: the photos Yelp finds for it, from what they show as much as from their caption (cannoli finds desserts, some without a caption), its best first. Every photo is searched: leave `tab` out with it. |
| `cursor` | string |  |  | Where to go on, from `next` in an answer, as it is: opaque, and only for the business, tab and search 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` | `"photo"` | The kind of record: a photo or a video of a business. |
| `id` | string | Yelp's id of the photo or video. |
| `position` | integer | Its rank in the list, across pages: 101 is the first of page 2. |
| `kind` | `photo`, `video` | A photo, or a video (its files in `video`). |
| `url` | string | null (uri) | The photo at its original size; a video's still. |
| `width` | integer | null | The original's width in pixels; null for a video. |
| `height` | integer | null | The original's height in pixels; null for a video. |
| `video` | object | null | A video's length and files; null for a photo. |
| `video.duration_ms` | integer | null | Its length, in milliseconds. |
| `video.stream_url` | string | null (uri) | The video to play, as the page plays it. |
| `video.files` | array |  |
| `video.files[].url` | string (uri) |  |
| `video.files[].rendition` | string | null | The host's name for the file's quality: progressive_video_high. |
| `caption` | string | null | As its author wrote it. |
| `keywords` | array of string | What Yelp sees in the photo: pizza, food. Empty for a video. |
| `uploaded_at` | string | null (date-time) |  |
| `likes` | integer |  |
| `author` | object | null | Who posted it, as Yelp shows them (a first name and an initial); the business itself for its own. |
| `author.id` | string | Yelp's id of the person. |
| `author.name` | string | null |  |
| `author.photo_url` | string | null (uri) |  |
| `review` | object | null | The review the photo was posted with, as yelp/reviews/list gives it in short; null for a photo posted alone. |
| `review.id` | string |  |
| `review.rating` | integer | null, 1 to 5 |  |
| `review.text` | string | null |  |
| `review.created_at` | string | null (date-time) |  |
| `review.author` | object | null |  |
| `review.author.id` | string | null |  |
| `review.author.name` | string | null |  |
| `review.author.review_count` | integer | null |  |
| `review.author.friend_count` | integer | null |  |
| `review.author.photo_count` | integer | null | The photos of businesses the reviewer posted. |
| `review.author.photo_url` | string | null (uri) |  |
| `business` | object | null |  |
| `business.id` | string | null |  |
| `business.alias` | string | null |  |
| `business.name` | string | null |  |
| `page_url` | string (uri) | The photo on Yelp, opened on the business's page of photos. |
| `source_url` | string (uri) | The business's page of photos, at this tab and page. |
| `observed_at` | string (date-time) |  |

Example:

```json
{
  "object": "photo",
  "id": "Ph3Kd8Zq1Vx6Mb2Ny9Lr4T",
  "position": 1,
  "kind": "photo",
  "url": "https://s3-media0.fl.yelpcdn.com/bphoto/Ph3Kd8Zq1Vx6Mb2Ny9Lr4T/o.jpg",
  "width": 2000,
  "height": 1500,
  "video": null,
  "caption": "Square pizza pie",
  "keywords": [
    "pizza",
    "food"
  ],
  "uploaded_at": "2023-07-05T19:42:28Z",
  "likes": 18,
  "author": {
    "id": "Us7p5nTW9Tpw_3VDC4vuLS",
    "name": "Jane D.",
    "photo_url": "https://s3-media0.fl.yelpcdn.com/photo/Av4BXLoDzGOXUbhR6Q52ik/ss.jpg"
  },
  "review": {
    "id": "Rv7Qm2Lx9Kp4Tz1Wn8Hc5A",
    "rating": 5,
    "text": "The square slice is worth the trip: crisp, sweet sauce, cheese under it.",
    "created_at": "2023-07-05T19:40:11Z",
    "author": {
      "id": "Us7p5nTW9Tpw_3VDC4vuLS",
      "name": "Jane D.",
      "review_count": 120,
      "friend_count": 93,
      "photo_count": 410,
      "photo_url": "https://s3-media0.fl.yelpcdn.com/photo/Av4BXLoDzGOXUbhR6Q52ik/s.jpg"
    }
  },
  "business": {
    "id": "Ab3Kd8Zq1Vx6Mb2Ny9Lr4T",
    "alias": "acme-pizza-brooklyn",
    "name": "Acme Pizza"
  },
  "page_url": "https://www.yelp.com/biz_photos/acme-pizza-brooklyn?select=Ph3Kd8Zq1Vx6Mb2Ny9Lr4T",
  "source_url": "https://www.yelp.com/biz_photos/acme-pizza-brooklyn?tab=food",
  "observed_at": "2026-12-06T10:00:00Z"
}
```

## Price

1 credit per call that returns photos, a page of up to 100. 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 tab of its photos or a word to search their captions, not both. |
| `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 photos and videos, 100 a page to the list's end, all of them or one tab, or the photos whose caption holds a word; each at full size with its caption, keywords, likes, author and review.

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