Skip to content
Scrappa Get API key
Apple Maps API 1 credit/request

Apple Maps Search API Documentation

GET https://scrappa.co/api/apple-maps/search

Apple Maps Search API Documentation 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.

Apple Maps Search API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/apple-maps/search
Auth header
x-api-key
Cost
1 credit/request
q = coffee shops lat = 10 lon = 10
Response preview
200 OK
{
    "data": {
        "query": "coffee",
        "locale": "en-US",
        "results": [
            {
                "id": "6435622567484707146",
                "name": "Sightglass Coffee",
                "hours": {
                    "type": "normal",
                    "weekly": [
                        {
                            "days": [
                                "sunday",
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

3 required parameters needed before sending a request.

2 optional filters available.

q string Required

What to search for, 1 to 200 characters, e.g. coffee or dentist.

Example value coffee shops
lat number Required

Latitude of the search center, -90 to 90, e.g. 37.7749.

Example value 10
lon number Required

Longitude of the search center, -180 to 180, e.g. -122.4194.

Example value 10
locale string Optional

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.

Example value en-US
radius_km number Optional

Keep only places within this distance of the center, 0.1 to 50 kilometres. Default: no limit.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "lat": [
            "The latitude (lat) of the search center is required. Apple Maps results depend on the location."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

Apple Maps could not be reached. This response is not billable. Retry later.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Apple Maps is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.