Instagram Basic Display API replacement: public profiles, posts and Reels without app review

Updated

Meta shut down the Instagram Basic Display API on December 4, 2024, and its official replacement only serves Business and Creator accounts that log in to your app. To keep showing a public account's profile, posts and Reels without a Meta app, app review or the owner's login, read them from a public data API such as Bridgly. A feed of 24 posts and 12 Reels takes 6 requests per refresh, at 1 credit each.

Get 100 free credits with a business email, no card required. That covers more than 15 refreshes of the feed built in this guide.

The Instagram Basic Display API was the easy way to read an Instagram account: a token, one call to /me/media, and a list of posts with their images, captions and links. Portfolio sites, link-in-bio pages, Shopify themes, WordPress widgets and creator tools ran on it. When Meta switched it off, every one of those integrations started returning errors, and the accounts behind many of them are personal accounts that the replacement does not serve at all.

This guide replaces Basic Display with a sync script you own. It looks up any public Instagram account, fetches its newest posts and Reels, writes them to a JSON file with Basic Display's field names so your front end barely changes, and copies the images and videos to your own storage so they keep loading. Then it prices the job and compares it with Meta's remaining options and other providers.

What happened to the Basic Display API

Meta announced on September 4, 2024 that the Basic Display API would stop working on December 4, 2024, and that every request would fail from that day. The same notice said there would no longer be any set of Instagram APIs for consumer apps. Meta pointed business use cases to the Instagram API with Instagram Login or with Facebook Login.

The call your integration made, and still makes if nobody changed it, looked like this:

bash
# What a Basic Display integration called. It fails for every app today.
curl "https://graph.instagram.com/me/media?fields=id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username&access_token=IGQVJ..."

The Instagram Platform overview explains why the official replacement is not a drop-in swap:

  • Professional accounts only. Every account your app reads must be a Business or Creator account. Personal accounts, which Basic Display served, are out.
  • The owner has to log in. A permission only covers data created by the user who granted it. You cannot read an account just because it is public.
  • App review and Business Verification. Serving accounts that you do not own or manage needs Advanced Access, which requires both.
  • Tokens to keep alive. Long-lived tokens last 60 days and must be refreshed before they expire, or the feed stops.

If your app connects accounts whose owners will switch to a professional account and log in, the Instagram API with Instagram Login is the official path, and it is free. If you show accounts you do not control, such as creators on a directory, a brand's ambassadors or a client's competitors, or the owner simply will not reconnect every 60 days, you need a source that reads public data.

Your options after Basic Display

Prices and limits come from each vendor’s own pages, checked on December 3, 2026, in USD.

OptionWhich accountsWhat you needCostGood to know
BridglyAny public account, personal, Creator or BusinessOne API key. No Meta app, review or owner login.$1.67 to $2.00 per 1,000 requests, one-time creditsProfiles, posts, Reels, comments, Stories and more on one key. Read-only.
Instagram API with Instagram LoginBusiness and Creator accounts that log in to your appA Meta app, the owner’s login, App Review and Business Verification for accounts you do not manageFreeOfficial. Also publishes, moderates comments, handles messages and reads insights.
Business DiscoveryOther Business and Creator accountsYour own professional account, connected through Facebook Login or Unified LoginFreeBasic metadata and media of other professional accounts. Omits media_url for videos with licensed audio.
oEmbedSingle public posts and Reels, by URLNo token in Meta’s sample requestFree, up to 1,000 requests an hourReturns embed HTML only. No feed listing, and Meta forbids storing or analyzing the metadata.
BeholdBusiness and Creator accounts whose owner connects themThe owner connects the account to BeholdFree for 1,200 views a month, paid plans $10 to $60 a monthHosted widget and JSON feed with no code to run.
HikerAPIPublic accountsOne API key$20 per 1,000 requests on Start, $1 on Standard with a $100 balance, $0.60 at the top tierInstagram only. Charges for 400, 403 and 404 responses.
ScrapeCreatorsPublic accountsOne API key$47 for 25,000 credits, $497 for 500,000Covers many social platforms. Credits never expire.

Meta's own options cost nothing but depend on the account owner. The public data APIs read any public account with no one logging in, which is closest to what Basic Display felt like for a site showing its own or a client's feed.

Basic Display fields and where they come from now

Basic Display's media object had nine fields and a children edge for carousel albums. Here is where the ones a feed uses come from in Bridgly, and what the sync script below names it in its output, so code that read the old response keeps working.

