---
title: "List storefront collections"
---

> Documentation Index
> Fetch the complete documentation index at: https://edgecart.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List storefront collections

Path: EdgeCart API › Storefront

`GET /store/collections`

URL: `https://{store_domain}/api/store/collections`

Returns collections that contain at least one published product visible
to the storefront's sales channel.

## Authentication

- `publishableKey`, apiKey, in header, header `x-publishable-api-key`

## Query parameters

- `limit` (`listStorefrontCollections.query.limit`; integer, optional)
  - maximum: `100` · minimum: `1` · default: `20`
- `offset` (`listStorefrontCollections.query.offset`; integer, optional)
  - minimum: `0` · default: `0`
- `q` (`listStorefrontCollections.query.q`; string, optional) — Search collection title or handle.
- `locale` (`listStorefrontCollections.query.locale`; string, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url https://your-store.example.com/api/store/collections \
  --header 'x-publishable-api-key: <x-publishable-api-key>'
```

### TypeScript

```typescript
const url = 'https://your-store.example.com/api/store/collections';
const options = {
  method: 'GET',
  headers: {'x-publishable-api-key': '<x-publishable-api-key>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://your-store.example.com/api/store/collections"

headers = {"x-publishable-api-key": "<x-publishable-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

A page of collections.

#### Example

```json
{
  "collections": [
    {
      "id": "string",
      "title": "string",
      "handle": "string",
      "metadata": {},
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "count": 0,
  "offset": 0,
  "limit": 0
}
```

- `collections` (`listStorefrontCollections.response.200.collections`; array of object, required)
  - `id` (`listStorefrontCollections.response.200.collections.id`; string, required)
  - `title` (`listStorefrontCollections.response.200.collections.title`; string, required)
  - `handle` (`listStorefrontCollections.response.200.collections.handle`; string, required)
  - `metadata` (`listStorefrontCollections.response.200.collections.metadata`; object, optional)
  - `created_at` (`listStorefrontCollections.response.200.collections.created_at`; string, optional)
    - format: `date-time`
  - `updated_at` (`listStorefrontCollections.response.200.collections.updated_at`; string, optional)
    - format: `date-time`
- `count` (`listStorefrontCollections.response.200.count`; integer, required)
- `offset` (`listStorefrontCollections.response.200.offset`; integer, required)
- `limit` (`listStorefrontCollections.response.200.limit`; integer, required)

### 401

The publishable API key is missing or invalid.

#### Example

```json
{
  "type": "not_found",
  "message": "No active store is available for this deployment",
  "code": "store_not_configured"
}
```

- `type` (`listStorefrontCollections.response.401.type`; string, required)
- `message` (`listStorefrontCollections.response.401.message`; string, required)
- `code` (`listStorefrontCollections.response.401.code`; string, optional)


Source: https://edgecart.dev/api/store/collections/index.md
