{"operation":"photos/list","version":"1.0.0","status":"pilot","title":"List photos","summary":"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.","use_when":"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.","categories":["Restaurants","Reviews"],"icon":"photo","source":"yelp","input":{"type":"object","required":["business"],"additionalProperties":false,"properties":{"business":{"type":"string","minLength":1,"maxLength":2000,"description":"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).","examples":["https://www.yelp.com/biz/acme-pizza-brooklyn","Ab3Kd8Zq1Vx6Mb2Ny9Lr4T"]},"tab":{"type":"string","pattern":"^[a-z0-9_]{1,40}$","default":"all","description":"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.","examples":["food","videos"]},"query":{"type":"string","minLength":1,"maxLength":100,"description":"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.","examples":["cannoli"]},"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, tab and search it was given with (otherwise `invalid_cursor`)."}}},"pagination":{"style":"cursor","page_size":100,"next":{"business":"<business as it was written>","cursor":"<opaque>"}},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","kind","url","width","height","video","caption","keywords","uploaded_at","likes","author","review","business","page_url","source_url","observed_at"],"properties":{"object":{"const":"photo","description":"The kind of record: a photo or a video of a business."},"id":{"type":"string","description":"Yelp's id of the photo or video."},"position":{"type":"integer","minimum":1,"description":"Its rank in the list, across pages: 101 is the first of page 2."},"kind":{"enum":["photo","video"],"description":"A photo, or a video (its files in `video`)."},"url":{"type":["string","null"],"format":"uri","description":"The photo at its original size; a video's still."},"width":{"type":["integer","null"],"description":"The original's width in pixels; null for a video."},"height":{"type":["integer","null"],"description":"The original's height in pixels; null for a video."},"video":{"type":["object","null"],"additionalProperties":false,"required":["duration_ms","stream_url","files"],"description":"A video's length and files; null for a photo.","properties":{"duration_ms":{"type":["integer","null"],"description":"Its length, in milliseconds."},"stream_url":{"type":["string","null"],"format":"uri","description":"The video to play, as the page plays it."},"files":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["url","rendition"],"properties":{"url":{"type":"string","format":"uri"},"rendition":{"type":["string","null"],"description":"The host's name for the file's quality: progressive_video_high."}}}}}},"caption":{"type":["string","null"],"description":"As its author wrote it."},"keywords":{"type":"array","items":{"type":"string"},"description":"What Yelp sees in the photo: pizza, food. Empty for a video."},"uploaded_at":{"type":["string","null"],"format":"date-time"},"likes":{"type":"integer","minimum":0},"author":{"type":["object","null"],"additionalProperties":false,"required":["id","name","photo_url"],"description":"Who posted it, as Yelp shows them (a first name and an initial); the business itself for its own.","properties":{"id":{"type":"string","description":"Yelp's id of the person."},"name":{"type":["string","null"]},"photo_url":{"type":["string","null"],"format":"uri"}}},"review":{"type":["object","null"],"additionalProperties":false,"required":["id","rating","text","created_at","author"],"description":"The review the photo was posted with, as yelp/reviews/list gives it in short; null for a photo posted alone.","properties":{"id":{"type":"string"},"rating":{"type":["integer","null"],"minimum":1,"maximum":5},"text":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"author":{"type":["object","null"],"additionalProperties":false,"required":["id","name","review_count","friend_count","photo_count","photo_url"],"properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"review_count":{"type":["integer","null"]},"friend_count":{"type":["integer","null"]},"photo_count":{"type":["integer","null"],"description":"The photos of businesses the reviewer posted."},"photo_url":{"type":["string","null"],"format":"uri"}}}}},"business":{"type":["object","null"],"additionalProperties":false,"required":["id","alias","name"],"properties":{"id":{"type":["string","null"]},"alias":{"type":["string","null"]},"name":{"type":["string","null"]}}},"page_url":{"type":"string","format":"uri","description":"The photo on Yelp, opened on the business's page of photos."},"source_url":{"type":"string","format":"uri","description":"The business's page of photos, at this tab and page."},"observed_at":{"type":"string","format":"date-time"}}},"price":{"credits_per_call":1,"description":"1 credit per call that returns photos, a page of up to 100. 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 tab of its photos or a word to search their captions, not both."},{"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","tab":"food"},"records":[{"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"}]}],"health":{"canaries":[{"business":"https://www.yelp.com/biz/l-and-b-spumoni-gardens-brooklyn","min_records":80},{"business":"NPCQRbpaO6w0cKswP2J7ig","min_records":30}],"required_fields":["id","url","kind","uploaded_at"]},"changelog":[{"version":"1.0.0","date":"2026-12-06","notes":"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."}],"object":"operation","id":"yelp/photos/list","site":{"title":"Yelp","domain":"yelp.com","color":"#D32323"}}