Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Apple Maps Search

Docs da API
https://api.sandbase.ai/v1/api/apple-maps/search

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

Preço
$0.01USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 9 opcionais

Playground

Entrada
Parameter defines the query you want to search. You can use anything that you would use in a regular Apple Maps search.
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.
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 required. These parameters can't be used together.
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`).
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 default.
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.
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 available multi select refinements for the search.
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`).
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 locales.
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.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

Apple Maps Search

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

Request

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

NameTypeRequiredDescription
querystringYesParameter defines the query you want to search. You can use anything that you would use in a regular Apple Maps search.
locationstringNoParameter 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.
centerstringNoParameter 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
spanstringNoParameter 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).
sortstringNoParameter 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
togglesstringNoParameter 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_optionsstringNoParameter 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_atstringNoParameter 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).
localestringNoParameter 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_restrictorstringNoParameter 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Apple Maps$0.01 por chamadaJSON
Apple Maps$0.01 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Apple Maps Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/apple-maps/search com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Apple Maps Search?

$0.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Apple Maps Search aceita?

Obrigatórios: query (string). Opcionais: location (string), center (string), span (string), sort (string), toggles (string) e multi_select_options (string) e mais 3. A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Apple Maps Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona).

Preciso de uma conta de desenvolvedor Apple Maps ou de uma chave de API?

Não. Apple Maps Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Apple Maps separadamente.