Basic Display fieldBridgly sourceIn the synced feed
idid on each post and Reelid
usernameusername from the profile lookupusername
captioncaptioncaption
media_type: IMAGE, VIDEO, CAROUSEL_ALBUMtype: Image, Video, Carouselmedia_type, mapped to the old values
media_urldisplay_url for images, video_url for videosmedia_url, pointing at your own copy
thumbnail_url, videos onlydisplay_url of a videothumbnail_url, pointing at your own copy
permalinkurl on posts, built from shortcode for Reelspermalink
timestamp, ISO 8601timestamp, Unix secondstimestamp, converted to ISO 8601
User account_type, media_countis_business_account, is_professional_account, posts_countaccount_type, media_count
Not availablelikes, comments, view and play counts, followers, biolike_count, comments_count, view_count, followers_count, biography

Two differences to plan for. The profile and post lists return the cover image of a carousel, not each slide, so children has no counterpart in the feed today. And Basic Display served each Reel as a VIDEO. Bridgly also lists Reels from the profile’s Reels tab, including Reels that never appeared on the grid, and the script marks them with is_reel.

The workflow: profile, posts and Reels, media copies, feed file

  1. Look up the profile by username or link. This replaces the /me call, works for personal accounts, and tells you up front if an account is private.
  2. List the newest posts and the newest Reels at the same time, 10 per request, with the SDK following the cursor.
  3. Merge both lists, drop duplicates by ID, map each item to the Basic Display shape and sort newest first.
  4. Copy every image, video and the profile picture to your own storage. A sync only downloads media it has not copied before.
  5. Write one JSON file per account, which your site reads instead of graph.instagram.com.
  6. Run it on a schedule. An account that fails keeps its previous file.

Set up

You need Node.js 20 or later and a Bridgly API key. Create a free account, copy a key from the dashboard, and install the TypeScript SDK:

bash
npm install @bridgly/sdk
npm install --save-dev tsx
export BRIDGLY_API_KEY=bgly_...

The sync script

Save this as sync-instagram-feeds.mts in your site’s project and pass the accounts to sync, for example npx tsx sync-instagram-feeds.mts natgeo nasa. For each account it writes public/instagram/<username>.json and copies the media into public/instagram/<username>/, which most static site setups serve as-is.

