GET /google-maps/business_photos_categories

Business Photos Categories

List available photo categories for a specific business on Google Maps.

Google Maps Scraper API

Retrieve the list of available photo categories for a specific business. Use the returned category values with the Business Photos endpoint to filter photos by category. Categories are determined by Google based on the photos uploaded for the business.

HTTP Request

1
GET /google-maps/business_photos_categories

Parameters

ParameterTypeRequiredDefaultDescription
business_idstringYesUnique business identifier in hex format (0x...:0x...) or place ID
languagestringNo"en"Language code for the response
countrystringNo"us"Country code for regional context

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "status": "OK",
  "data": [
    "All",
    "Interior",
    "Exterior",
    "Food & drink",
    "Menu",
    "By owner",
    "Street View & 360"
  ]
}

Response Fields

FieldTypeDescription
statusstringRequest status
dataarrayList of available photo category strings

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/google-maps/business_photos_categories"

querystring = {
    "business_id": "0x89c259a9aeb1c6b5:0x35b1cfbc380cb867",
    "language": "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}")
 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/google-maps/business_photos_categories";

const params = new URLSearchParams({
  business_id: "0x89c259a9aeb1c6b5:0x35b1cfbc380cb867",
  language: "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}`));
1
2
3
4
5
6
curl -G "https://google-maps-extractor2.p.rapidapi.com/google-maps/business_photos_categories" \
  --data-urlencode "business_id=0x89c259a9aeb1c6b5:0x35b1cfbc380cb867" \
  --data-urlencode "language=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