---
title: "Download Media Async"
method: POST
path: "/v1/media/async"
tags: ["Media"]
---

# Download Media Async

`POST /v1/media/async`

Download media from a URL asynchronously. Returns a task ID immediately.

## Request body

- MediaAsyncPayload
  - `country` string
  - `expected_mime_types` string[]
  - `locale` string
  - `storage` object
    - `object_name` string
    - `type` 's3' | 'gcs' | 'do' | 'oci'
    - `url` string, required
  - `url` string, uri, required
  - `callback_url` string — URL to call back when async operation completes
  - `storage_compress` boolean — Whether to compress stored data
  - `storage_object_name` string — Custom name for the stored object
  - `storage_type` string — Type of storage to use for results
  - `storage_url` string — URL for storage location

## Response `200`

Task created successfully

- MediaAsyncResponse — Response when an async extract task is created successfully.
  - `status` 'success', required — Status indicating the async task was created successfully.
  - `task` object, required — The created async task details.
    - `_query` unknown, required
    - `account_name` string — Account name that owns the task.
    - `api_type` 'web' | 'serp' | 'ecommerce' | 'social' | 'media' | 'agent' | 'extract' | 'fast-serp' | 'labs'
    - `batch_id` string, nullable — Batch ID if this task is part of a batch.
    - `created_at` string, required — Timestamp when the task was created.
    - `download_url` string, uri, nullable — URL for downloading the task results.
    - `error` string, nullable — Error message if the task failed.
    - `error_type` string, nullable — Classification of the error type.
    - `id` string, required — Unique task identifier.
    - `input` unknown, required
    - `modified_at` string — Timestamp when the task was last modified.
    - `output_url` string, nullable — Storage location of the output data.
    - `queue` string — Queue name the task was submitted to.
    - `state` 'pending' | 'queued' | 'in_progress' | 'success' | 'error', required — Current state of the task.
    - `status_code` number — HTTP status code from the task execution.
    - `status_url` string, uri, required — URL for checking the task status.

---

[API](https://skmtc.net/nimbleway/apis/api-gateway.md) · [All operations](https://skmtc.net/nimbleway/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nimbleway/api-gateway/revisions/9bfe220b7a29/schema)
