v1

latestSwagger 2.02026-07-13137761.0 MB
Product media file

Get a list of product media files

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

get/api/rest/v1/media-files

Query parameters

pageinteger

Number of the page to retrieve when using the page pagination method type. <strong>Should never be set manually</strong>, see <a href="/documentation/pagination.html#pagination">Pagination</a> section

limitinteger

Number of results by page, see <a href="/documentation/pagination.html">Pagination</a> section

with_countboolean

Return the count of items in the response. Be carefull with that, on a big catalog, it can decrease performance in a significative way

Response

Return media files paginated

current_pageinteger

Current page number

Example response

{
  "_embedded": {
    "items": [
      {
        "code": "7/5/8/e/758e39d48ea7b42a55091434fd3d8b6cf3189b7f_10806799_1356.jpg",
        "original_filename": "10806799-1356.jpg",
        "mime_type": "image/jpeg",
        "size": 16070,
        "extension": "jpg"
      }
    ]
  }
}