GET /business_photos_categories

Business Photos Categories

List the photo categories of a Google Maps business (Menu, Food & drink, dishes, Videos, By owner) with the hash to filter Business Photos.

Google Maps Scraper API

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

1
GET /business_photos_categories

Parameters

ParameterTypeRequiredDefaultDescription
business_idstringYes—Google ID (0x...:0x...), place ID (ChIJ...) or numeric CID
langstringNo"en"Language code. Category names are translated; hashes stay the same
countrystringNo"us"Country code for regional context

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
  "status": true,
  "request_id": "3514621c-8899-581f-cce7-f1c3c343",
  "data": [
    { "name": "All", "hash": "CgIgAQ==" },
    { "name": "Latest", "hash": "CgIgARICGAI=" },
    { "name": "Menu", "hash": "CgIYIQ==" },
    { "name": "Food & drink", "hash": "CgIYIA==" },
    { "name": "Vibe", "hash": "CgIYIg==" },
    { "name": "Oyster", "hash": "CgwqCC9tLzBfY3A1MAs=" },
    { "name": "Pizza", "hash": "CgwKCC9tLzA2NjN2MAE=" },
    { "name": "By owner", "hash": "CgIgARICEAE=" },
    { "name": "Street View & 360\u00b0", "hash": "CgIgARICCAI=" },
    { "name": "Videos", "hash": "CgIgARICCAQ=" }
  ],
  "request_params": {
    "business_id": "0x80c2c621d7d91b49:0x5e3e80cfbddfba70"
  }
}

Response Fields

FieldTypeDescription
statusbooleantrue when the request succeeded
request_idstringUnique identifier for this request
dataarrayList of photo categories for this business
data[].namestringCategory name, in the requested language
data[].hashstringToken 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 hash value, not the name, as the category parameter of Business Photos.
  • A business Google has no photo data for returns an empty data array.

Code Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import requests

url = "https://google-maps-extractor2.p.rapidapi.com/business_photos_categories"

querystring = {
    "business_id": "0x80c2c621d7d91b49:0x5e3e80cfbddfba70",
    "lang": "en",
    "country": "us"
}

headers = {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "google-maps-extractor2.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)
data = response.json()

print("Available photo categories:")
for category in data["data"]:
    print(f"  - {category['name']}: {category['hash']}")
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
const url = "https://google-maps-extractor2.p.rapidapi.com/business_photos_categories";

const params = new URLSearchParams({
  business_id: "0x80c2c621d7d91b49:0x5e3e80cfbddfba70",
  lang: "en",
  country: "us",
});

const response = await fetch(`${url}?${params}`, {
  method: "GET",
  headers: {
    "X-RapidAPI-Key": "YOUR_API_KEY",
    "X-RapidAPI-Host": "google-maps-extractor2.p.rapidapi.com",
  },
});

const data = await response.json();

console.log("Available photo categories:");
data.data.forEach((category) => console.log(`  - ${category.name}: ${category.hash}`));
1
2
3
4
5
6
curl -G "https://google-maps-extractor2.p.rapidapi.com/business_photos_categories" \
  --data-urlencode "business_id=0x80c2c621d7d91b49:0x5e3e80cfbddfba70" \
  --data-urlencode "lang=en" \
  --data-urlencode "country=us" \
  -H "X-RapidAPI-Key: YOUR_API_KEY" \
  -H "X-RapidAPI-Host: google-maps-extractor2.p.rapidapi.com"
Start building today

Get your API key and make your first request in under a minute.

Get Your API Key on RapidAPI