A single “success” flag hides an important boundary in a media importer. A parser can identify a supported public post and return media candidates, while a later request to the media host fails. If those steps share one status, the application can tell a user that an import finished even though it never obtained a usable file.

For context, I work on EasyDown, a paid video downloader API for supported public single-post URLs. The API platform overview describes the available endpoints. This note is about the application around that API: how I would model the handoff from parsing to retrieving media, rather than treating the response as a finished download.

Keep the two outcomes separate

I would give a background job separate fields for the parse result and the media retrieval result. A successful parse means the application has a response it can inspect. A completed retrieval means the selected media has actually arrived where the application needs it. Playback or assembly can be another step.

For example, “parse succeeded; media retrieval failed with HTTP 403” is a useful job outcome. “Import failed” alone loses the distinction. Keep the parse request identifier and a reference to the selected media item with the job; redact signed URLs and credentials from routine logs.

Select an item before fetching it

The unified endpoint and platform-specific endpoints have different response nesting. In the current EasyDown documentation, the unified media model is under response.data, while a platform response places it under response.data.media. An adapter should resolve that difference before the rest of the job runs.

Then inspect the returned images, videos, or audios candidates. Do not assume the first video is a complete file with sound, or that a container-looking URL guarantees playback. A video item marked hasAudio: false needs an appropriate separate audio track if the final result requires audio. Selection and assembly are application decisions, not just a filename extension check.

Preserve the media request

Returned media addresses may be signed or time-limited. Keep the complete URL, including its query parameters, and fetch it promptly. Rebuilding a URL from a hostname and path can discard the part that made it usable.

Some media items also need public headers returned with that item. Those are different from the token used to authenticate to the parsing API. Never forward the API Authorization token or customer cookies to an unrelated media host. If a backend retrieves media, it should validate permitted destinations and redirects instead of becoming an unrestricted public proxy.

Choose the next action from the failed stage

  • Invalid input or API authentication failure: correct the request or token configuration before trying again.

  • Media-host HTTP 403 or a browser CORS failure after parsing: inspect the selected item, required public headers, and the client environment. Repeating the parse immediately is not a diagnosis.

  • An expired media URL: a deliberate fresh parse of the original supported post may be appropriate. It is another parse request under the API’s billing rules, not a free download retry.

  • An interrupted transfer: handle the partial file explicitly. If a range request receives a full HTTP 200 response, do not append that full response to the old partial file.

The key is to bound retries and preserve the reason for each attempt. A transport error should not quietly create an endless loop of new parse requests. A fresh parse also cannot guarantee access when the underlying content is restricted.

Show completion at the boundary the user cares about

An importer can say “post resolved” after parsing and “retrieving media” while fetching. It should reserve its final completion state for the asset it actually promises: a saved file, an assembled video with sound, or a metadata record if metadata was the only goal.

That small distinction makes support information more useful too. The question becomes which stage failed, which item was selected, and what the media host returned, rather than whether the entire API “worked.”

Scope: this is an integration design note based on the current public documentation, not a claim of a live end-to-end test or a measured reliability improvement. No paid API requests were made for this article. Only process supported public posts that you are entitled to use; backend requests and extra headers do not grant access to private, deleted, DRM-protected, or otherwise restricted content.

Disclosure: this article was prepared with AI assistance. I am affiliated with EasyDown, and have made that relationship explicit rather than presenting this as an independent product review.