Get Apple Maps places API
Apple Maps places by id (up to 20): address, category, phone, website, timezone.
GET /v1/applemaps/placesBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/applemaps/places?ids=I2BA4D86C2D108568",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "results": [ { "id": "I2BA4D86C2D108568", "center": { "lat": 37.7612939, "lng": -122.4163314 }, "displayMapRegion": { "southLat": 37.7567972, "westLng": -122.4220192, "northLat": 37.7657905, "eastLng": -122.4106435 }, "name": "Hedge Coffee", "formattedAddressLines": [ "434 Shotwell St", "San Francisco, CA 94110", "… 1 more" ], "administrativeArea": "California", "subAdministrativeArea": "San Francisco County", "administrativeAreaCode": "CA", "locality": "San Francisco", "postCode": "94110", "subLocality": "Central Mission", "thoroughfare": "Shotwell St", "subThoroughfare": "434", "fullThoroughfare": "434 Shotwell St", "dependentLocalities": [ "Central Mission", "Inner Mission", "… 1 more" ], "country": "United States", "countryCode": "US", "muid": "3144876398935573864", "mapsId": { "muid": "3144876398935573864", "resultProviderId": "9902" }, "telephone": "+14156039818", "urls": [ "https://www.hedge.coffee" ], "timezone": "America/Los_Angeles", "timezoneSecondsFromGmt": -28800, "style": { "attributes": [ { "key": 4, "value": 226 }, { "key": 6, "value": 8 }, "… 6 more" ] }, "…": "1 more fields" } ], "errors": []}Parameters
| Name | Type | Description |
|---|---|---|
idsquery · required | string | Comma-separated place ids. Example: I2BA4D86C2D108568. |
languagequery | string | Language for names and addresses (default en-US). Example: fr-FR. |
Response fields
200 with a AppleMapsPlacesResponse, in Apple Maps’s own JSON.
| Field | Type | Description |
|---|---|---|
results | AppleMapsPlace[] | |
errors | object[] | Ids Apple could not resolve. |
Status codes
| Status | Meaning |
|---|---|
200 | The places. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Apple Maps place by that id. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Apple Maps is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Apple Maps is a trademark of its owner. We are not affiliated with or endorsed by it.