Social media5 min readBy Purrkey teamUpdated

How to fetch an Instagram highlight by ID

Fetch one Instagram story highlight by ID and inspect its media items, timestamps and cover details before a campaign brief

On this page

You have one Instagram highlight ID from a creator list and need to audit the media inside it before a campaign brief. One call to anyapi.instagram.highlight_detail returns the highlight record and its media items in the order the upstream returned them, which is enough to check the title, the cover, the owner handle and the format of each item

The tables below are the deliverable. No run has been executed for this guide, so the values are a design, not a result

Example input and the audit worksheet

Example highlight ID: 17912345678901234. Swap it for the identifier from your own creator list

The deliverable splits into two tables. The first holds the highlight record itself, the second holds one row per media item inside it. Values here are placeholders showing the shape

foundidtitlemediaCountcreatedUtcownerHandlecoverUrlavatarUrlReviewer note
true or false(highlight id)(title text)(integer)(epoch seconds)(handle)(URL)(URL)reference, hold or skip
items[].iditems[].mediaTypeitems[].createdUtcitems[].imageitems[].videoUrlitems[].durationSecondsitems[].hasAudio
(media id)1 or 2(epoch seconds)(URL)(URL or empty)(number)true or false

The reviewer note is your own call, not a field the tool returns. Set it to reference when the title and owner handle match the creator in the brief and the item formats suit the campaign, hold when you want a second look at the media before committing, and skip when found is false

What the call takes

anyapi.instagram.highlight_detail is called through POST /v1/runs with toolId anyapi.instagram.highlight_detail. The required field is id, described in the contract as the id of the highlight to retrieve details for. Pass the highlight identifier from your source list, or the value that surfaced when you were building that list from profile data

The companion article on fetching an Instagram profile by user ID covers the profile side of the same workflow

How to read the result

found decides whether there is a record to read. When it is false, reason carries not_found and data is null. The contract states that a found: false answer is a successful call, not an error, and that costUsd is what it actually cost. Put that limit next to the step it affects: a dead ID spends a call just like a live one, so a creator list full of stale highlights costs the same as a clean one

When found is true, read title, ownerHandle, mediaCount and coverUrl before anything else. Those four decide whether the highlight belongs to the creator and the theme named in your brief

Then read the items. items arrives in the order the upstream returned them, so the first entry is not necessarily the oldest; sort on items[].createdUtc when the sequence matters. mediaType is 1 for an image and 2 for a video. Video items carry videoUrl and durationSeconds, and hasAudio says whether the media has an audio track. image is the direct URL to the highest resolution still. coverUrl and id are marked in the contract as populated whenever the provider has data for the entity, so an empty cover on a found record is a signal to check the row by hand

Timestamps are UTC epoch seconds. Multiply createdUtc or items[].createdUtc by 1000 for a JS Date in milliseconds

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch one
Instagram highlight by ID and return its details. Check the current
inputs and price of anyapi.instagram.highlight_detail before running
anything. Call the tool once for the ID below. Return two tables: a
highlight table with found, id, title, mediaCount, createdUtc,
ownerHandle, coverUrl, avatarUrl and an empty Reviewer note column, and
an item table with items[].id, items[].mediaType, items[].createdUtc,
items[].image, items[].videoUrl, items[].durationSeconds and
items[].hasAudio. If found is false, report reason and stop.

17912345678901234

For a larger audit, list one ID per line and repeat the call once per ID, keeping the same two tables

Estimated tool cost

Prices are read from the Purrkey catalog on November 13, 2026. The unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Check one highlightcalls x max price$0.0012 per call1$0.0012
Audit 25 highlightscalls x max price$0.0012 per call25$0.03

A not-found response is billed as a call, so plan 25 calls for 25 IDs whether or not each highlight exists. Model fees for the agent are not counted

Run the audit

Replace the example ID with a live one and start with a single call before working through the creator list. Open anyapi.instagram.highlight_detail to check the current input schema and price first

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Instagram.
Explore Instagram tools and pricing

FAQ

How do I fetch an Instagram highlight by ID?

Call the Instagram highlight detail tool with the highlight identifier in the required id field. The call returns the highlight record and its media items in the order the upstream returned them.

What does the Instagram highlight detail tool return?

It returns found plus data, where data holds id, title, mediaCount, createdUtc, ownerHandle, coverUrl, avatarUrl and an items array of media objects. When nothing is found, data is null and reason carries the not-found value.

What happens when the highlight ID does not exist?

The lookup returns found false with the not-found reason and data null. That response is a successful call, not an error, and it is billed as a call.

What do mediaType values on items mean?

The mediaType value 1 is an image and 2 is a video. Video items carry videoUrl and durationSeconds, and hasAudio says whether the media has an audio track.

Are the timestamps returned in seconds or milliseconds?

The createdUtc value and the createdUtc value on each item are UTC epoch timestamps in seconds. Multiply by 1000 to get a JS Date in milliseconds.

How much does it cost to audit 25 Instagram highlights?

At up to $0.0012 per call, 25 calls come to at most $0.03. A not-found response is billed as a call, so budget one call per ID whether or not the highlight exists.

Can one call return several highlights?

The tool takes a single id and returns one highlight record. Auditing 25 highlights means 25 calls with the same columns kept for each row.

Next step

Try this with Instagram

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Instagram tools

Share this article