# Apple Maps Search API Documentation

<p><strong>Apple Maps Search API Documentation</strong> Search Apple Maps for places around a point. Each place has its id (muid), place id, name, category, address, coordinates, phone, website, opening hours, one photo, the Apple and Yelp ratings as separate entries and the guides it appears in. Send the search text and the latitude and longitude of the center. Apple Maps has no paging: one request returns up to about 25 places, best match first. Use radius_km to keep only places within that distance. Every place has distance_km. Pass the id to the place and reviews endpoints. Cost: 1 credit per request. A search with no match and every error cost nothing.</p>

- **Documentation:** [https://scrappa.co/docs/apple-maps-api/apple_maps_search](https://scrappa.co/docs/apple-maps-api/apple_maps_search)
- **API group:** Apple Maps API
- **Endpoint:** `GET https://scrappa.co/api/apple-maps/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | What to search for, 1 to 200 characters, e.g. coffee or dentist. |
| `lat` | number | Yes | Latitude of the search center, -90 to 90, e.g. 37.7749. |
| `lon` | number | Yes | Longitude of the search center, -180 to 180, e.g. -122.4194. |
| `locale` | string | No | Language and country of the answer. One of en-US, en-GB, de-DE, fr-FR, es-ES, it-IT, ja-JP. Default: en-US. |
| `radius_km` | number | No | Keep only places within this distance of the center, 0.1 to 50 kilometres. Default: no limit. |

## Example response

```json
{
    "data": {
        "query": "coffee",
        "locale": "en-US",
        "results": [
            {
                "id": "6435622567484707146",
                "name": "Sightglass Coffee",
                "hours": {
                    "type": "normal",
                    "weekly": [
                        {
                            "days": [
                                "sunday",
                                "saturday"
                            ],
                            "open": "07:00",
                            "close": "17:00"
                        },
                        {
                            "days": [
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday"
                            ],
                            "open": "06:30",
                            "close": "17:00"
                        }
                    ]
                },
                "phone": "+1 (415) 463-1673",
                "photo": {
                    "url": "https://ir.4sqi.net/img/general/600x449/4236066_OJPdR0FKeJAQyC84_XTfrbMm119Jv2E1CGmvfsBlLpM.jpg",
                    "width": 308,
                    "height": 308,
                    "source": "Foursquare",
                    "category": "Food & Drink"
                },
                "guides": [
                    {
                        "id": "13100041759208417726",
                        "image": "https://is1-ssl.mzstatic.com/image/thumb/w4_6Zdp2JR_l-mz7c9J94w/1200x800.jpg",
                        "title": "The San Francisco Coffee Guide",
                        "publisher": "Sprudge",
                        "description": "The Bay Area's legendary coffee scene needs no introduction. The city's coffee shops and espresso bars have played host to a thousand moments of inspiration and intrigue, and are a vital part of San Francisco's ever-changing culture.",
                        "places_count": 11
                    }
                ],
                "address": "270 7th St, San Francisco, CA 94103, United States",
                "ratings": [
                    {
                        "count": 70,
                        "score": 90,
                        "source": "Apple",
                        "max_score": 100,
                        "categories": [
                            {
                                "name": "Food & Drink",
                                "count": 60,
                                "score": 95,
                                "source": "Apple",
                                "max_score": 100
                            },
                            {
                                "name": "Atmosphere",
                                "count": 62,
                                "score": 94,
                                "source": "Apple",
                                "max_score": 100
                            },
                            {
                                "name": "Customer Service",
                                "count": 59,
                                "score": 88,
                                "source": "Apple",
                                "max_score": 100
                            }
                        ]
                    }
                ],
                "website": "https://sightglasscoffee.com/blogs/shops/soma-district",
                "category": "Coffee Roastery",
                "place_id": "I594FECA0B369D14A",
                "alt_phones": [
                    "+14158611313"
                ],
                "categories": [
                    {
                        "id": "coffee_roastery",
                        "name": "Coffee Roastery",
                        "level": 99
                    },
                    {
                        "id": "coffee_shop",
                        "name": "Coffee Shop",
                        "level": 3
                    }
                ],
                "phone_e164": "+14154631673",
                "coordinates": {
                    "latitude": 37.776974,
                    "longitude": -122.408529
                },
                "distance_km": 0.98,
                "short_address": "270 7th St, San Francisco"
            },
            {
                "id": "11249742488957856201",
                "name": "Haraz Coffee House",
                "hours": {
                    "type": "normal",
                    "weekly": [
                        {
                            "days": [
                                "sunday",
                                "monday",
                                "tuesday",
                                "wednesday",
                                "thursday",
                                "friday",
                                "saturday"
                            ],
                            "open": "07:00",
                            "close": "23:00"
                        }
                    ]
                },
                "phone": "+1 (415) 494-7239",
                "photo": {
                    "url": "https://is1-ssl.mzstatic.com/image/thumb/OdZ13PnN7rmKlXFY8y9Sug/750x1000bb.jpg",
                    "width": 750,
                    "height": 1000,
                    "source": "Yelp"
                },
                "address": "1452 Franklin St, San Francisco, CA 94109, United States",
                "ratings": [
                    {
                        "count": 285,
                        "score": 4.1,
                        "source": "Yelp",
                        "max_score": 5
                    }
                ],
                "website": "https://harazcoffeehouse.com",
                "category": "Coffee Shop",
                "place_id": "I9C1F1D30A4F3A9C9",
                "categories": [
                    {
                        "id": "coffee_shop",
                        "name": "Coffee Shop",
                        "level": 99
                    },
                    {
                        "id": "cafe",
                        "name": "Cafe",
                        "level": 2
                    }
                ],
                "phone_e164": "+14154947239",
                "coordinates": {
                    "latitude": 37.7881599,
                    "longitude": -122.4233646
                },
                "distance_km": 1.52,
                "price_level": {
                    "level": 2,
                    "source": "Yelp",
                    "symbol": "$",
                    "max_level": 4
                },
                "short_address": "1452 Franklin St, San Francisco"
            }
        ],
        "location": {
            "latitude": 37.7749,
            "longitude": -122.4194
        },
        "total_results": 25
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "duration_ms": 1320,
        "endpoint_family": "search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Apple Maps could not be reached. This response is not billable. Retry later. |

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