Search videos
Live Test Server (live data - latest nightly version)
https://peertube2.cpy.re/api/v1
Live Test Server (live data - latest nightly version)
https://peertube2.cpy.re/api/v1
GET
/search/videos
Search
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://peertube2.cpy.re/api/v1/search/videos?search='
Response Response Example
200 - Example 1
{
"data": [
{
"account": {
"avatar": {
"createdAt": "2019-08-24T14:15:22Z",
"path": "string",
"updatedAt": "2019-08-24T14:15:22Z"
},
"displayName": "string",
"host": "example.com",
"id": 0,
"name": "string",
"url": "string"
},
"blacklisted": true,
"blacklistedReason": "string",
"category": {
"id": 15,
"label": "Science & Technology"
},
"channel": {
"avatar": {
"createdAt": "2019-08-24T14:15:22Z",
"path": "string",
"updatedAt": "2019-08-24T14:15:22Z"
},
"displayName": "string",
"host": "example.com",
"id": 42,
"name": "string",
"url": "string"
},
"createdAt": "2017-10-01T10:52:46.396Z",
"description": "**[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\\r\\n\\r\\n\n**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\\r\\n*A decentralized video hosting network, based on fr...\n",
"dislikes": 7,
"duration": 1419,
"embedPath": "/videos/embed/a65bc12f-9383-462e-81ae-8207e8b434ee",
"id": 42,
"isLive": true,
"isLocal": true,
"language": {
"id": "en",
"label": "English"
},
"licence": {
"id": 2,
"label": "Attribution - Share Alike"
},
"likes": 42,
"name": "What is PeerTube?",
"nsfw": true,
"originallyPublishedAt": "2010-10-01T10:52:46.396Z",
"previewPath": "/lazy-static/previews/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg",
"privacy": {
"id": 1,
"label": "string"
},
"publishedAt": "2018-10-01T10:52:46.396Z",
"scheduledUpdate": {
"privacy": 1,
"updateAt": "2019-08-24"
},
"shortUUID": "2y84q2MQUMWPbiEcxNXMgC",
"state": {
"id": 1,
"label": "string"
},
"thumbnailPath": "/static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg",
"updatedAt": "2021-05-04T08:01:01.502Z",
"userHistory": {
"currentTime": 0
},
"uuid": "9c9de5e8-0a1e-484a-b099-e80766180a6d",
"views": 1337,
"waitTranscoding": true
}
],
"total": 1
}
Request
Query Params
search
stringÂ
required
categoryOneOf
stringÂ
optional
isLive
stringÂ
optional
tagsOneOf
stringÂ
optional
tagsAllOf
stringÂ
optional
licenceOneOf
stringÂ
optional
languageOneOf
stringÂ
optional
_unknown
to filter on videos that don't have a video languagensfw
stringÂ
optional
filter
stringÂ
optional
local
- only videos local to the instanceall-local
- only videos local to the instance, but showing private and unlisted videos (requires Admin privileges)all
- all videos, showing private and unlisted videos (requires Admin privileges)skipCount
stringÂ
optional
total
in the responsestart
integerÂ
optional
count
integerÂ
optional
searchTarget
stringÂ
optional
then reuse the search API to make a search using the object URI so PeerTube instance fetches the remote object and fill its database.
After that, you can use the classic REST API endpoints to fetch the complete object or interact with it
the data from the origin instance API
sort
stringÂ
optional
startDate
stringÂ
optional
endDate
stringÂ
optional
originallyPublishedStartDate
stringÂ
optional
originallyPublishedEndDate
stringÂ
optional
durationMin
integerÂ
optional
durationMax
integerÂ
optional
Responses
Modified at 2022-09-10 22:29:49