APIs / Apple Maps / Search

Apple Maps: Search

Search from Apple Maps as JSON. 1 credit per successful call.

GET /v1/apple-maps/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
qstringRequiredUp to 200 characters
latnumberRequiredAny
lonnumberRequiredAny
localestringOptionalen-US, en-GB, de-DE, fr-FR, es-ES, it-IT, ja-JP
radius_kmnumberOptionalAny

Example request

Apple Maps
GET/v1/apple-maps/search?q=coffee&lat=37.7749&lon=-122.4194
{
  "success": true,
  "data": {
    "query": "coffee",
    "location": {
      "latitude": 37.7749,
      "longitude": -122.4194
    },
    "locale": "en-US",
    "results": [
      {
        "id": "6435622567484707146",
        "place_id": "I594FECA0B369D14A",
        "name": "Sightglass Coffee",
        "category": "Coffee Roastery",
        "categories": [
          {
            "level": 99,
            "id": "coffee_roastery",
            "name": "Coffee Roastery"
          },
          {
            "level": 3,
            "id": "coffee_shop",
            "name": "Coffee Shop"
          },
          {
            "level": 2,
            "id": "cafe",
            "name": "Cafe"
          }
        ],
        "address": "270 7th St, San Francisco, CA 94103, United States",
        "short_address": "270 7th St, San Francisco",
        "coordinates": {
          "latitude": 37.776974,
          "longitude": -122.408529
        },
        "phone": "+1 (415) 463-1673",
        "phone_e164": "+14154631673",
        "alt_phones": [
          "+14158611313"
        ],
        "website": "https://sightglasscoffee.com/blogs/shops/soma-district",
        "ratings": [
          {
            "source": "Apple",
            "score": 90,
            "max_score": 100,
            "count": 70,
            "categories": [
              "…",
              "…",
              "…"
            ]
          }
        ],
        "hours": {
          "type": "normal",
          "weekly": [
            "…",
            "…"
          ]
        },
        "photo": {
          "url": "https://ir.4sqi.net/img/general/600x449/4236066_OJPdR0FKeJAQyC84_XTfrbMm119Jv2E1CGmvfsBlLpM.jpg",
          "width": 308,
          "height": 308,
          "category": "Food & Drink",
          "source": "Foursquare"
        },
        "guides": [
          {
            "id": "13100041759208417726",
            "title": "The San Francisco Coffee Guide",
            "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.",
            "publisher": "Sprudge",
            "places_count": 11,
            "image": "https://is1-ssl.mzstatic.com/image/thumb/w4_6Zdp2JR_l-mz7c9J94w/1200x800.jpg"
          }
        ],
        "distance_km": 0.98
      },
      {
        "id": "3144876398935573864",
        "place_id": "I2BA4D86C2D108568",
        "name": "Hedge Coffee",
        "category": "Coffee Shop",
        "categories": [
          {
            "level": 99,
            "id": "coffee_shop",
            "name": "Coffee Shop"
          },
          {
            "level": 2,
            "id": "cafe",
            "name": "Cafe"
          },
          {
            "level": 1,
            "id": "dining",
            "name": "Dining"
          }
        ],
        "address": "434 Shotwell St, San Francisco, CA 94110, United States",
        "short_address": "434 Shotwell St, San Francisco",
        "coordinates": {
          "latitude": 37.7612939,
          "longitude": -122.4163314
        },
        "phone": "+1 (415) 603-9818",
        "phone_e164": "+14156039818",
        "website": "https://www.hedge.coffee",
        "ratings": [
          {
            "source": "Apple",
            "score": 95,
            "max_score": 100,
            "count": 40,
            "categories": [
              "…",
              "…",
              "…"
            ]
          }
        ],
        "hours": {
          "type": "normal",
          "weekly": [
            "…",
            "…"
          ]
        },
        "photo": {
          "url": "https://is1-ssl.mzstatic.com/image/thumb/9tXIELQsqs1xIqnJbS-UlA/1920x1080bb.jpg",
          "width": 1920,
          "height": 1080,
          "source": "The Infatuation"
        },
        "guides": [
          {
            "id": "17265780069111950200",
            "title": "Breakfast Spots in San Francisco",
            "description": "Popular places to start the day, based on what people view, share, and interact with most on Apple Maps. The list updates over time, so save any places you want to revisit.",
            "publisher": "Local Lists",
            "places_count": 20,
            "image": "https://is1-ssl.mzstatic.com/image/thumb/f1HEyXIU0-SoGZwpGGaEGA/1200x800bb.jpg"
          }
        ],
        "distance_km": 1.54
      },
      {
        "id": "9950858653192816002",
        "place_id": "I8A188D3921AE0582",
        "name": "Kopê House",
        "category": "Coffee Shop",
        "categories": [
          {
            "level": 99,
            "id": "coffee_shop",
            "name": "Coffee Shop"
          },
          {
            "level": 2,
            "id": "cafe",
            "name": "Cafe"
          },
          {
            "level": 1,
            "id": "dining",
            "name": "Dining"
          }
        ],
        "address": "546 Laguna St, San Francisco, CA 94102, United States",
        "short_address": "546 Laguna St, San Francisco",
        "coordinates": {
          "latitude": 37.7762362,
          "longitude": -122.4260736
        },
        "phone": "+1 (415) 359-3001",
        "phone_e164": "+14153593001",
        "website": "https://www.kopehouse.com",
        "ratings": [
          {
            "source": "Apple",
            "score": 100,
            "max_score": 100,
            "count": 16,
            "categories": [
              "…",
              "…",
              "…"
            ]
          }
        ],
        "hours": {
          "type": "normal",
          "weekly": [
            "…",
            "…"
          ]
        },
        "photo": {
          "url": "https://is1-ssl.mzstatic.com/image/thumb/0j4BnSAw3eaLPIGKUb6cUA/1920x1080bb.jpg",
          "width": 1920,
          "height": 1080,
          "source": "The Infatuation"
        },
        "distance_km": 0.61
      }
    ],
    "total_results": 25
  },
  "meta": {
    "endpoint_family": "search",
    "duration_ms": 1627,
    "request_id": "req_f76992837eac413e85e9b251c4abf665",
    "credits_charged": 1,
    "credits_remaining": 1790
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 3 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
locationobject
localestring
resultsobject[]