location_idstringbắt buộc
Location ID (numeric)
https://api.sandbase.ai/v1/api/instagram/v3/location-infoReturns detailed place information including name, address, coordinates, and nearby places for an Instagram location. Queries are based on a specific location ID.
[
{
"data": {
"_rid": "32345defb5990",
"address": "",
"city": "Changwon",
"external_id": 144811708967490,
"external_id_source": null,
"id": "1016248898",
"lat": null,
"lng": null,
"location": {
"address": "",
"city": "Changwon",
"external_id": 144811708967490,
"external_id_source": null,
"id": "1016248898",
"lat": null,
"lng": null,
"name": "창원",
"pk": "1016248898"
},
"name": "창원",
"nearby_locations": [],
"pk": "1016248898"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns details for one Instagram location, such as its name, city, address, and coordinates. It needs a numeric location_id. It can also list nearby places when show_nearby is on.
external_id.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/location-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"location_id": "1016248898"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
location_id | string | Yes | Location ID (numeric) |
show_nearby | boolean | No | Whether to show nearby places (default true) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"_rid": "3cda064c29f93",
"address": "",
"city": "Changwon",
"external_id": 144811708967490,
"external_id_source": null,
"id": "1016248898",
"lat": null,
"lng": null,
"location": {
"address": "",
"city": "Changwon",
"external_id": 144811708967490,
"external_id_source": null,
"id": "1016248898",
"lat": null,
"lng": null,
"name": "창원",
"pk": "1016248898"
},
"name": "창원",
"nearby_locations": [],
"pk": "1016248898"
}
| Field | Meaning |
|---|---|
name | Display name of the location. In this response it is 창원, written in Korean. |
city | City the location belongs to, for example Changwon. |
id / pk | The Instagram location ID as a string. Both hold the same value as the location_id you sent. |
address | Street address text. It can be an empty string when none is on file. |
lat / lng | Latitude and longitude of the place. Both are null when the location has no coordinates. |
external_id | Numeric ID of the place in an outside source. external_id_source names that source and can be null. |
nearby_locations | List of nearby places. It is empty here, and may be empty for locations with no neighbors. |
location | Nested copy of the main place fields: name, city, address, lat, lng, id, pk and external_id. |
show_nearby to false if you do not need the nearby_locations list.location_id with Instagram Location Search by Coordinates (V3).$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/location-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"location_id": "1016248898"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
location_idstringbắt buộcLocation ID (numeric)
show_nearbybooleanWhether to show nearby places (default true)
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"_rid": "32345defb5990",
"address": "",
"city": "Changwon",
"external_id": 144811708967490,
"external_id_source": null,
"id": "1016248898",
"lat": null,
"lng": null,
"location": {
"address": "",
"city": "Changwon",
"external_id": 144811708967490,
"external_id_source": null,
"id": "1016248898",
"lat": null,
"lng": null,
"name": "창원",
"pk": "1016248898"
},
"name": "창원",
"nearby_locations": [],
"pk": "1016248898"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.002 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Hướng dẫn:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v3/location-info với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.008 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: location_id (string). Tùy chọn: show_nearby (boolean). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Instagram Location Details (V3) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Instagram.