location_idstring必填
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"
}
}
]选择一个示例,将其输入和结果加载到 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.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
location_idstring必填Location ID (numeric)
show_nearbybooleanWhether to show nearby places (default true)
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"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"
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Instagram | $0.008 每次调用 | JSON |
Instagram | $0.008 每次调用 | JSON |
Instagram | $0.008 每次调用 | JSON |
Instagram | $0.008 每次调用 | JSON |
Instagram | $0.002 每次调用 | JSON |
Instagram | $0.008 每次调用 | JSON |
指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
问题
向 https://api.sandbase.ai/v1/api/instagram/v3/location-info 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.008,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:location_id (string)。 可选:show_nearby (boolean)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Instagram Location Details (V3) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Instagram API 访问权限。