hashtagstring必填
Hashtag to monitor, without the leading #.
https://api.sandbase.ai/v1/api/instagram/hashtag-recent-postsInstagram posts published under a hashtag, newest first, read from its live chronological feed rather than a web search index. Built for monitoring: results arrive within a couple of minutes of posting, so engagement counts are usually still zero and reels do not appear (Instagram keeps those on a separate tab). For engagement-ranked results use instagram.hashtag_top_posts; for older relevance-ranked results use instagram.search_hashtag.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns Instagram posts published under a hashtag, newest first, from the hashtag's chronological feed. You send a hashtag without the leading #, and each post includes caption, author, media links and counts.
paidPartnership.username, userId and verified.curl -X POST "https://api.sandbase.ai/v1/api/instagram/hashtag-recent-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag": "skincare"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
hashtag | string | Yes | Hashtag to monitor, without the leading #. |
cursor | string | No | Pagination cursor from a previous response's nextCursor. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"nextCursor": "cur_Kic15fMDA4fH3OYn2e--Sw",
"posts": [
{
"avatarUrl": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-19/743081754_18056615780522…",
"caption": "الليزر الكوري لتصغير الانف 🔥🔥🔥🔥#fypシ❤️💞❤️ #اكسبلورر #dubai #skincare #fforever",
"comments": 0,
"countsHidden": false,
"createdUtc": 1793691103,
"displayName": "Huda.altaaye",
"hashtags": [
"#fypシ❤️💞❤️"
],
"height": 1760,
"id": "4022091320108946819",
"likes": 0,
"media": [
{
"type": "photo",
"url": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-15/884648679_18085354025522…"
}
],
"mentions": []
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.posts[].url / data.posts[].shortcode | Link to the post on Instagram and its short ID. The shortcode is the part of the URL after /p/. |
data.posts[].id | Numeric ID of the post, returned as a string. |
data.posts[].caption | Caption text of the post, including its hashtags. |
data.posts[].hashtags / data.posts[].mentions | Lists of hashtags and @mentions found in the caption. Each hashtag keeps its leading #. |
data.posts[].username / data.posts[].displayName / data.posts[].userId | Handle, display name and numeric account ID of the author. displayName can be an empty string. |
data.posts[].verified / data.posts[].private | Whether the author account is verified and whether it is private. |
data.posts[].likes / data.posts[].comments | Like and comment counts at the time of the call. They are often 0 on new posts. |
data.posts[].countsHidden | true when the author hides the counts, so likes and comments of 0 do not mean no engagement. |
data.posts[].createdUtc | Publish time as a Unix timestamp in seconds. |
data.posts[].media[].type / data.posts[].media[].url | Type of each media item (such as photo) and its URL. Carousel posts list several items, and carouselCount gives the item count. |
data.posts[].productType / data.posts[].paidPartnership | Post format, such as feed or carousel_container, and whether the post is marked as a paid partnership. |
data.nextCursor as the cursor parameter in the next request to get the next page of older posts.skincare.shortcode to Instagram Post Details.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/instagram/hashtag-recent-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hashtag": "skincare"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
hashtagstring必填Hashtag to monitor, without the leading #.
cursorstringPagination cursor from a previous response's nextCursor.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Instagram | 每次呼叫 $0.0012 起 | 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
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/instagram/hashtag-recent-posts。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次起 $0.0012,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:hashtag (string)。 選填:cursor (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Instagram Hashtag Recent Posts 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Instagram API 存取權。