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

Instagram Search

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.

價格
自 $0.0036 起美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 3 個選填

Playground

輸入
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). 範圍:1 到 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.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

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.

探索更多

相關 APIs

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

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

問題

常見問題

我要如何使用 Instagram Search API?

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

Instagram Search API 的費用是多少?

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

Instagram Search API 接受哪些參數?

必要:query (string)。 選填:type(user, hashtag, place 之一), limit (integer) 和 requireFields (array)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram Search API 會回傳什麼?

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

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

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