# Apple Maps Search API

> Search places on Apple Maps by keyword and location, with name, category, rating, address, phone, hours and coordinates.

Source: https://www.sandbase.ai/apis/apple-maps/search
API reference: https://www.sandbase.ai/apis/apple-maps/search#api

## Facts

- Provider: Apple Maps
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/apple-maps/search`
- Price: $0.01 per call
- Capabilities: api, apple maps, maps, local
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/apple-maps/search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | yes |  |
| `location` | string | no |  |
| `center` | string | no |  |
| `span` | string | no |  |
| `sort` | string | no |  |
| `toggles` | string | no |  |
| `multi_select_options` | string | no |  |
| `open_at` | string | no |  |
| `locale` | string | no |  |
| `json_restrictor` | string | no |  |

## FAQ

### How do I use the Apple Maps Search API?

Send a POST request to https://api.sandbase.ai/v1/api/apple-maps/search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Apple Maps Search API cost?

$0.01 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Apple Maps Search API accept?

Required: query (string). Optional: location (string), center (string), span (string), sort (string), toggles (string) and multi_select_options (string) and 3 more. The Parameters table and the Playground on this page list every field.

### What does the Apple Maps Search API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Apple Maps developer account or API key?

No. Apple Maps Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Apple Maps API access separately.

## README

### Apple Maps Search

Search places on Apple Maps by keyword and location, with name, category, rating, address, phone, hours and coordinates.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/apple-maps/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "coffee", "location": "Austin, TX"}'
```

The result is returned in `outputs[0].data` as structured JSON.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `query` | string | Yes | Parameter defines the query you want to search. You can use anything that you would use in a regular Apple Maps search. |
| `location` | string | No | Parameter defines the GPS coordinates used for the search origin. (e.g. `Austin, Texas, United States`). Either a `center` or a `location` parameter is required. These parameters can't be used together. |
| `center` | string | No | Parameter defines coordinates of the center point of the region you want to search within. You can pass the coordinates as `latitude,longitude`. (e.g. `30.324639,-97.7304611` for Austin, TX). Either a `center` or a `location` parameter is r |
| `span` | string | No | Parameter defines width and height of the search region as `latitudeDelta,longitudeDelta`. Smaller delta values correspond to a higher zoom level. (defaults to `0.5,0.5`). |
| `sort` | string | No | Parameter defines the sorting refinement for the search. Can be one of the following: `distance` - Sort by distance from the `center`/`location`. `ratings` - Sort by result ratings. `default` - Sort by best match for your query. This is the |
| `toggles` | string | No | Parameter defines the toggle options for the search. A comma separated list of toggle `key` values can be passed to this parameter. See the `refinements.toggles` object of the response to see available toggles for a search. |
| `multi_select_options` | string | No | Parameter defines the options you want to filter by for multi select refinements. A comma separated list of toggle `key` values can be passed to this parameter. See the `refinement.multi_select.<type>.options` object of the response to see  |
| `open_at` | string | No | Parameter defines the time at which result locations should be open at. The value must be a Unix timestamp that is in the future, and no more than 24 hours from the current time. (e.g. `1794559756`). |
| `locale` | string | No | Parameter defines the locale the results should be localized for. Locales for Apple Maps are represented as `<LANGUAGE>-<REGION>`. (defaults to `en-US`, the locale for U.S. English). Head to Apple Maps Locales for the list of available loca |
| `json_restrictor` | string | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |

#### Pricing

$0.010 per successful call. Failed calls are not charged.
