Skip to content
Endless Documentation
Social

Instagram user highlights

POST
/social/instagram_user_highlights

List an account's Instagram highlights (the permanent story collections pinned on the profile) by @username. Returns each highlight's id (pk), title, story count, and cover image; fetch the stories inside one with instagram_highlight_stories.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: social:query

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
  1. body
organization_id*string
Match^org_
max_credits?integer

Refuse the call when its quoted ceiling exceeds this many credits.

Range-9007199254740991 <= value <= 9007199254740991
tool_call_id?|

The tool call behind this read, for the ledger. Every read that runs is billed, a repeated id too.

conversation_id?|

The chat this call belongs to, for cost attribution.

message_id?|

The chat turn this call belongs to, for cost attribution.

run_lock?boolean

The chat turn holds its conversation's run lock: the read is refused once the turn no longer does (it was stopped).

input*

Response Body

OK

application/json
  1. response
operation*string

Operation name — see the operations catalog.

Value in"instagram_profile""instagram_user_posts""instagram_user_reels""instagram_user_stories""instagram_user_highlights""instagram_highlight_stories""instagram_post""instagram_post_comments""instagram_search""instagram_hashtag_posts""tiktok_profile""tiktok_user_posts""tiktok_post""tiktok_post_comments""tiktok_search""tiktok_hashtag_posts""tiktok_music_posts""tiktok_trending""tiktok_trend_scan""linkedin_profile""linkedin_company""linkedin_user_posts""linkedin_company_posts""linkedin_post""linkedin_search_people""linkedin_search_posts""linkedin_ads""youtube_channel""youtube_channel_videos""youtube_channel_playlists""youtube_channel_shorts""youtube_video""youtube_search""youtube_trending""facebook_page""facebook_page_posts""facebook_page_reels""facebook_post""facebook_post_comments""facebook_group""facebook_group_posts""facebook_search""reddit_search""reddit_subreddit_posts""reddit_post""reddit_post_comments""x_search""x_profile""x_user_posts""x_post""x_post_comments""x_user_connections""x_tweet_engagers""x_trends""threads_profile""threads_user_posts""threads_search""meta_ads_advertisers""meta_ads_page_ads""meta_ads_search""resolve_mention"
result*
requests*integer
Range0 <= value <= 9007199254740991
credits_charged*integer
Range0 <= value <= 9007199254740991
Example Request
curl -X POST 'https://api.endless.app/social/instagram_user_highlights' \  -H 'Content-Type: application/json' \  -d '{  "organization_id": "string",  "input": {    "username": "string"  }}'
Example Response
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "username": "string",    "items": [      {        "pk": "string",        "id": "string",        "title": "string",        "media_count": 0,        "created_at": 0,        "cover_url": "string"      }    ]  },  "requests": 0,  "credits_charged": 0}

Instagram search POST

Search Instagram posts by keyword, mostly reels plus some photos and carousels — what people, not just the official account, are posting about an event, brand, person or topic. Results are ranked by relevance, not date, and match captions and hashtags: a post whose caption never names the term won't appear. For social listening, run a few queries (the event name, the official @account, the featured people together with the event) and read the official account's own feed with `instagram_user_reels`.

Instagram user posts POST

Use when the user asks for top/most-liked/most-viewed/most-commented posts (e.g. 'top post of the week'). Returns recent Instagram posts (newest first) with engagement counts; sort and filter by `taken_at` (Unix seconds). For a VIDEO or date-range question prefer `instagram_user_reels`, which pages back more reliably; use this one for photos and carousels or a mixed feed. Also read this BEFORE writing copy in an account's voice: `caption_text` carries the voice and the engagement counts carry what actually landed, so the default `limit` of 12 is usually enough, and one read per account per conversation covers a whole thread of revisions. If a date window you chose returns no items, retry once without date filters before drafting; preserve any source period the user requested. If results are still empty or thin, say so — don't fall back to `web_search` and write from the open web, which is what produces the generic voice an account rejects. For a date range pass `since` and `until` rather than a large item cap — plus `tz`, the user's timezone, so the days are cut on THEIR calendar. The walk pages back until it reaches that date, and the tool returns a `totals` block (posts, views, likes, comments, engagement_rate) computed over exactly that window. Quote those numbers; never add up the rows yourself. Before reporting a total, read these four fields — each one exists because ignoring it produced a wrong report: - `partial: true` — the walk stopped early, so this is a FLOOR, not a measurement. Say so, or re-run; never present it as the period's total. - `overlaps` — names a sibling feed returning the SAME pieces. Report one feed or the other; adding both counts every piece twice. - `views_metric` — which upstream number `views` came from. Two feeds on one platform can report different values for the same piece, so only compare or combine totals whose `views_metric` matches. - `measured_at` — when it was read. Live counts move fast; state it whenever you report a total, and never explain a difference between two runs as a mistake before checking whether the pieces simply gained views between them. COVERING MORE THAN ONE ACCOUNT OR FEED: never add these totals in your head. Each result carries a `receipt` — a TSV block with the same five columns on every platform. Paste the receipts into `run_code` and total them there: dedupe on (platform, id) so a piece returned by two feeds is counted once, keep an empty field as missing rather than 0, and only add views across receipts whose `views_metric` matches. Report the code's number, not a retyped one, and hand back the per-piece list so the total can be checked by hand.