Yelp API endpoint
Fetches the photo gallery for a Yelp business.
/yelp/business/{id}/photosPath parameters: id is required and accepts a Yelp business alias (e.g. pequods-pizza-chicago-3) or an encoded Yelp business id.
Query parameters:
limit: maximum photos to return, 1 through 50. Defaults to 20.offset: pagination offset. Defaults to 0.Returns the business's photo gallery — image URL, dimensions, caption (when present), and share URL.
| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| id | 20 | |
| url | 20 | s3-media0.fl.yelpcdn.com |
| width | 20 | |
| height | 20 | |
| time_created | 20 | 2016-10-18 to 2026-08-31 |
| share_url | 20 | yelp.com |
| caption | 16 | “Small deep dish with pepperoni” and 14 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id (path) | string | Yes | Yelp business alias or encoded id | pequods-pizza-chicago-3 | |
| limit | integer | No | Max photos to return, 1-50 | 20 | |
| offset | integer | No | Pagination offset | 0 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yelp/business/pequods-pizza-chicago-3/photos?limit=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"id": "pequods-pizza-chicago-3",
"total": 6052,
"limit": 3,
"offset": 0,
"photos": [
{
"id": "8QJUNblfCI0EDhOjuIWJ4A",
"url": "https://s3-media0.fl.yelpcdn.com/bphoto/8QJUNblfCI0EDhOjuIWJ4A/o.jpg",
"width": 960,
"height": 720,
"time_created": 1584553506,
"share_url": "https://www.yelp.com/biz_photos/DXwSYgiXqIVNdO9dazel6w?select=8QJUNblfCI0EDhOjuIWJ4A"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/yelp.mobileBusinessPhotosResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yelp.MobileBusinessPhotosResponse | No | ||||
| data.id | string | No | pequods-pizza-chicago-3 | |||
| data.limit | integer | No | 20 | |||
| data.offset | integer | No | 0 | |||
| data.photos | array | No | ||||
| data.photos[].caption | string | No | ||||
| data.photos[].height | integer | No | ||||
| data.photos[].id | string | No | ||||
| data.photos[].share_url | string | No | ||||
| data.photos[].time_created | integer | No | ||||
| data.photos[].url | string | No | ||||
| data.photos[].width | integer | No | ||||
| data.total | integer | No | 6052 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/yelp/business/pequods-pizza-chicago-3/photos?limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"