TypeScript
// sync-instagram-feeds.mts
// Run: npx tsx sync-instagram-feeds.mts natgeo nasa
import {
type ApiResult,
Bridgly,
type InstagramUserPostsResponse,
type InstagramUserReelsResponse,
type InstagramUserResponse,
} from '@bridgly/sdk';
import { access, mkdir, writeFile } from 'node:fs/promises';
type Profile = InstagramUserResponse['data'];
type Post = InstagramUserPostsResponse['data']['posts'][number];
type Reel = InstagramUserReelsResponse['data']['posts'][number];
type MediaType = 'IMAGE' | 'VIDEO' | 'CAROUSEL_ALBUM';
/** One item in the shape Basic Display's media endpoint returned, plus counts. */
type FeedMedia = {
id: string;
caption: string | null;
media_type: MediaType;
media_url: string | null;
thumbnail_url: string | null;
permalink: string;
timestamp: string | null;
username: string;
is_reel: boolean;
like_count: number | null;
comments_count: number | null;
view_count: number | null;
};
/** What your site reads: the account, then its newest posts and Reels. */
type Feed = {
id: string;
username: string;
account_type: 'BUSINESS' | 'MEDIA_CREATOR' | 'PERSONAL';
media_count: number;
followers_count: number;
biography: string;
profile_picture_url: string | null;
synced_at: string;
media: FeedMedia[];
};
type SyncResult =
| { type: 'synced'; feed: Feed; credits: number }
| { type: 'skipped'; username: string; reason: string; credits: number };
const client = new Bridgly({ apiKey: process.env.BRIDGLY_API_KEY ?? '' });
const usernames = process.argv.slice(2);
const POSTS_PER_ACCOUNT = 24;
const REELS_PER_ACCOUNT = 12;
const PUBLIC_DIR = 'public';
const MEDIA_TYPES: Record<Post['type'], MediaType> = {
Image: 'IMAGE',
Video: 'VIDEO',
Carousel: 'CAROUSEL_ALBUM',
};
/** Basic Display's account_type for a profile. */
function accountTypeOf(profile: Profile): Feed['account_type'] {
if (profile.is_business_account) return 'BUSINESS';
if (profile.is_professional_account) return 'MEDIA_CREATOR';
return 'PERSONAL';
}
/** Unix seconds as the ISO 8601 string Basic Display used. */
function isoTime(seconds: number | null | undefined): string | null {
return seconds == null ? null : new Date(seconds * 1000).toISOString();
}
/** A grid post as a Basic Display media object. */
function fromPost(post: Post, username: string): FeedMedia {
const isVideo = post.type === 'Video';
return {
id: post.id,
caption: post.caption ?? null,
media_type: MEDIA_TYPES[post.type],
media_url: (isVideo ? post.video_url : post.display_url) ?? null,
thumbnail_url: isVideo ? (post.display_url ?? null) : null,
permalink: post.url,
timestamp: isoTime(post.timestamp),
username,
is_reel: false,
like_count: post.likes,
comments_count: post.comments,
view_count: post.video_view_count ?? null,
};
}
/** A Reel as a Basic Display media object. Reels without a link are dropped. */
function fromReel(reel: Reel, username: string): FeedMedia[] {
if (reel.shortcode == null) return [];
return [
{
id: reel.id,
caption: reel.caption ?? null,
media_type: reel.type == null ? 'VIDEO' : MEDIA_TYPES[reel.type],
media_url: reel.video_url ?? null,
thumbnail_url: reel.display_url ?? null,
permalink: `https://www.instagram.com/reel/${reel.shortcode}/`,
timestamp: isoTime(reel.timestamp),
username,
is_reel: true,
like_count: reel.likes ?? null,
comments_count: reel.comments ?? null,
view_count: reel.play_count ?? reel.video_view_count ?? null,
},
];
}
/** Credits spent by a set of calls. Failed calls cost nothing. */
function creditsOf(results: ApiResult<unknown>[]): number {
return results.reduce(
(sum, result) => sum + (result.type === 'success' ? result.creditsCost : 0),
0,
);
}
/**
* Copies a file from Instagram's CDN into PUBLIC_DIR and returns the path your
* site serves it at. Instagram's links stop working after a while; your copy
* does not. With `reuse`, a file copied by an earlier sync is kept as it is.
*/
async function copyMedia({
url,
file,
reuse,
}: {
url: string | null;
file: string;
reuse: boolean;
}): Promise<string | null> {
if (url == null) return null;
const target = `${PUBLIC_DIR}/${file}`;
const copied = await access(target).then(
() => true,
() => false,
);
if (reuse && copied) return `/${file}`;
const response = await fetch(url);
if (!response.ok) return null;
await writeFile(target, Buffer.from(await response.arrayBuffer()));
return `/${file}`;
}
/** Points an item's media at your own copies instead of Instagram's CDN. */
async function withCopiedFiles(item: FeedMedia): Promise<FeedMedia> {
const base = `instagram/${item.username}/${item.id}`;
const extension = item.media_type === 'VIDEO' ? 'mp4' : 'jpg';
const [mediaUrl, thumbnailUrl] = await Promise.all([
copyMedia({
url: item.media_url,
file: `${base}.${extension}`,
reuse: true,
}),
copyMedia({
url: item.thumbnail_url,
file: `${base}-thumb.jpg`,
reuse: true,
}),
]);
return { ...item, media_url: mediaUrl, thumbnail_url: thumbnailUrl };
}
/** Builds and writes the feed of one public account. */
async function syncAccount(input: string): Promise<SyncResult> {
// 1. Look up the profile: Basic Display's /me, for any public account.
const lookup = await client.instagram.getUser({ username: input });
if (lookup.type === 'error') {
const reason = `${lookup.status} ${lookup.message}`;
return { type: 'skipped', username: input, reason, credits: 0 };
}
const profile = lookup.data;
const username = profile.username;
if (profile.is_private) {
const reason = 'private account';
return { type: 'skipped', username, reason, credits: lookup.creditsCost };
}
// 2. Fetch the newest grid posts and Reels side by side.
const [posts, reels] = await Promise.all([
client.instagram.getUserPosts({
username,
count: POSTS_PER_ACCOUNT,
pagination: true,
}),
client.instagram.getUserReels({
username,
count: REELS_PER_ACCOUNT,
pagination: true,
}),
]);
const credits = lookup.creditsCost + creditsOf([posts, reels]);
if (posts.type === 'error' && reels.type === 'error') {
const reason = `posts: ${posts.message}; reels: ${reels.message}`;
return { type: 'skipped', username, reason, credits };
}
// 3. Merge into one list. A Reel that is also on the grid keeps its Reel
// entry, which carries the play count.
const items = [
...(posts.type === 'success'
? posts.data.posts.map((post) => fromPost(post, username))
: []),
...(reels.type === 'success'
? reels.data.posts.flatMap((reel) => fromReel(reel, username))
: []),
];
const newestFirst = [
...new Map(items.map((item) => [item.id, item])).values(),
].toSorted((a, b) => (b.timestamp ?? '').localeCompare(a.timestamp ?? ''));
// 4. Copy images and videos to your own storage. Only new media downloads.
await mkdir(`${PUBLIC_DIR}/instagram/${username}`, { recursive: true });
const media = await Promise.all(newestFirst.map(withCopiedFiles));
const avatar = await copyMedia({
url: profile.profile_pic_url_hd ?? profile.profile_pic_url ?? null,
file: `instagram/${username}/avatar.jpg`,
reuse: false,
});
// 5. Write the feed your site reads instead of graph.instagram.com.
const feed: Feed = {
id: profile.id,
username,
account_type: accountTypeOf(profile),
media_count: profile.posts_count,
followers_count: profile.followers,
biography: profile.biography ?? '',
profile_picture_url: avatar,
synced_at: new Date().toISOString(),
media,
};
await writeFile(
`${PUBLIC_DIR}/instagram/${username}.json`,
JSON.stringify(feed, null, 2),
);
return { type: 'synced', feed, credits };
}
const results = await Promise.all(usernames.map(syncAccount));
console.table(
results.map((result) =>
result.type === 'synced'
? {
account: result.feed.username,
items: result.feed.media.length,
reels: result.feed.media.filter((item) => item.is_reel).length,
status: 'synced',
credits: result.credits,
}
: {
account: result.username,
items: 0,
reels: 0,
status: result.reason,
credits: result.credits,
},
),
);
console.log(`Credits used: ${results.reduce((sum, r) => sum + r.credits, 0)}`);

