---
title: "List the Library"
description: "Disukai, the user's own collections, and the ones filled from platform pages. Needs the `videos:read` permission."
---

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

Path: Mosio REST API › Discover

`GET /v1/discover/collections`

Disukai, the user's own collections, and the ones filled from platform pages. Needs the `videos:read` permission.

## Authentication

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

## Code samples

### cURL

```bash
curl --request GET \
  --url https://app.mosio.me/v1/discover/collections \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/discover/collections';
const options = {method: 'GET', headers: {'x-api-key': '<x-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://app.mosio.me/v1/discover/collections"

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

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

print(response.text)
```

## Responses

### 200

The collections.

#### Example

```json
{
  "collections": [
    {
      "id": "string",
      "name": "string",
      "origin": "string",
      "posts": -9007199254740991,
      "covers": [
        "string"
      ],
      "updated_at": "string"
    }
  ]
}
```

- `collections` (`listDiscoverCollections.response.200.collections`; array<object>, required)
  - `id` (`listDiscoverCollections.response.200.collections.id`; string, required)
  - `name` (`listDiscoverCollections.response.200.collections.name`; string, required)
  - `origin` (`listDiscoverCollections.response.200.collections.origin`; string | null, required)
  - `posts` (`listDiscoverCollections.response.200.collections.posts`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `covers` (`listDiscoverCollections.response.200.collections.covers`; array<string>, required)
  - `updated_at` (`listDiscoverCollections.response.200.collections.updated_at`; string, required)

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`listDiscoverCollections.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`listDiscoverCollections.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`listDiscoverCollections.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/list-discover-collections/index.md
