Retrieve the photo categories Google shows for a business: fixed tabs like Menu, Videos and By owner, plus dish or topic categories that depend on the photos people uploaded. Pass a category’s hash as the category parameter of Business Photos
to get only those photos.
HTTP Request
| |
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
business_id | string | Yes | — | Google ID (0x...:0x...), place ID (ChIJ...) or numeric CID |
lang | string | No | "en" | Language code. Category names are translated; hashes stay the same |
country | string | No | "us" | Country code for regional context |
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 photo categories for this business |
data[].name | string | Category name, in the requested language |
data[].hash | string | Token to pass as category to Business Photos |
Notes
- The example is trimmed: this restaurant (Bestia, Los Angeles) returned 17 categories, including dishes like Cavatelli, Gnocchi and Bone marrow. A hotel or park returns a different set, so read them per business rather than hardcoding.
- Pass the
hashvalue, not thename, as thecategoryparameter of Business Photos. - A business Google has no photo data for returns an empty
dataarray.
Code Examples
| |
| |
| |
Related Endpoints
- Business Photos — Fetch photos using the categories returned by this endpoint
- Business Photo Details — Upload date, date taken and upload source of one photo
- Business Details — Get full business information