How the script works

The profile comes first. A missing or renamed account fails here at no cost, and a private account costs one credit instead of a full sync. The lookup also returns the canonical username, so you can pass a profile link and still get clean file names.

Posts and Reels load in parallel. With pagination: true and count: 24, the SDK fetches pages of 10 until it has 24 posts, and adds up creditsCost across them. The SDK sends at most two requests per platform at a time by default, queues the rest, and retries a request rejected with a 429 after the wait the API asks for. Rejected requests cost nothing. If you sync many accounts on a larger package, raise maxConcurrency in the client options to match your rate limit.

Media is copied, not hotlinked. The image and video links Instagram serves are signed CDN URLs, and Meta notes that they stop returning media once it is deleted or the link expires. Basic Display integrations hit the same problem, which is why many refetched on every page view. Copying each file once, under the post's ID, means your page never shows a broken image, and later syncs skip the download. If you host media in S3 or R2 instead of public/, swap writeFile in copyMedia for your storage client.

A failed sync never empties a feed. If both lists fail for an account, the script skips it and leaves last run’s JSON in place. If only one list fails, the feed is written with the other, and the next run fills the gap.

Run it on a schedule and point your site at it

Basic Display tokens needed a refresh every 60 days. Here the only thing to schedule is the sync itself. A cron entry, a GitHub Actions schedule or a serverless cron all work:

bash
# Refresh the feeds every 6 hours. Your site keeps serving the last
# good copy if a sync fails, because a failed account is not rewritten.
0 */6 * * * cd /srv/my-site && BRIDGLY_API_KEY=bgly_... npx tsx sync-instagram-feeds.mts natgeo nasa >> sync.log 2>&1

On the front end, replace the Graph API call with a read of the synced file. The field names are the ones your template already uses:

JavaScript
// Before: fetch(`https://graph.instagram.com/me/media?fields=...&access_token=${token}`)
// After: read the file the sync wrote. Same field names, no token.
const response = await fetch('/instagram/natgeo.json');
const feed = await response.json();
const latest = feed.media.slice(0, 9);

Because the file holds counts Basic Display never returned, you can now show likes and views next to each post, or sort a grid by engagement. To pull the comments under a post as well, add a call to post comments with the post's shortcode. For a single post or Reel from a link, get post returns the same fields.

What the replacement costs

Every Instagram endpoint costs 1 credit per request. One sync of one account is 1 profile lookup, 3 pages of posts and 2 pages of Reels: 6 credits. Downloading the media from Instagram's CDN costs nothing, and errors, missing accounts and rate-limited requests are free. The table assumes a 30-day month.

Sync planCredits a monthPay as you go ($2.00 / 1,000)Growth ($1.82 / 1,000)Scale ($1.67 / 1,000)
5 accounts, once a day900$1.80$1.64$1.50
20 accounts, every 6 hours14,400$28.80$26.18$24.00
100 accounts, every 6 hours72,000$144.00$130.91$120.00

