Socioverse

Loading…

Why the Instagram API Stopped Returning media_url

By Anshul Rastogi on 2026-12-04

The 200 that tells you nothing is wrong

You pull your media list the way you always have. The request returns 200. No error object, no deprecation warning, no version bump to schedule. Your logs are clean.

A week later a column in your reporting is empty for half your reels, and the obvious conclusion is that the metric broke. It did not. Meta stopped sending one field, on purpose, on 30 July 2026, and said so in the changelog: media_url is now omitted from responses for any video that carries copyrighted or licensed audio. The documentation is explicit that this includes a normal case most creators are in: "The video contains copyrighted or licensed audio, including audio added from the Instagram audio library." It is equally explicit that owning the reel does not exempt you: "This applies to all video media, including reels, video posts, and video stories," and "applies even when the app user owns the media."

This is the hardest shape of API change to absorb. An error code you catch. A deprecation you put in a calendar. A field that quietly stops arriving inside a successful response gets handled by whatever default is nearest in the code, and in most codebases that default turns absent into zero.

First Principle: a status code describes the transport, not the payload

200 means the request was served. It does not mean the object is complete. Meta is clear about this: "Requests still return a 200 response." And the rest of the object is untouched: "All other fields on the media object, such as id, permalink, caption, and timestamp, are returned as normal."

So any value you derive from a media object exists in one of three states, and they are not interchangeable:

State Meaning Honest output
Present Meta measured it and sent it the number
Zero Meta measured it and it was zero 0
Absent Meta did not send it unknown, and say so

Code that collapses the third state into the second is not being lenient. It is inventing data. duration ?? 0 reads as defensive programming and behaves as fabrication, because every percentage computed downstream from that zero is a real-looking number with nothing behind it.

Two ways to read a field Meta did not send. Reading absent as zero produces a watch-through percentage divided by an assumed length, with nothing on the page marking it as invented. Keeping absent as unknown leaves the duration null, leaves watch-through null, and renders one blank cell while every other metric on the row is unaffected.

What Meta actually changed

Two separate conditions remove the field, and they have different blast radiuses. Conflating them is where most of the confusion in the category comes from.

Condition Applies to Hits your own media?
Copyright. The video carries copyrighted or licensed audio, including audio added from the Instagram audio library, or it has been flagged for a copyright violation All video media: reels, video posts, video stories Yes. "applies even when the app user owns the media"
Downloads off. The reel owner turned off "Allow people to download your reels", at the account level or per reel Reels only, and only on endpoints that read other users' media No. "Reading your own media through GET /<IG_USER_ID>/media or GET /<IG_MEDIA_ID> is not affected by this condition"

The download setting is evaluated against the reel's owner, not the caller, so it can apply to a reel you co-authored. And the endpoint you call decides which conditions you are exposed to:

Endpoint Subject to
GET /<IG_USER_ID>?fields=business_discovery{media} both conditions
GET /<IG_USER_ID>/tags both conditions
GET /<IG_USER_ID>/mentioned_media both conditions
GET /<IG_USER_ID>/mentioned_comment both conditions
GET /<IG_HASHTAG_ID>/top_media both conditions
GET /<IG_HASHTAG_ID>/recent_media both conditions
GET /<IG_USER_ID>/collaborative_media both conditions
GET /<IG_MEDIA_ID> copyright only
GET /<IG_MEDIA_ID>/children copyright only
GET /<IG_USER_ID>/media copyright only
GET /<IG_USER_ID>/stories copyright only
GET /<IG_USER_ID>/live_media copyright only

Three details that catch people out:

The first condition is the one that matters most, because it is triggered by doing the recommended thing. Adding a track from Instagram's own audio library is what the app nudges every creator toward. Do that, and the API stops handing you back the file for your own reel.

Why "treat it as optional" is advice, not a fix

Meta's own guidance is correct and it is where every roundup stops: "Treat media_url as an optional field in your app and fall back to permalink or thumbnail_url when it is absent."

The problem is that those two fallbacks are not substitutes for each other, or for the thing that went missing. They serve different jobs:

You needed the video for Fallback Does it work?
Linking a human to the post permalink Yes. This is what a permalink is for
Showing a still in a grid or a PDF thumbnail_url Yes, and it was always the right field: "Media thumbnail URL. Only available on VIDEO media"
Measuring anything about the video itself neither No. There is no fallback

A permalink is an identity, not an asset: it resolves to a page, not to bytes. A thumbnail is a single frame, with no motion, no audio and no length. So if you were computing something from the file, the change does not degrade your number. It removes the input entirely, and you are left with exactly two options: report unknown, or make something up.

Meta recommends falling back to permalink or thumbnail_url. Linking a human to the post falls back to permalink and a still for a grid or PDF falls back to thumbnail_url, which was always the right field for video. Reel length, watch-through and anything else read from the file bytes have no fallback at all.

The column that goes blank, and why that is the right answer

Here is where this stops being abstract for us.

The Instagram media node has no duration field. There is no length to ask for. But reel length is half of the only question that matters about a hook: average watch time on its own is unreadable, because 6 seconds is excellent on a 40-second reel and a disaster on an 8-second one. Watch-through is average watch time as a share of the reel's length, and a reel can hold its first three seconds and still lose everyone by the fifth.

So Socioverse reads the length out of the file, without downloading the file. One ranged read of the first 256KB, then a parse for the movie header box (mvhd, the first child of moov) which carries a timescale and a duration; divide one by the other. Instagram serves fast-start files with moov at the front, so that single small read almost always finds it, and the tail is tried once for files that put it at the end. Anything that parses to over an hour is rejected as a parse accident rather than trusted.

