Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Apple Maps Search

เอกสาร 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.

ราคา
$0.01USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 9 ไม่บังคับ

Playground

อินพุต
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.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Apple Maps SearchAPI นี้
Apple Maps
$0.01 ต่อการเรียกJSON
Apple Maps$0.01 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Apple Maps Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/apple-maps/search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Apple Maps Search API ราคาเท่าไร?

$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Apple Maps Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: query (string). ตัวเลือก: location (string), center (string), span (string), sort (string), toggles (string) และ multi_select_options (string) และอีก 3 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Apple Maps Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Apple Maps ไหม?

ไม่จำเป็น Apple Maps Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Apple Maps API แยกต่างหาก