---
description: Get orca videos giving the username and course
---

# getOrcaVideoList

## Get Orca videos details list

<mark style="color:green;">`POST`</mark> `{{HOST}}/api/getOrcaVideoList`

This endpoint allows you to get free cakes.

#### Request Body

| Name               | Type    | Description                                                                   |
| ------------------ | ------- | ----------------------------------------------------------------------------- |
| is\_not\_completed | boolean | Set true if you need only the uncompleted videos.(By default is set as false) |
| video\_limit       | number  | Record limit( by default are 6)                                               |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}
```
{
    "data": {
        "course": [
            {
                "module_id": "3",
                "name": "Lesson 1",
                "track_time_percent": "99.39",
                "shortdescription": null,
                "intro": "",
                "videolength": "490",
                "secondtrack": "487",
                "timecreated": "1589220760",
                "course": "2",
                "thumbnail_url": "http://chilemoodle.orcasandbox.com/pluginfile.php/32/mod_orcavideo/thumbnail/874873013/Mask%20Group%20146.png",
                "videoUrl": "/mod/orcavideo/view.php?id=15"
            },
            {
                "module_id": "24",
                "name": "test666",
                "track_time_percent": "96.73",
                "shortdescription": "",
                "intro": "",
                "videolength": "490",
                "secondtrack": "474",
                "timecreated": "1591722767",
                "course": "2",
                "thumbnail_url": "http://chilemoodle.orcasandbox.com/pluginfile.php/63/mod_orcavideo/thumbnail/209163385/filemoodle1.png",
                "videoUrl": "/mod/orcavideo/view.php?id=15"
            }
        ]
    },
    "message": "",
    "errorCode": "",
    "errors": []
}
```
{% endtab %}

{% tab title="400 Missing data or none user are logged." %}
```
{
    "data": [],
    "message": "Missing required field username or course name",
    "errorCode": "",
    "errors": [
        "Missing user or none is logged",
        "The user is not enrolled in a course yet"
    ]
}
```
{% endtab %}
{% endtabs %}

