# Google Places on Onekey > 2 endpoints for Google Places (0 stable, 2 beta), 1 to 5 credits each. Category: Travel, local & reviews. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/googleplaces Reference (Markdown): https://onekey.dev/docs/api/googleplaces.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped Google Places endpoints return each: - `entity.id` (string): 2 - `entity.name` (string): 2 - `entity.stats.rating` (number): 2 - `entity.url` (URL): 2 - `place.address` (string): 2 - plus 3 platform-specific fields under `ext.` ## Endpoints ### googleplaces.place One place by id (Places API New, place details). - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/googleplaces/place?place_id=ChIJN1t_tDeuEmsRUsoyG83frY4` with header `x-api-key: YOUR_API_KEY` - Parameters: - `place_id` (string, required): Google place id - Fields returned: `entity.id`, `entity.name`, `place.address`, `entity.stats.rating`, `entity.url`, `ext.reviews`, `ext.website`, `ext.priceLevel` - Reference: https://onekey.dev/docs/api/googleplaces/place.md ### googleplaces.search Text search of places (Places API New, searchText). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/googleplaces/search?q=pizza%20in%20New%20York` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Text query, e.g. 'pizza in New York' - Fields returned: `entity.id`, `entity.name`, `place.address`, `entity.stats.rating`, `entity.url`, `ext.reviews`, `ext.website`, `ext.priceLevel` - Reference: https://onekey.dev/docs/api/googleplaces/search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/googleplaces/place?place_id=ChIJN1t_tDeuEmsRUsoyG83frY4" \ -H "x-api-key: YOUR_API_KEY" ```