That read needs a URL for the file. Which means, since 30 July:

  1. media_url is absent for a reel using library audio.
  2. There is nothing to range-read, so the duration resolves to unknown rather than erroring.
  3. Watch-through is therefore left blank, not computed as zero. In the code the percentage is only produced when average watch time and duration are both present and the duration is above zero. Otherwise the field is null, and the report renders an empty cell.
  4. Every other number on that row is unaffected. Views, reach, likes, comments, saves, shares and the 3-second hold rate all come from the insights edge, not from the file. One cell goes quiet. The row survives.

The alternative is the one that produces a number. Divide average watch time by an assumed 30 seconds, or carry forward last week's duration for the same reel, and you get a watch-through percentage that looks exactly like a measurement. It will be wrong by whatever the gap is between the assumption and reality, it will be wrong in a direction you cannot predict, and nothing in the report will tell the reader which cells are real. A blank cell costs the reader one data point. A fabricated cell costs them the ability to trust the other twelve.

How Socioverse measures reel length without downloading the reel: the Instagram media node has no duration field, so one ranged read of the first 256KB fetches the MP4 header, the mvhd box inside moov is parsed for a timescale and a duration, anything over an hour is rejected as a parse accident, and the tail is tried once for files with the header at the end. When media_url is absent there is no URL to range-read, so the duration is unknown and the watch-through cell is left blank.

This is not a special case we bolted on for this change. It is the same rule applied in every place the same question comes up, which is why the change cost us one afternoon instead of a rewrite:

What this does and does not break

Being precise about the blast radius matters more than making the change sound dramatic.

Path Affected Why
Reading your own media list and insights Yes, by the copyright condition GET /<IG_USER_ID>/media is in scope, and owning the reel is not an exemption
Reel length, and therefore watch-through Yes, goes unknown No URL means no file to read the header from
Views, reach, likes, comments, saves, shares, 3s hold No Measured by Meta and returned on the insights edge
Thumbnails and grid stills No thumbnail_url is a separate field and was already the right one
Publishing and scheduling No Publishing sends Meta a URL you supply. It never reads one back
Analysis of video you uploaded yourself No That reads the file you uploaded from our own CDN, not from Meta
Competitor reel analysis in Socioverse Not by this change We read competitor reels from the public post, not through business_discovery{media}

That last row is the one worth sitting with if you are building this yourself. The download-off condition is aimed precisely at the endpoints that read other people's media: business_discovery{media}, tags, mentioned_media, hashtag media, collaborative media. If your competitive research pipeline is built on video URLs from business_discovery, this is where it bites hardest, and it bites unpredictably, per reel, at the discretion of an account that has never heard of you. One competitor flipping a toggle in their own settings removes reels from your dataset with a 200 and no explanation.

That is a different and worse failure than the one in your own analytics, because a gap in your own numbers is visible as a gap. A gap in a competitor set just looks like they posted less. For what the API will and will not tell you about another account before any of this, see what the API lets you see about competitors.

Four rules for handling an absent field

  1. Branch on presence, not on truthiness. media.media_url || fallback and duration ?? 0 are the bug. Check whether the key arrived, keep unknown as a value your types can actually hold, and let it travel all the way to the render layer.
  2. Choose the fallback by purpose. Display takes thumbnail_url. Linking takes permalink. Measurement has no fallback, so measurement returns unknown. Picking a fallback because it is non-null is how a thumbnail ends up being passed to something expecting video.
  3. Make unknown renderable. If the only way your report can express a gap is a 0 or a -, the gap will be read as a result. Give the blank a reason the reader can see.
  4. Do not retry. This is a 200 with a complete, correct body. There is nothing to retry and the field will not appear on a second call. Hammering an endpoint over a field Meta has decided not to send is how a documentation problem becomes a rate-limit problem, and Meta is explicit that continuing to call a throttled endpoint extends the throttle. We cover that failure mode and the error codes behind it in DM automation without getting banned.

Frequently Asked Questions

Did Instagram deprecate media_url?

No. The field is not deprecated and is still documented. It is now omitted under two specific conditions, and the response is still a 200 with every other field intact. Nothing was removed from the API surface; one field became conditional.

Why is media_url missing for my own reel?

Almost certainly licensed audio. If you added a track from the Instagram audio library, the copyright condition applies, and the changelog states it applies even when you own the media. The reel is fine, the post is fine, and permalink, caption, timestamp and all your insights still come back normally.

Can I get the video file another way?

Not from these endpoints. permalink gives you the post, thumbnail_url gives you one frame, and that is what Meta offers as the fallback. If your product depends on the bytes of someone else's video arriving from the Graph API, that dependency is now conditional on settings and copyright state you do not control.

Will this break my scheduler?

No. Publishing works the other way around: you give Meta a URL to fetch, it does not give you one. Scheduling, container creation and publishing are untouched by this change.

Why does Socioverse sometimes show a blank watch-through?

Because the reel's length could not be measured, which now usually means media_url was absent for that reel. Average watch time is still shown, as is the 3-second hold rate. We leave the percentage blank rather than dividing by an assumed length, because a watch-through built on a guessed duration is indistinguishable from a real one on the page.

Should I turn off "Allow people to download your reels"?

That is a reasonable thing to want, and it is your call. Just know what it now does: it removes media_url for apps reading your reel through the endpoints that read other users' media. It does not affect your own reads of your own media, so it will not change your own analytics.

Does this affect image posts or carousels?

Image media and carousel containers are unaffected. A carousel's video children can be, and when they are reached through field expansion they inherit the conditions that applied to the originating request rather than their own.

Sources and References

All Meta-attributed quotes were taken from the following pages, accessed 8 November 2026.

More from the blog

Related