Credits are one-time purchases with no subscription, and purchased credits never expire. Pay as you go starts at $5. To spend less, sync less often: most portfolio and brand feeds change a few times a week, so a daily sync shows new posts within a day at a quarter of the cost of a 6-hour schedule. Lowering POSTS_PER_ACCOUNT to 10 saves two more credits per sync. See pricing for every package.

Where Bridgly is not the best fit

  • Publishing, comment replies, DMs and insights. Bridgly reads public data. To post, reply, message or see reach and impressions for an account you manage, use the Instagram API with Instagram Login.
  • Private accounts. Bridgly returns public data only. A private account’s posts are visible only to the followers it approved.
  • A no-code widget for a professional account you own. Behold and similar hosted feeds connect the account once and give you a widget, with no script to run.
  • Very high volumes on Instagram alone. At its top tiers HikerAPI charges $0.60 to $1 per 1,000 requests, below Bridgly's $1.67. Bridgly's key also covers the other social platforms it supports.

Beyond a feed: what else Basic Display could not do

Basic Display only ever read the account that logged in. With a public data API, the same key reads other accounts, which opens jobs the old API never allowed:

  • Creator directories and link-in-bio tools. Show any creator’s latest posts and Reels at signup, without asking them to connect Instagram and reconnect every 60 days.
  • Brand and agency dashboards. Track a client’s competitors next to the client, with likes, comments and Reel plays per post.
  • Audience and comment research. Page through followers or comments of any public account. The free Instagram profile viewer and comment viewer show what each call returns before you write code.
  • AI agents. Connect the Bridgly MCP server to Claude, Cursor or another assistant and ask for an account's latest Reels in plain language.

For a wider look at Instagram data providers, see the best Instagram APIs compared, and browse every Instagram endpoint Bridgly offers.

Start with 100 free credits, run the sync script on the account your old integration showed, and point your site at the JSON file. Compare credit packages when you add more accounts.

Frequently asked questions

Is the Instagram Basic Display API still available?

No. Meta switched it off on December 4, 2024, and every request to it fails. Meta also stated that there is no longer a set of Instagram APIs for consumer apps.

What replaced the Instagram Basic Display API?

Meta points developers to the Instagram API with Instagram Login or with Facebook Login. Both serve only Business and Creator accounts that log in to your app, and reading accounts you do not manage needs App Review and Business Verification. For public profiles, posts and Reels of any account, including personal ones, developers use public data APIs such as Bridgly.

Can I still show posts from a personal Instagram account on my website?

Not through Meta’s APIs, which no longer serve personal accounts. If the account is public, Bridgly returns its profile, posts and Reels from the username alone, and the sync script in this guide writes them to a JSON file your site can read.

Do I need Meta app review to use Bridgly?

No. There is no Meta developer app, Facebook Page, access token or permission review. Requests take a Bridgly API key and an Instagram username or link.

Why do Instagram image links stop working after a while?

Instagram serves media from signed CDN links that expire and that stop working once a post is deleted. Copy each image and video to your own storage when you sync, as the script in this guide does, so your page never shows a broken image.

How much does it cost to replace Basic Display with Bridgly?

A feed of 24 posts and 12 Reels costs 6 credits per sync. Syncing 5 accounts once a day uses 900 credits a month, which is $1.80 on Pay as you go. Credits are one-time purchases that never expire.

Can I get carousel slides like the Basic Display children edge?

The profile post list returns the cover image of each carousel, its caption and counts, and a link to the post. The individual slides of a carousel are not returned in the post list today.

Is it allowed to display public Instagram data from an API?

Bridgly reads data that Instagram shows publicly, without logging in to any account. Captions, photos and videos belong to their creators, so get permission before republishing someone else’s content, credit the account, and follow privacy laws such as the GDPR for any personal data you store. This is not legal advice.

Sources

  1. Meta for Developers: update on Instagram Basic Display API
  2. Meta for Developers: Instagram Platform overview
  3. Meta for Developers: Instagram API with Instagram Login
  4. Meta for Developers: Business Discovery
  5. Meta for Developers: Instagram oEmbed
  6. Basic Display API media reference (archived June 2024)
  7. Behold: pricing
  8. Behold: getting started
  9. HikerAPI: pricing
  10. ScrapeCreators: pricing
  11. Bridgly API reference: Instagram user posts
  12. Bridgly API reference: Instagram user Reels
  13. Bridgly docs: rate limits

Related

Start pulling data in minutes.

100 free credits on business email, no card needed. Call any endpoint through the API, the TypeScript SDK or MCP.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free