GET /api/v3/videos/my¶
Summary¶
GET /videos/my
Description¶
Get a list of videos owned by the authenticated user
Tags: creatives
Parameters¶
Header Parameters¶
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
Authorization |
string |
✓ Yes | Bearer {AuthToken} |
|
Content-Type |
string |
✓ Yes | application/json |
|
Accept |
string |
✓ Yes | application/json |
|
AppIdV3 |
string |
✓ Yes | LCUID-LAP-********-****-****-****-************ |
Request Body¶
Content Type: application/json¶
Schema¶
Type: object
Properties:
query(string)page(integer): Must be at least 1.per_page(integer): Must be at least 1. Must not be greater than 100.
Responses¶
Response: 200¶
Content Type: application/json¶
Schema¶
Type: object
Properties:
success(boolean)videos(object) Type:object
Properties:
current_page(integer)-
data(array)- Array items:
objectType:object
Properties:
-
options(object) Type:objectProperties:
public_url(string)size_in_bytes(integer)dimension_height(integer)dimension_width(integer)hash_md5(string)video_fps(integer)video_duration(number)video_bitrate(integer)video_codec(string)thumbnail_public_url(string)thumbnail_lcuid(string)
-
mime_type(string) lcuid(string)hash_id(string)
- Array items:
-
first_page_url(string) from(integer)last_page(integer)last_page_url(string)-
links(array)- Array items:
objectType:object
Properties:
url(string)label(string)active(boolean)
- Array items:
-
next_page_url(string) path(string)per_page(integer)prev_page_url(string)to(integer)total(integer)
Example Response¶
{
"success": true,
"videos": {
"current_page": 1,
"data": [
{
"options": {
"public_url": "http://localhost:8080/storage/13/file_69e7822b22cfa_8bfd6d29c17a67391534.mp4",
"size_in_bytes": 1055736,
"dimension_height": 720,
"dimension_width": 1280,
"hash_md5": "d55bddf8d62910879ed9f605522149a8",
"video_fps": 25,
"video_duration": 5.31,
"video_bitrate": 1589963,
"video_codec": "h264",
"thumbnail_public_url": "http://localhost:8080/storage/12/img_69e7822b73053_19546f3fbd75b3eb104b.jpg",
"thumbnail_lcuid": "LCUID-LM-f58ba1f3-9fbb-4f15-b51b-d593349778e6"
},
"mime_type": "video/mp4",
"lcuid": "LCUID-LMV-47619619-7d58-4a82-8db0-b0235586ebca",
"hash_id": "lch-4C9A"
},
{
"options": {
"public_url": "http://localhost:8080/storage/13/file_69e7822b9dd6d_de06aa5806b80900fe15.mp4",
"size_in_bytes": 1055736,
"dimension_height": 720,
"dimension_width": 1280,
"hash_md5": "d55bddf8d62910879ed9f605522149a8",
"video_fps": 25,
"video_duration": 5.31,
"video_bitrate": 1589963,
"video_codec": "h264",
"thumbnail_public_url": "http://localhost:8080/storage/12/img_69e7822bd327e_c3902c2d3462f5b42ad3.jpg",
"thumbnail_lcuid": "LCUID-LM-b9716e3c-1264-4af1-aeb2-216d3d432330"
},
"mime_type": "video/mp4",
"lcuid": "LCUID-LMV-c6474cd8-ddf8-4872-bfd7-4110e4334bf0",
"hash_id": "lch-4C9B"
}
],
"first_page_url": "http://localhost:8080/api/v3/videos/my?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8080/api/v3/videos/my?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8080/api/v3/videos/my?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8080/api/v3/videos/my",
"per_page": 25,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
Example Implementations¶
Bash (cURL)¶
curl --request GET \
--get "https://api.lucit.app/api/v3/videos/my" \
--header "Authorization: Bearer {AuthToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "AppIdV3: LCUID-LAP-********-****-****-****-************" \
--data "{
\"query\": \"aliquid\",
\"page\": 72,
\"per_page\": 3
}"
JavaScript (Fetch API)¶
const url = new URL(
"https://api.lucit.app/api/v3/videos/my"
);
const headers = {
"Authorization": "Bearer {AuthToken}",
"Content-Type": "application/json",
"Accept": "application/json",
"AppIdV3": "LCUID-LAP-********-****-****-****-************",
};
let body = {
"query": "aliquid",
"page": 72,
"per_page": 3
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
PHP (Guzzle)¶
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.lucit.app/api/v3/videos/my',
[
'headers' => [
'Authorization' => 'Bearer {AuthToken}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'AppIdV3' => 'LCUID-LAP-********-****-****-****-************',
],
'json' => [
'query' => 'aliquid',
'page' => 72,
'per_page' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Python (Requests)¶
import requests
import json
url = 'https://api.lucit.app/api/v3/videos/my'
payload = {
"query": "aliquid",
"page": 72,
"per_page": 3
}
headers = {
'Authorization': 'Bearer {AuthToken}',
'Content-Type': 'application/json',
'Accept': 'application/json',
'AppIdV3': 'LCUID-LAP-********-****-****-****-************'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()
Example Responses¶
200 Response¶
{
"success": true,
"videos": {
"current_page": 1,
"data": [
{
"options": {
"public_url": "http://localhost:8080/storage/13/file_69e7822b22cfa_8bfd6d29c17a67391534.mp4",
"size_in_bytes": 1055736,
"dimension_height": 720,
"dimension_width": 1280,
"hash_md5": "d55bddf8d62910879ed9f605522149a8",
"video_fps": 25,
"video_duration": 5.31,
"video_bitrate": 1589963,
"video_codec": "h264",
"thumbnail_public_url": "http://localhost:8080/storage/12/img_69e7822b73053_19546f3fbd75b3eb104b.jpg",
"thumbnail_lcuid": "LCUID-LM-f58ba1f3-9fbb-4f15-b51b-d593349778e6"
},
"mime_type": "video/mp4",
"lcuid": "LCUID-LMV-47619619-7d58-4a82-8db0-b0235586ebca",
"hash_id": "lch-4C9A"
},
{
"options": {
"public_url": "http://localhost:8080/storage/13/file_69e7822b9dd6d_de06aa5806b80900fe15.mp4",
"size_in_bytes": 1055736,
"dimension_height": 720,
"dimension_width": 1280,
"hash_md5": "d55bddf8d62910879ed9f605522149a8",
"video_fps": 25,
"video_duration": 5.31,
"video_bitrate": 1589963,
"video_codec": "h264",
"thumbnail_public_url": "http://localhost:8080/storage/12/img_69e7822bd327e_c3902c2d3462f5b42ad3.jpg",
"thumbnail_lcuid": "LCUID-LM-b9716e3c-1264-4af1-aeb2-216d3d432330"
},
"mime_type": "video/mp4",
"lcuid": "LCUID-LMV-c6474cd8-ddf8-4872-bfd7-4110e4334bf0",
"hash_id": "lch-4C9B"
}
],
"first_page_url": "http://localhost:8080/api/v3/videos/my?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8080/api/v3/videos/my?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8080/api/v3/videos/my?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8080/api/v3/videos/my",
"per_page": 25,
"prev_page_url": null,
"to": 2,
"total": 2
}
}