Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Instagram Location Search

Tài liệu API
https://api.sandbase.ai/v1/api/instagram/v2/search-locations

Searches Instagram locations matching a specified query term. Returns a list of place candidates with their IDs, names, and Facebook place identifiers.

Giá
$0.002USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Search keyword (location name, city, etc.)
Đầu raVí dụ
Phản hồioutputs · 1.3 KB · 45 dòng
[
  {
    "data": {
      "data": {
        "count": 30,
        "items": [
          {
            "address": "",
            "city": "",
            "external_source": "facebook_places",
            "facebook_places_id": 1619558008055426,
            "id": "1619558008055426",
            "latitude": 48.85907505,
            "longitude": 2.30746037,
            "name": "Paris, France",
            "short_name": "Paris"
          },
          {
            "address": "3655 Las Vegas Blvd S",
            "city": "",
            "external_source": "facebook_places",
            "facebook_places_id": 203320451997,
            "id": "203320451997",
            "latitude": 36.112495391046,
            "longitude": -115.17049104022,
            "name": "Paris Las Vegas Hotel & Casino",
            "short_name": "Paris Las Vegas Hotel & Casino"
          },
          {
            "address": "",
            "city": "",
            "external_source": "facebook_places",
            "facebook_places_id": 124963102002,
            "id": "5870982",
            "latitude": 48.8559907,
            "longitude": 2.3529373,
            "name": "Paris, France",
            "short_name": "Paris"
          },
          "… 27 more items in the full response"
        ]
      }
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Instagram Location Search API

Returns a list of Instagram locations that match a search term. You send a keyword such as a place name or city, and each result includes an ID, name, coordinates, and a Facebook place ID.

Use cases

  • Find the Instagram location ID for a landmark, hotel, or city before pulling posts tagged there.
  • Build a place autocomplete that maps typed text to Instagram location entries.
  • Plot candidate places on a map using the returned latitude and longitude.
  • Tell apart places with similar names by comparing their address and city values.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/search-locations" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "paris"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword (location name, city, etc.)

Example response

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

{
  "data": {
    "count": 30,
    "items": [
      {
        "address": "3655 Las Vegas Blvd S",
        "city": "",
        "external_source": "facebook_places",
        "facebook_places_id": 203320451997,
        "id": "203320451997",
        "latitude": 36.112384416244,
        "longitude": -115.17106896803,
        "name": "Paris Las Vegas Hotel & Casino",
        "short_name": "Paris Las Vegas Hotel & Casino"
      }
    ]
  }
}

Response fields

FieldMeaning
data.countNumber of location results returned for the keyword.
data.items[].idInstagram location ID as a string. Use it as the location identifier in other location calls.
data.items[].name / data.items[].short_nameDisplay name of the place. In the sample, both fields hold the same value.
data.items[].facebook_places_idNumeric Facebook place identifier for the location. It matches id for some results and differs for others.
data.items[].latitude / data.items[].longitudeCoordinates of the place in decimal degrees.
data.items[].addressStreet address of the place. It is an empty string when none is available.
data.items[].cityCity label for the place, such as Paris, France. It is an empty string when none is available.
data.items[].external_sourceSource label for the place record. The sample shows facebook_places.

Notes

  • The keyword parameter is the only input. It takes a location name or city, for example paris.
  • Results can include places that only contain the keyword in the name, such as a hotel in Las Vegas, so check latitude, longitude, and city before you pick one.
  • Use id as a string. Do not use facebook_places_id in its place, because the two values can differ.
  • To find locations near a point instead of by name, use Instagram Location Search by Coordinates (V2). To get posts for a chosen place, use Instagram Location Posts (V2).

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON
Instagram$0.002 mỗi lần gọiJSON

Hướng dẫn:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Instagram Location Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v2/search-locations 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.

API Instagram Location Search có giá bao nhiêu?

$0.002 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Instagram Location Search chấp nhận những tham số nào?

Bắt buộc: keyword (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Instagram Location Search trả về gì?

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.

Tôi có cần tài khoản nhà phát triển hoặc API key của Instagram không?

Không. Instagram Location Search 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.