> For the complete documentation index, see [llms.txt](https://help.indielog.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.indielog.com/videos-list.md).

# Videos: list

Returns a list of videos that match the API request parameters.

## HTTP request

```
GET https://indielog.com/api/videos/list/{user_id}?count={count}
```

The only mandatory input is `user_id`. If you have a customized username on IndieLog, you can directly use your username.&#x20;

`count` is a query param, and it's optional. **If not specified, default count is 10**. If the total number of your videos is less than the count you specified. We will return all your videos.

## Response

If successful, this method returns all videos in the following array:

```
[
    {
        "createdAt": 1597983421000,
        "duration": 50.8,
        "title": "Working on IndieLog APIs",
        "description": "Not yet done, but made some progress today. 💪",
        "videoURL": "https://stream.mux.com/JLXtEEXVQbRmb902k7OrWS3BBcYj01SyW0132W9E915KKk.m3u8",
        "thumbnail": "https://image.mux.com/JLXtEEXVQbRmb902k7OrWS3BBcYj01SyW0132W9E915KKk/thumbnail.png",
        "gif": "https://image.mux.com/JLXtEEXVQbRmb902k7OrWS3BBcYj01SyW0132W9E915KKk/animated.gif?width=350",
        "postURL": "https://indielog.com/video/working-on-indielog-apis-51999ccf"
    },
    {
        "createdAt": 1597896733000,
        "duration": 119.911144,
        "title": "Had a blast chat with Andrei",
        "description": "Andrei helped me a lots when IndieLog was at its very early stage, though we are still very early😅\n\nThis is his profile: https://indielog.com/user/andreigaspar\n\nIf you want to get early access of Boardme, you can go to boardme.io and ask Andrei for it. ",
        "videoURL": "https://stream.mux.com/R7OLK02xpk3RgRCYq3LtHRkSXSFi3hXcs7zc43P7kRB4.m3u8",
        "thumbnail": "https://image.mux.com/R7OLK02xpk3RgRCYq3LtHRkSXSFi3hXcs7zc43P7kRB4/thumbnail.png?time=39.97038133333333",
        "gif": "https://image.mux.com/R7OLK02xpk3RgRCYq3LtHRkSXSFi3hXcs7zc43P7kRB4/animated.gif?width=350",
        "postURL": "https://indielog.com/video/had-a-blast-chat-with-andrei-d463be4b"
    }
]
```

### Properties

The following table defines the properties that appear in the response:

| Name        | Description                                      |
| ----------- | ------------------------------------------------ |
| createdAt   | The timestamp when the video was uploaded        |
| duration    | The length of the video (in seconds)             |
| title       | The title of the video                           |
| description | The description of the video                     |
| thumbnail   | The thumbnail of the video                       |
| gif         | The gif thumbnail of the video                   |
| videoURL    | The video source you can put in any video player |
| postURL     | The video link redirected back to IndieLog       |

## Errors

We will return the follow error in some cases:

| Error type                | Error details                 | Fix                              |
| ------------------------- | ----------------------------- | -------------------------------- |
| 500 Internal server error | Sorry count cannot exceed 100 | Reduce count number to be <= 100 |
| 500 Internal server error | No such user                  | Use correct user\_id             |
