# Simple Search

Streamlined service for basic searches of locations, places, and points of interest on Google Maps.

- **Documentation:** [https://scrappa.co/docs/google-maps-api/simple_search](https://scrappa.co/docs/google-maps-api/simple_search)
- **API group:** Google Maps API
- **Endpoint:** `GET https://scrappa.co/api/maps/simple-search`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | The search term that the API will use. |
| `limit` | integer | No | Maximum number of results to return (1-200). |
| `page` | integer | No | Page number for pagination (0-based). Default: 0 |
| `hl` | string | No | Language code for results. Default: en |
| `gl` | string | No | Country/region code for geo-filtering results. |
| `google_domain` | string | No | Google domain to use for the search (e.g., google.com, google.de). |
| `fields` | string | No | Comma-separated list of fields to return (e.g., name,rating,review_count). |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/maps/simple-search?query=restaurants+in+new+york"
```

## Example response

```json
{
    "items": [
        {
            "name": "El Bolillo Bakery",
            "price_level": "\u20ac",
            "price_level_text": "Inexpensive",
            "review_count": 3690,
            "rating": 4.7,
            "website": "https://www.elbolillobakery.com",
            "domain": "elbolillobakery.com",
            "latitude": 29.7604,
            "longitude": -95.3698,
            "business_id": "0x8640b88f75b395a3:0x8771a1c312c0bd48",
            "subtypes": [
                "Bakery",
                "Cafe",
                "Coffee shop"
            ],
            "district": "Downtown",
            "full_address": "2421 Canal St, Houston, TX 77003",
            "timezone": "America/Chicago",
            "short_description": "Popular local bakery known for fresh bread and pastries",
            "full_description": "El Bolillo Bakery is a Houston favorite offering fresh baked goods daily.",
            "owner_id": "123456789012345678901",
            "owner_name": "El Bolillo Bakery (Owner)",
            "owner_link": "https://maps.google.com/maps/contrib/123456789012345678901",
            "order_link": "https://www.elbolillobakery.com/order",
            "google_mid": "/g/1tgb0z0z",
            "type": "Bakery",
            "phone_numbers": [
                "+1 713-226-8889"
            ],
            "place_id": "ChIJo5WzdY-4QIYRSL3AEsOhcYc",
            "photos_sample": [
                {
                    "photo_id": "AF1QipNx1234567890",
                    "photo_url": "https://lh3.googleusercontent.com/p/AF1QipNx...",
                    "photo_url_large": "https://lh5.googleusercontent.com/p/AF1QipNx...",
                    "video_thumbnail_url": null,
                    "latitude": 29.7604,
                    "longitude": -95.3698,
                    "type": "photo"
                }
            ],
            "opening_hours": [
                {
                    "day": "Monday",
                    "hours": [
                        "6:00 AM\u20138:00 PM"
                    ],
                    "date": null,
                    "special_day": null
                },
                {
                    "day": "Tuesday",
                    "hours": [
                        "6:00 AM\u20138:00 PM"
                    ],
                    "date": null,
                    "special_day": null
                }
            ],
            "current_status": "Open",
            "attributes": {
                "service_options": {
                    "Curbside pickup": true,
                    "Delivery": false,
                    "In-store pickup": true,
                    "In-store shopping": true,
                    "Takeout": true
                }
            },
            "neighborhood": "East Downtown",
            "street_address_alt": "2421 Canal St",
            "street_address_full": "2421 Canal Street",
            "city": "Houston",
            "zip_code": "77003",
            "state": "Texas",
            "country_code": "US"
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The query, zoom, coordinates, pagination, field projection, locale, or domain parameters failed validation. |
| 503 | Advanced Search Temporarily Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
