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

Instagram Search

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

Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.

Giá
Từ $0.0036USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 3 tùy chọn

Phòng thử nghiệm

Đầu vào
Keyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).
What to search for: user profiles, hashtags, or places (e.g. hashtag).
120
Maximum number of results to return (1-20, default 20). Phạm vi: 1 đến 20.
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `postsCount`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Instagram Search API

This API searches Instagram by keyword and returns a list of matching results. Each result has a name, handle, ID, profile image, and link. It needs a query, and you can set type to user, hashtag, or place.

Use cases

  • Find the official Instagram account for a brand or organization by searching its name.
  • Build a list of candidate accounts for a topic, then check which ones are verified.
  • Turn a keyword into Instagram user IDs and handles to feed into profile or post lookups.
  • Add an account search box to a tool that links to each profile page.

Request

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

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

Parameters

NameTypeRequiredDescription
querystringYesKeyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).
limitintegerNoMaximum number of results to return (1-20, default 20).
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example postsCount, and it is served only by a source that returns every one
typestringNoWhat to search for: user profiles, hashtags, or places (e.g. hashtag).

Example response

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

{
  "data": {
    "items": [
      {
        "bio": "",
        "followers": 0,
        "following": 0,
        "handle": "nasa",
        "id": "528817151",
        "image": "https://instagram.fsjc1-4.fna.fbcdn.net/v/t51.2885-19/29090066_159271188110124_1…",
        "name": "NASA",
        "postsCount": null,
        "url": "https://www.instagram.com/nasa/",
        "verified": true
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.items[].handleThe account username, without the @ sign.
data.items[].nameThe display name shown on the profile.
data.items[].idThe numeric Instagram ID of the account, returned as a string.
data.items[].urlLink to the profile page on Instagram.
data.items[].verifiedtrue when the account has the verified badge.
data.items[].imageURL of the profile picture.
data.items[].followers / data.items[].followingFollower and following counts. In this sample response they are 0 for every result, so do not rely on them for ranking.
data.items[].bioProfile biography text. It is an empty string in this sample response.
data.items[].postsCountNumber of posts on the account. It is null in this sample response.
foundtrue when the search returned results.

Notes

  • Results are in data.items. A search with no match still succeeds and returns found: false.
  • Use limit (1 to 20) to cap the number of results. There is no page parameter.
  • postsCount came back as null in this sample. Pass requireFields: ["postsCount"] to route to a source that returns it. This can raise the price of the call.
  • For full profile details, take the handle or id and call Instagram Profile or Instagram User Profile by ID.

Pricing

Billed at the actual cost of each call, about $0.0036 for the request above. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
InstagramTừ $0.0036 mỗi lần gọiJSON
InstagramTừ $0.0011 mỗi lần gọiJSON
InstagramTừ $0.001 mỗi lần gọiJSON
InstagramTừ $0.0011 mỗi lần gọiJSON
InstagramTừ $0.0012 mỗi lần gọiJSON
InstagramTừ $0.0011 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 Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/search 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 Search có giá bao nhiêu?

Từ $0.0036 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ý.

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

Bắt buộc: query (string). Tùy chọn: type (một trong số user, hashtag, place), limit (integer) và requireFields (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Instagram 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 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.