Skip to content
On this page

Fetch Media ​

Retrieve a list of images (media) from your store.

Endpoint ​

GET /api/images

Query Parameters ​

NameTypeDescription
pageintPage number (optional)
limitintItems per page (optional)

Example Request ​

GET /api/images/search?page=1&limit=20

Example Response ​

json
{
  
  "results": [
    {
      "_id": "string",
      "storeId": "string",
      "src": "https://cdn.example.com/image.jpg",
      "title": "Banner",
      "width": 1200,
      "height": 600,
      "createdAt": "2024-06-01T10:00:00.000Z"
    }
  ],
  "paginate": {
        "total": 1,
        "per_page": 20,
        "current_page": 1,
        "last_page": 1
    }
}

Released under the MIT License.