---
title: "Get a list of product media files"
method: GET
path: "/api/rest/v1/media-files"
tags: ["Product media file"]
---

# Get a list of product media files

`GET /api/rest/v1/media-files`

This endpoint allows you to get a list of media files that are used as attribute values in products or product models.

## Query parameters

- `page` integer
- `limit` integer
- `with_count` boolean

## Response `200`

Return media files paginated

- object
  - `_links` object
    - `self` object
      - `href` string — URI of the current page of resources
    - `first` object
      - `href` string — URI of the first page of resources
    - `previous` object
      - `href` string — URI of the previous page of resources
    - `next` object
      - `href` string — URI of the next page of resources
  - `current_page` integer — Current page number
  - `_embedded` object
    - `items` object[]
      - `_links` object
        - `self` object
          - `href` string — URI to get the metadata of the media file
        - `download` object
          - `href` string — URI to download the binaries of the media file
      - `code` string — Media file code
      - `original_filename` string — Original filename of the media file
      - `mime_type` string — Mime type of the media file
      - `size` integer — Size of the media file
      - `extension` string — Extension of the media file

## Other responses

- `401` — Authentication required
- `403` — Access forbidden
- `406` — Not Acceptable

---

[API](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
