Instagram response objects
Every object the Instagram endpoints return, field by field, named after Instagram's Graph API. Every key is there on every call: a field the platform does not show is null, and a list is empty.
instagram_profile
An Instagram account. Returned by instagram/profile.
| Field | What it is |
|---|---|
id | Instagram's numeric id for the account. |
username | Without the @. |
name | The display name. |
biography | The bio. |
website | The link in the bio. |
bio_links | Every link in the bio. |
bio_links[].title | The link's label, where it has one. |
bio_links[].url | Where the link leads. |
profile_picture_url | The profile picture. On Instagram's CDN. Instagram signs the link, and it stops working within a few days, so fetch the file soon. We do not rehost media. |
followers_count | null when the source does not give it. |
follows_count | null when the source does not give it. |
media_count | Posts on the grid. |
is_verified | Whether the account has the verified badge. |
is_private | A private account shows its counts and nothing else. |
is_business_account | A business or creator account. |
category | The label under the name, e.g. "Bakery" or "Public figure". |
business_email | Behind the Email button, where a business account shows one. |
business_phone_number | Behind the Call button. |
highlight_reel_count | Story highlights on the profile. |
instagram_search_result
An Instagram account that a search found. Call `instagram/profile` with its username for the whole account. Returned by instagram/search.
| Field | What it is |
|---|---|
username | Without the @. |
name | The display name, as the search index has it. |
url | The account's page. |
instagram_post
An Instagram post or Reel. Returned by instagram/posts, instagram/post, instagram/hashtag.
| Field | What it is |
|---|---|
id | Instagram's numeric id for the post. |
shortcode | The code in the URL, e.g. C1a2B3c4D5e. |
permalink | The post. |
media_type | As the Graph API names them. IMAGE · VIDEO · CAROUSEL_ALBUM |
media_product_type | A grid post or a Reel. FEED · REELS |
caption | The caption. |
timestamp | When it was posted. null when the source does not say. |
username | Who posted it. |
media_url | The image, or the video file. A carousel's first item. On Instagram's CDN. Instagram signs the link, and it stops working within a few days, so fetch the file soon. We do not rehost media. |
thumbnail_url | The cover of a video. On Instagram's CDN. Instagram signs the link, and it stops working within a few days, so fetch the file soon. We do not rehost media. |
children | A carousel's items, in order. Empty for a single image or video. |
children[].media_type | An image or a video. IMAGE · VIDEO |
children[].media_url | The image, or the video file. On Instagram's CDN. Instagram signs the link, and it stops working within a few days, so fetch the file soon. We do not rehost media. |
video_duration | Seconds. |
like_count | null when the owner has hidden it. |
comments_count | null when the source does not give it. |
view_count | Views, for videos and Reels. |
hashtags | The caption's hashtags, without the #. |
mentions | The usernames the caption mentions, without the @. |
location | The location tag. |
location.id | Instagram's id for the location. |
location.name | The place's name, as the tag shows it. |
is_paid_partnership | Whether it carries the "Paid partnership" label. null where that is not known. |
instagram_comment
A comment on an Instagram post. Returned by instagram/comments.
| Field | What it is |
|---|---|
id | Instagram's id for the comment. |
media_id | The post it is on. |
parent_id | The comment it replies to. null for a top-level comment. |
username | Who wrote it, without the @. |
text | null for a comment with no words, such as a GIF. |
timestamp | null when the source does not say. |
like_count | null when the source does not give it. |
reply_count | null when the source does not give it. |