Retrieve photos for a specific business. Supports filtering by photo category and pagination for businesses with large photo collections. Use the Business Photos Categories
endpoint to get the hash value for a category before filtering.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
business_id | string | Yes | — | Business identifier in hex format (0x...:0x...). Use the google_id from Locate and Search |
language | string | No | "en" | Language code for the response |
country | string | No | "us" | Country code for regional context |
limit | integer | No | 20 | Maximum number of photos to return |
category_hash | string | No | — | Filter by category. Pass the hash value from Business Photos Categories
, not the category name |
next_page_token | string | No | — | Pass the next_token from a previous response to fetch the next page |
Response
| |
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | true when the request succeeded |
request_id | string | Unique identifier for this request |
data | array | List of photos |
data[].id | string | Unique photo identifier |
data[].url | string | Photo URL. The trailing =w203-h152-k-no sets the served size |
data[].max_size | array | [width, height] of the original in pixels |
data[].date | string | Upload date as YYYY-M-D (not zero-padded) |
data[].aspect_ratio | number | Width divided by height |
data[].latitude | number | See the note below on axis order |
data[].longitude | number | See the note below on axis order |
data[].timestamp | integer | Upload time as Unix epoch seconds |
next_token | string | Token for the next page. Pass it back as next_page_token |
Notes
latitudeandlongitudeare swapped in this response. For a Philadelphia business the API returnslatitude: -75.15,longitude: 39.95, but Philadelphia is at 39.95 N, -75.15 W. Readlatitudeas the longitude andlongitudeas the latitude, or swap them on ingest.- Requesting a larger
limitworks here, unlike Business Reviews wherelimitis capped at 20. A request for 50 photos returns 50. - Passing a category name (e.g.
category=Latest) returns an emptydataarray rather than an error. Usecategory_hashwith the hash value instead. - To get a higher-resolution image, replace the size suffix on
url(e.g.=w1600-h1200-k-no) or use the dimensions inmax_size.
Code Examples
| |
| |
| |
Related Endpoints
- Business Photos Categories
— Get the
hashvalues for filtering - Business Details — Get full business information
- Business Reviews — Get reviews for this business