hashtagstringwajib
Hashtag to fetch, without the leading #.
https://api.sandbase.ai/v1/api/instagram/hashtag-top-postsInstagram's own top-ranked posts for a hashtag, read from its live hashtag feed rather than a web search index, with view, like, and comment counts. Reels-heavy and engagement-ranked, so it answers what is performing on a tag right now. For older relevance-ranked results with date and media-type filters use instagram.search_hashtag; for the chronological feed use instagram.hashtag_recent_posts.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
This API returns Instagram's top-ranked posts for a hashtag, with view, like and comment counts, caption, author and media links. It needs one input: the hashtag without the leading #.
skincare right now.verified status and engagement.paidPartnership posts and coauthors to see which brands and creators work together on a tag.curl -X POST "https://api.sandbase.ai/v1/api/instagram/hashtag-top-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 fetch, without the leading #. |
cursor | string | No | Pagination cursor from a previous response's nextCursor. |
requireFields | array | No | 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 soundTitle, and it is served only by a source that returns every one |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"nextCursor": "cur_M2mp1YOlZVB0gi39vnq42Q",
"posts": [
{
"audioId": null,
"avatarUrl": "https://scontent-lax3-2.cdninstagram.com/v/t51.82787-19/834902873_18632884252018โฆ",
"caption": "โจ\tุงูุฏูุชูุฑุฉ ุณูู
ู ุงูู
ูุฌุฏ \n#ู
ูุชูู_ุจูููุณูู_ุงูุงูู \nโ#Skincare\nโ#Bioxcin\n#ุทุจ_ุงูุฌูุฏ #ุงูโฆ",
"coauthors": [
{
"avatarUrl": "https://scontent-lax3-2.cdninstagram.com/v/t51.82787-19/843548250_18093856043450โฆ",
"userId": "43522946622",
"username": "lets_care_group"
}
],
"comments": 112,
"createdUtc": 1793555863,
"durationSeconds": 69.61100006103516,
"hashtags": [
"#ู
ูุชูู_ุจูููุณูู_ุงูุงูู"
],
"id": "4020960450613865690",
"likes": 935,
"locationId": null,
"locationLat": null
}
]
},
"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[].views / likes / comments | View, like and comment counts for the post. |
data.posts[].caption | Caption text of the post. The hashtags list holds the hashtags found in it. |
data.posts[].username / verified / avatarUrl | Author's handle, whether the account is verified, and a link to a small profile picture. |
data.posts[].createdUtc | Post creation time as a Unix timestamp in seconds. |
data.posts[].productType / durationSeconds | Post format (for example clips for Reels) and the video length in seconds. |
data.posts[].media[].type / url / videoUrl | Media type, a preview image link, and a video file link for video posts. |
data.posts[].soundTitle / soundAuthor / audioId | Audio name, audio author and audio ID. These can be null when the post has no audio data. |
data.posts[].coauthors[].username / userId | Accounts listed as co-authors of the post. The list is empty when there are none. |
data.posts[].locationName / locationLat / locationLng | Place name and coordinates tagged on the post. All are null when no location is set. |
data.nextCursor as cursor in the next request to get more posts.hashtag value without the #, for example skincare.Billed at the actual cost of each call, about $0.0011 for the request above. Failed calls are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/hashtag-top-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hashtag": "skincare"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
hashtagstringwajibHashtag to fetch, without the leading #.
cursorstringPagination cursor from a previous response's nextCursor.
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `soundTitle`, 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 post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Instagram Hashtag Top PostsAPI ini Instagram | Dari $0.0011 per panggilan | JSON |
Instagram | Dari $0.0011 per panggilan | JSON |
Instagram | Dari $0.001 per panggilan | JSON |
Instagram | Dari $0.0011 per panggilan | JSON |
Instagram | Dari $0.0012 per panggilan | JSON |
Instagram | Dari $0.0011 per panggilan | JSON |
Panduan:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/instagram/hashtag-top-posts dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0011 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: hashtag (string). Opsional: cursor (string) dan requireFields (array). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Instagram Hashtag Top Posts berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Instagram secara terpisah.