SerpBase

API reference · Maps and places

Google Maps Place Detail

Look up one Google Maps place by its place ID. This complements Maps search and uses its own catalog request price.

POSThttps://api.serpbase.dev/google/maps/detail
2 creditsOpen in Playground

Example

BASH
curl -X POST 'https://api.serpbase.dev/google/maps/detail' \
  -H "Content-Type: application/json" \
  -H 'X-API-Key: YOUR_API_KEY' \
  --max-time 60 \
  -d '{"id":"ChIJb8Jg9pZYwokR-qHGtvSkLzs"}'

No recorded response is published for this endpoint yet. Run the example in the Playground to see a live one.

Parameters

feature_idrequired
string
Use the feature_id field returned by Maps Search place results.
More

It is formatted like 0x...:0x....

hl
string
Language code.
More

Defaults to en.

gl
string
Country code.
More

Defaults to us.

format
"json" | "markdown"
json (default) returns the parsed result.
More

markdown returns the same result as Markdown text (text/markdown) for language models: no envelope, no duplicate alias fields, no inline images. Same credits; failures keep the JSON envelope.

id
string
Example: "ChIJb8Jg9pZYwokR-qHGtvSkLzs"

Use the feature_id field from a Maps Search place result to request a detail record. A well-formed but unknown feature_id returns status 1004.

What comes back

Fields that are not on the page for a given request are left out rather than sent empty.

feature_id
required
string

required

Feature id resolved from the Maps detail request.

page
required
number

required

Always 1 for maps detail.

place
optional
MapsPlace

When place details are parsed.

Single place detail object.

MapsPlace Result item schema

position
optional
number

Maps Search only.

Place rank in the local result list.

name
required
string

required

Place name.

title
required
string

required

Alias for name.

feature_id
required
string

required

Google Maps feature id.

place_id
optional
string

When Google exposes it.

Google place id.

data_id
optional
string

Alias for feature_id.

Maps data id.

cid
optional
string

Derived from feature_id when possible.

Google CID.

kgmid
optional
string

When present in Maps payload.

Knowledge graph machine id.

google_maps_url
optional
string

When Google exposes a Maps URL.

Google Maps URL.

url
optional
string

google_maps_url or website fallback.

Primary place URL.

rating
optional
number

When rating is present.

Google rating.

types
optional
string[]

When categories are present.

Place type labels.

category
optional
object

When category block is parsed.

Structured category data.

address
optional
string

When address is present.

Formatted address.

address_components
optional
object

When components are present.

Street, city, postal code, country code.

plus_code
optional
object

When plus code is present.

Global and compound plus codes.

phone
optional
string

When phone is present.

Local phone number.

phone_international
optional
string

When present.

International phone number.

phone_uri
optional
string

When present.

Telephone URI.

website
optional
string

When website is present.

Business website.

website_domain
optional
string

When website domain is present.

Business website domain.

latitude
optional
number

When coordinates are present.

Latitude.

longitude
optional
number

When coordinates are present.

Longitude.

image
optional
string

When image is present.

Primary place image.

thumbnail
optional
string

Alias for image when available.

Primary image alias.

photos
optional
MapsPhoto[]

When photos are parsed.

Photo id, URL, size, and optional coordinates.

hours
optional
Record<string,string>

When hours are parsed.

Opening hours by day.

open_status
optional
object

When status is present.

Open status text and current hours.

attributes
optional
object[]

When attributes are parsed.

Grouped place attributes.

related_places
optional
object[]

When related places are present.

Related places from Maps payload.

short_description
optional
string

When description block is present.

Short place description.

description
optional
string

When description block is present.

Longer place description.

snippet
optional
string

short_description or description fallback.

Normalized text summary.

timezone
optional
string

When present.

Place timezone.

region
optional
string

When present.

Region label.

country_code
optional
string

When present.

Country code.

language
optional
string

When present.

Language code from Maps payload.

If it fails

A failed request has a non-zero status and an error, and is not charged. The ones you will see here:

1000A parameter is missing or wrongFix the request
1020No credits leftTop up
1029Over your requests per secondWait Retry-After seconds
1502 · 1504The source could not be read this timeRetry
All status codes →