Instagram Data
v0.1.8Read-only public Instagram data: profiles, posts, reels, stories, comments, top-accounts ranking.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
instagram_profile
Get an Instagram profile. Follower, following and post counts, bio, links, category, verification and the profile picture of any public account. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_user_id
Instagram username to user id. The numeric user id for a handle. Every endpoint also accepts either one directly, so you rarely need this. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_username
Instagram user id to username. The current handle for a numeric user id, which still works after the account renames itself. Cost: 2 credits.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | Numeric Instagram user id. Pass this or username. |
instagram_check
Check if an Instagram handle exists and is public. Does this handle exist, and is it public? States: ok, not_found, private, deactivated, memorialized, age_restricted, restricted_minor. Exact match only, so a typo never resolves to someone else. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
username * | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_posts
Get recent Instagram posts. 12 posts per page, newest first, with likes, comments, views, caption and media URLs. Page with cursor. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page of the same request. |
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_reels
Get an account's Instagram reels. The reels tab of a public account: play counts, likes, comments, captions and video URLs. Page with cursor. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page of the same request. |
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_tagged
Get posts an account is tagged in. Public posts by other accounts that tag this account. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page of the same request. |
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_post
Get one Instagram post or reel. Likes, comments, views, caption, owner and media URLs for a single post, reel or IGTV video. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
shortcode | string | The code in the post URL (instagram.com/p/<code>/). |
url | string | Post, reel or IGTV URL. Pass this or shortcode. |
instagram_media
Download URLs for a post, reel or carousel. Direct image and video file URLs for every slide of a post, in the best quality available. URLs are signed Instagram CDN links that expire after a few hours. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
shortcode | string | The code in the post URL (instagram.com/p/<code>/). |
url | string | Post, reel or IGTV URL. Pass this or shortcode. |
instagram_comments
Get comments on an Instagram post. The top comments on a post with author, text, time, likes and reply count, plus the total comment count. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
shortcode | string | The code in the post URL (instagram.com/p/<code>/). |
url | string | Post, reel or IGTV URL. Pass this or shortcode. |
instagram_comment_replies
Get replies to an Instagram comment. Replies under one comment. Page with cursor. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
comment_id * | string | id of a comment from /v1/comments. |
cursor | string | next_cursor from the previous page of the same request. |
shortcode | string | The code in the post URL (instagram.com/p/<code>/). |
url | string | Post, reel or IGTV URL. Pass this or shortcode. |
instagram_likers
Get accounts that liked an Instagram post. A sample of accounts that liked a public post, plus the total like count. One page per call with no cursor, so it is not the full list of likers. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
shortcode | string | The code in the post URL (instagram.com/p/<code>/). |
url | string | Post, reel or IGTV URL. Pass this or shortcode. |
instagram_insights
Instagram engagement rate calculator. Engagement rate (mean and median), posting cadence, format mix, best posting hours (UTC) and a percentile against the Instagram Benchmarks report, from the latest 12 posts. Pinned posts are excluded. Cost: 2 credits.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_followers
Get an account's followers. One page of the accounts that follow a public account, with the total follower count. Pass next_cursor back as cursor for the next page; null means no more pages are available. Private accounts return 422 private_account. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page of the same request. |
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_following
Get accounts an account follows. One page of the accounts a public account follows, with the total. Pass next_cursor back as cursor for the next page; null means no more pages are available. Private accounts return 422 private_account. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page of the same request. |
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_similar
Find similar Instagram accounts. Accounts Instagram considers related to this one. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_stories
View Instagram stories anonymously. Stories posted in the last 24 hours by a public account, with image and video URLs. Signed CDN links that expire after a few hours. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_highlights
Get Instagram story highlights. Title, cover image and item count for each highlight. Pass an id to /v1/highlight for its items. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
user_id | string | Numeric Instagram user id. Pass this or username. |
username | string | Instagram handle, with or without @. A profile URL also works. Pass this or user_id. |
instagram_highlight
Get the items in one highlight. Every photo and video inside one highlight, with signed CDN URLs. Costs 3 credits the first time for an account; more highlights of the same account are free for 15 minutes. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
id * | string |
instagram_search
Search Instagram accounts, hashtags and places. Matching accounts, hashtags (with post counts) and places (with location ids). Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search text. |
instagram_hashtag
Get posts for an Instagram hashtag. Recent posts under a hashtag and its total post count. Page with cursor. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
tag * | string | Hashtag, with or without #. |
cursor | string | next_cursor from the previous page of the same request. |
instagram_place
Get an Instagram location. Name, category, address, city, phone, website and post count of a location page. Find ids with /v1/search. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
id * | string | Numeric location id. |
instagram_place_posts
Get posts tagged at an Instagram location. Recent posts geotagged at a location. Page with cursor. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
id * | string | Numeric location id. |
cursor | string | next_cursor from the previous page of the same request. |
instagram_audio
Get an Instagram audio track and the reels using it. Title, artist, duration and a preview URL for an original sound or song, plus reels that use it. Audio ids come from reels. Cost: 1 credit.
| Parameter | Type | Description |
|---|---|---|
id * | string | Numeric audio id. |
instagram_audio_search
Search Instagram music and sounds. Find songs and sounds by title or artist, with ids you can pass to /v1/audio. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search text. |
instagram_reels_search
Search Instagram reels by keyword. Reels matching a keyword. Page with cursor. Cost: 3 credits.
| Parameter | Type | Description |
|---|---|---|
q * | string | Search text. |
cursor | string | next_cursor from the previous page of the same request. |
instagram_top_accounts
Most-followed Instagram accounts, gainers and losers. The same data as fastsocial.co/most-followed-instagram-accounts (Instagram Top Charts): the biggest notable public Instagram accounts ranked by followers, updated daily, with 1, 7 and 30-day follower changes, country, category and projected milestones. Free (0 credits); needs any API key. Data CC BY 4.0: credit FastSocial and link the source. Cost: 0 credits.
| Parameter | Type | Description |
|---|---|---|
category | string | Account category. |
country | string | Two-letter country code (ISO 3166-1), e.g. US, BR, IN. |
limit | integer | Accounts per page (max 100). |
offset | integer | Skip this many accounts (paging). |
sort | string | followers = biggest accounts; gainers / losers = biggest follower change over window; milestones = soonest projected round-number milestone. |
window | integer | Change period in days for gainers / losers. Defaults to the longest period with enough history. |
instagram_usage
Your usage this month. Free (0 credits).