hashtagstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
hashtagstringobligatoireHashtag to monitor, without the leading #.
cursorstringPagination cursor from a previous response's nextCursor.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Instagram Hashtag Recent PostsCette API Instagram | À partir de $0.0012 par appel | JSON |
Instagram | À partir de $0.0011 par appel | JSON |
Instagram | À partir de $0.001 par appel | JSON |
Instagram | À partir de $0.0011 par appel | JSON |
Instagram | À partir de $0.0012 par appel | JSON |
Instagram | À partir de $0.0011 par appel | JSON |
Guides :Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/instagram/hashtag-recent-posts avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : hashtag (string). Facultatif : cursor (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Instagram Hashtag Recent Posts fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Instagram séparément.