# Get Media

Get the Project logo image or the media for a particular Entry Answer in a Project. If the project is private, an `access_token` must be provided. [**See API Authentication.**](/api-authentication/create-client-app.md)

We assume the base domain to be **five.epicollect.net**.

## HTTP REQUEST

`GET /api/export/media/{project_slug}?{key=value&key=value...}`

## Query Parameters

| Parameter     | Required            | Description                 |
| ------------- | ------------------- | --------------------------- |
| project\_slug | yes, as url segment | The slugified project name. |
| type          | yes                 | The type of media.          |
| format        | yes                 | The format of the media.    |
| name          | yes                 | The name of the media.      |

## Further Descriptions

### `project_slug`

The **project\_slug** is slugified version of the project name. Any spaces in the project name are replaced by a hyphen "-" to make it url safe. To retrieve it, check the **Developers** section on your project details page. From the same page you can download the full project definition in JSON format. It is used as a segment in the request url.

### `type`

The **type** must be one of the following: `photo`, `audio` or `video`.

### `format`

The **format** must be one of following, depending on the **type**:

| Format                | Type  | Description                       | Resolution |
| --------------------- | ----- | --------------------------------- | ---------- |
| project\_thumb        | photo | The Project logo thumbnail image. | 512x512px  |
| project\_mobile\_logo | photo | The Project logo mobile image.    | 128x128px  |
| entry\_original       | photo | The entry original photo image.   | 1024x768px |
| entry\_thumb          | photo | The entry photo thumbnail image.  | 100x100px  |
| audio                 | audio | The entry original audio.         | n/a        |
| video                 | video | The entry original video.         | n/a        |

### `name`

The **name** is the name of the media file.\
For the project logo, this will be `logo.jpg`.\
For entry media, this will be the entry answer.\
\
[**See code examples**](/examples/getting-media.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.epicollect.net/media/get-media.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
