Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Apple Maps Search

Dokumentacja 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.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 9 opcjonalnych

Playground

Wejście
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.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README 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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Apple Maps$0.01 za wywołanieJSON
Apple Maps$0.01 za wywołanieJSON

Pytania

FAQ

Jak używać API Apple Maps Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/apple-maps/search z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Apple Maps Search?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Apple Maps Search?

Wymagane: query (string). Opcjonalne: location (string), center (string), span (string), sort (string), toggles (string) i multi_select_options (string) i jeszcze 3. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Apple Maps Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego Apple Maps lub klucza API?

Nie. Apple Maps Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Apple Maps.