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

Instagram Location Search by Coordinates (V2)

API 文件
https://api.sandbase.ai/v1/api/instagram/v2/search-by-coordinates

Returns nearby Instagram locations matching specified geographic coordinates. Queries require both latitude and longitude values to discover place names and identifiers.

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

Playground

輸入
Latitude
Longitude
輸出範例
回應outputs · 1.5 KB · 54 行
[
  {
    "data": {
      "data": {
        "count": 23,
        "items": [
          {
            "address": "<0.1mi · 18 Đường D2, Châu Thới, xã Bình Thắng, Bình Dương, Hồ Chí Minh, Việt Nam",
            "category": "",
            "city": null,
            "hours": [],
            "id": "469499352918885",
            "id_source": "facebook_places",
            "latitude": 0,
            "longitude": 0,
            "name": "Đặng Viring Specialty Coffee",
            "phone": "",
            "website": "",
            "zip": null
          },
          {
            "address": "<0.1mi · 350 Rufe Snow, Suite 500",
            "category": "",
            "city": null,
            "hours": [],
            "id": "185782396368380",
            "id_source": "facebook_places",
            "latitude": -0.0013893846577321,
            "longitude": -0.00040233124127553,
            "name": "Best Brains Learning Center - Keller",
            "phone": "",
            "website": "",
            "zip": null
          },
          {
            "address": "<0.1mi · 新北市中和橋和路15號",
            "category": "",
            "city": null,
            "hours": [],
            "id": "482775614919229",
            "id_source": "facebook_places",
            "latitude": 0,
            "longitude": 0,
            "name": "萱子的秘密小屋",
            "phone": "",
            "website": "",
            "zip": null
          },
          "… 20 more items in the full response"
        ]
      }
    }
  }
]

範例

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

API README

Instagram Location Search by Coordinates (V2) API

Returns a list of Instagram locations near a pair of coordinates. Each item has a place name, an ID, and the latitude and longitude. The request needs latitude and longitude as numbers.

Use cases

  • Find the Instagram location ID for a venue when you only have its GPS coordinates.
  • Build a list of nearby places for a map or check-in picker from a device position.
  • Match a store or hotel address to its Instagram place entry before collecting posts tagged there.
  • Check which place names Instagram lists around a given point.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/search-by-coordinates" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": 0, "longitude": 0}'

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

Parameters

NameTypeRequiredDescription
latitudenumberYesLatitude
longitudenumberYesLongitude

Example response

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

{
  "data": {
    "count": 25,
    "items": [
      {
        "address": "<0.1mi · 新北市中和橋和路15號",
        "category": "",
        "city": null,
        "hours": [],
        "id": "482775614919229",
        "id_source": "facebook_places",
        "latitude": 0,
        "longitude": 0,
        "name": "萱子的秘密小屋",
        "phone": "",
        "website": "",
        "zip": null
      }
    ]
  }
}

Response fields

FieldMeaning
data.countNumber of location items in the response.
data.items[].idIdentifier of the location. Use it to look up posts tagged at that place.
data.items[].id_sourceSource system of the ID. The sample values are facebook_places.
data.items[].nameDisplay name of the place.
data.items[].addressStreet address text. It can start with a distance prefix such as <0.1mi ·.
data.items[].latitude / data.items[].longitudeCoordinates of the place. In the sample response both are 0.
data.items[].category / data.items[].phone / data.items[].websiteOptional place details. They are empty strings when no value is set.
data.items[].city / data.items[].zipCity and postal code. Both are null in the sample response.
data.items[].hoursList of opening hours. It is empty in the sample response.

Notes

  • Both latitude and longitude are required numbers.
  • Many fields such as category, phone, website, city and zip can be empty or null, so check them before use.
  • Pass a location id to Instagram Location Posts (V2) to get posts for that place.
  • To find a place by name instead of coordinates, use Instagram Location Search.

Pricing

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

探索更多

相關 APIs

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

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

問題

常見問題

我要如何使用 Instagram Location Search by Coordinates (V2) API?

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

Instagram Location Search by Coordinates (V2) API 的費用是多少?

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

Instagram Location Search by Coordinates (V2) API 接受哪些參數?

必要:latitude (number) 和 longitude (number)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram Location Search by Coordinates (V2) API 會回傳什麼?

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

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

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