FetchGet a fetch
Fetch

Get a fetch

Retrieves a fetch by its ID.

curl -X GET "https://api.fetchmedia.io/v1/fetch/123e4567-e89b-12d3-a456-426614174000" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "url": "https://www.youtube.com/watch?v=93npkPcQIzA",
  "status": "pending | running | success | failed",
  "download_url": "https://api.fetchmedia.io/v1/fetch/123e4567-e89b-12d3-a456-426614174000/output.mp4",
  "error": "An error occurred while fetching the file."
}
GET
/fetch/{id}
GET
API Key (header: X-API-KEY)
X-API-KEYstring
Required

API key (sent in header)

API Key (query: key)
keystring
Required

API key (sent in query)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-KEYstring
Required

API Key for authentication. Provide your API key in the header.

query
keystring
Required

API Key for authentication. Provide your API key in the query.

Path Parameters

Responses

idstring

The ID of the fetch.

urlstring

The URL that was fetched.

statusstring

The status of the fetch.

download_urlstring

The URL to download the fetched file.

errorstring

The error message if the fetch failed.