# Google Search Place Details

Resolve a Google Search Advanced local result detail_url (a Google /searchviewer link) into structured place details: name, category, address, phone, website, current opening state, Knowledge Graph ID (kgmid), Maps business_id (0x...:0x...), place_id (ChIJ...) and CID. Google answers anonymous /searchviewer requests with 429 or a /sorry page; Scrappa handles that rate limiting on its side. Pass the detail_url exactly as Search Advanced returned it, or only its svid value. hl and gl default to the values in the link. Each successful lookup is billed as one request; Search Advanced never resolves detail_url on its own. When Google blocks every attempt, the response is an unbilled 503 with Retry-After. A link that no longer points to a place returns an unbilled 404. business_id and place_id work with the Google Maps business details, reviews and photos endpoints.

- **Documentation:** [https://scrappa.co/docs/google-search-api/google_search_place](https://scrappa.co/docs/google-search-api/google_search_place)
- **API group:** Google Search API
- **Endpoint:** `GET https://scrappa.co/api/search-advanced/place`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `detail_url` | string | No | local_results.places[].detail_url from Search Advanced. Required unless svid is set. |
| `svid` | string | No | The svid parameter of a /searchviewer URL. Alternative to detail_url. |
| `hl` | string | No | Language of the returned texts (e.g. en, pl). Defaults to the hl in detail_url. |
| `gl` | string | No | Country code (e.g. us, pl). Defaults to the gl in detail_url. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/search-advanced/place?detail_url=https%3A%2F%2Fwww.google.com%2Fsearchviewer%2F10%3Fgl%3Dpl%26hl%3Dpl%26output%3Dsearch%26svid%3DCAwSHRIbCgNwdnESFENnMHZaeTh4TVdacmNIaGZjREp0GAo"
```

## Example response

```json
{
    "place": {
        "kgmid": "/g/11fkpx_p2m",
        "title": "WARK Group - producent przyczep",
        "type": "Producent przyczep",
        "address": "Topolowa 1, 62-002 Jelonek",
        "phone": "61 250 07 07",
        "open_state": "Otwarte \u00b7 Zamkni\u0119cie: 16:00",
        "website": "https://www.warkgroup.com/",
        "business_id": "0x470443e14bc7554b:0xbadfa60ad7b611e7",
        "place_id": "ChIJS1XHS-FDBEcR5xG21wqm37o",
        "cid": "13465663976359989735",
        "maps_link": "https://www.google.com/maps/place/data=!4m2!3m1!1s0x470443e14bc7554b:0xbadfa60ad7b611e7"
    },
    "detail_url": "https://www.google.com/searchviewer/10?hl=pl&gl=pl&output=search&svid=CAwSHRIbCgNwdnESFENnMHZaeTh4TVdacmNIaGZjREp0GAo"
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | detail_url is not a Google /searchviewer URL with a readable svid, or neither detail_url nor svid was sent. |
| 404 | Place Not Found | Google returned no place for this link. The request is not billed. |
| 503 | Place Details Unavailable | Google blocked every attempt. The request is not billed; retry after the Retry-After delay. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
