---
title: "Download content from the content repository."
method: GET
path: "/_matrix/media/v3/download/{serverName}/{mediaId}"
tags: ["Media"]
deprecated: true
---

# Download content from the content repository.

`GET /_matrix/media/v3/download/{serverName}/{mediaId}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/media/v3/download/{serverName}/{mediaId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/media/v3/download/:serverName/:mediaId/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

**NOTE:** 
Replaced by [`GET /_matrix/client/v1/media/download/{serverName}/{mediaId}`](https://spec.matrix.org/v1.19/client-server-api/#get_matrixclientv1mediadownloadservernamemediaid)
(requires authentication).


**WARNING:** 
**[Changed in `v1.11`]**  This endpoint MAY return `404 M_NOT_FOUND`
for media which exists, but is after the server froze unauthenticated
media access. See [Client Behaviour](https://spec.matrix.org/v1.19/client-server-api/#content-repo-client-behaviour) for more
information.

## Path parameters

- `serverName` string, mx-server-name, required
- `mediaId` string, required

## Query parameters

- `allow_remote` boolean
- `timeout_ms` integer
- `allow_redirect` boolean

## Response `200`

The content that was previously uploaded.

## Other responses

- `307`: A redirect to the requested content.
- `308`: A redirect to the requested content.
- `429`: This request was rate-limited.
- `502`: The content is too large for the server to serve.
- `504`: The content is not yet available. A [standard error response](https://spec.matrix.org/v1.19/client-server-api/#standard-error-response) will be returned with the `errcode` `M_NOT_YET_UPLOADED`.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
