Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Instagram Location Details (V1)

API 文件
https://api.sandbase.ai/v1/api/instagram/v1/location-info

Returns detailed metadata and profile information for a specified Instagram location using its unique identifier.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
Location ID
輸出範例
回應outputs · 568 B · 27 行
[
  {
    "data": {
      "attempts": "1000",
      "location_info": {
        "category": "Country/Region",
        "hours": {
          "status": ""
        },
        "ig_business": {
          "profile": null
        },
        "lat": -25.751409,
        "lng": 28.203527,
        "location_address": "",
        "location_city": "",
        "location_id": "703457703",
        "location_zip": "",
        "media_count": 77207,
        "name": "NewYork. America",
        "phone": "",
        "price_range": 0,
        "slug": "newyork-america"
      }
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Instagram Location Details (V1) API

Returns metadata for one Instagram location, including its name, category, coordinates, and the number of posts tagged there. It needs a single location_id.

Use cases

  • Show the name and map position of a place that appears on an Instagram post.
  • Compare how many posts are tagged at different locations using media_count.
  • Check whether a location has address, phone, or business profile data before you use it.
  • Find the slug for a location to build a readable label in a report.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/location-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location_id": "703457703"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
location_idstringYesLocation ID

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "attempts": "30",
  "location_info": {
    "category": "Country/Region",
    "hours": {
      "status": ""
    },
    "ig_business": {
      "profile": null
    },
    "lat": -25.751409,
    "lng": 28.203527,
    "location_address": "",
    "location_city": "",
    "location_id": "703457703",
    "location_zip": "",
    "media_count": 78252,
    "name": "NewYork. America",
    "phone": ""
  }
}

Response fields

FieldMeaning
location_info.nameDisplay name of the location. It is the name users see when they tag the place.
location_info.location_idID of the location, returned as a string. It matches the location_id you sent.
location_info.slugURL-style name of the location, in lowercase with hyphens.
location_info.categoryType of place, for example Country/Region.
location_info.lat / location_info.lngLatitude and longitude of the location in decimal degrees.
location_info.media_countNumber of posts tagged at this location.
location_info.location_address / location_info.location_city / location_info.location_zipStreet address, city, and postal code. These can be empty strings when the location has no address data.
location_info.phoneContact phone number. It is an empty string when none is listed.
location_info.price_rangePrice range value for the location. It is 0 in this response.
location_info.ig_business.profileLinked Instagram business profile. It is null when the location has none.

Notes

  • Coordinates and name come from the location record. In the sample, the name is NewYork. America while the coordinates are at -25.751409, 28.203527, so check that they fit your use.
  • To get posts tagged at this place, call Instagram Location Posts (V1) with the same location ID.
  • To find location IDs by city, use Instagram City Locations. To find them by name, use Instagram Location Search.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON

指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Instagram Location Details (V1) API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/instagram/v1/location-info。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Instagram Location Details (V1) API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Instagram Location Details (V1) API 接受哪些參數?

必要:location_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram Location Details (V1) API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Instagram 開發者帳號或 API 金鑰嗎?

不需要。Instagram Location Details (V1) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Instagram API 存取權。