Skip to main content
The /place-details/{place_id} endpoint returns comprehensive information about a single restaurant from Google Places. You supply the place_id from a previous /recommend or /places/top-picks response, and the API returns the full record — address, phone number, website, current opening status, photo URLs, and GPS coordinates. This is the right endpoint to call when a user taps on a specific restaurant and you need to show them a detail view.

Request

GET https://naijataste-api-vcp4.onrender.com/place-details/{place_id}

Path parameters

place_id
string
required
The Google Places place_id for the restaurant you want to look up (e.g. "ChIJxxxxxxx"). You can get this value from the business_id field in /recommend responses or the place_id field in /places/top-picks responses.

Response

name
string
required
The restaurant’s full display name (e.g. "Yellow Chilli Victoria Island").
address
string
required
The restaurant’s street address (e.g. "1234 Akin Adesola St, Victoria Island, Lagos").
phone
string
The restaurant’s phone number in international format (e.g. "+234 812 345 6789"). May be null if not listed on Google Places.
rating
number
required
The Google Places average star rating (e.g. 4.2).
total_ratings
number
required
The total number of Google Places reviews (e.g. 1823).
price_level
number
required
A Google Places price level on a scale of 0–4, where 0 is free and 4 is very expensive.
website
string
The restaurant’s website URL. May be null if not listed.
google_maps_url
string
required
A direct Google Maps link to this restaurant (e.g. "https://maps.google.com/?cid=...").
photos
string[]
required
An array of Google Maps photo URLs for this restaurant. May be empty if no photos are available.
opening_hours
string[]
required
The restaurant’s weekly opening hours, one string per day (e.g. ["Monday: 11:00 AM – 10:00 PM", "Tuesday: 11:00 AM – 10:00 PM"]). May be empty if hours are not listed.
is_open_now
boolean
required
Whether the restaurant is currently open based on its listed hours and the current time.
lat
number
required
The latitude of the restaurant’s location (e.g. 6.4281).
lng
number
required
The longitude of the restaurant’s location (e.g. 3.4219).

Example

curl "https://naijataste-api-vcp4.onrender.com/place-details/ChIJxxxxxxx"

Errors

StatusCause
503The Google Places API key is not configured or the service is unreachable.