Skip to content
Endless Documentation

Instagram hashtag posts

POST
/social/instagram_hashtag_posts

Get an Instagram hashtag's top posts — photos, carousels and reels. Instagram's own ranking, not chronological, and it mixes in years-old posts and unrelated uses of the same tag: check each post's taken_at and caption before counting it. For reels about a topic, instagram_search is more on-topic.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/social/instagram_hashtag_posts" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "hashtag": "string"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "hashtag": "string",    "count": -9007199254740991,    "truncated": true,    "items": [      {        "pk": "string",        "id": "string",        "code": "string",        "media_type": 0,        "product_type": "string",        "taken_at": 0,        "like_count": 0,        "comment_count": 0,        "play_count": 0,        "view_count": 0,        "permalink": "string",        "caption_text": "string",        "image_url": "string",        "carousel_image_urls": [          "string"        ],        "author": "string"      }    ]  },  "requests": 0,  "credits_charged": 0}