Get video imports of my user
Parameters
startinteger>= 0queryOffset used to paginate results
countinteger[1, 100]15queryNumber of items to return
sortstringquerySort column
includeCollaborationsbooleanqueryPeerTube >= 8.0 Include objects from collaborated channels
videoIdintegerqueryFilter on import video ID
targetUrlstringqueryFilter on import target URL
videoChannelSyncIdnumberqueryFilter on imports created by a specific channel synchronization
searchstringquerySearch in video names
Filter on import state
Response
successful operation
Response fields application/json
totalinteger1Show child attributes
idid>= 142targetUrltargetUrl<url>remote URL where to find the import's source video
https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6dmagnetUrimagnetUri<uri>magnet URI allowing to resolve the import's source video
torrentfiletorrentfile<binary>Torrent file containing only the video file
torrentNamestringstateVideoImportStateConstantShow child attributes
idid123456The video import state (Pending = 1, Success = 2, Failed = 3, Rejected = 4, Cancelled = 5, Processing = 6)
labelstringPendingerrorstringcreatedAtstring<date-time>updatedAtstring<date-time>videoVideo | nullShow child attributes
uuidUUIDv4universal identifier for the video, that can be used across instances
Show child attributes
9c9de5e8-0a1e-484a-b099-e80766180a6dshortUUIDshortUUIDShow child attributes
translation of a uuid v4 with a bigger alphabet to have a shorter uuid
2y84q2MQUMWPbiEcxNXMgCisLivebooleanliveSchedulesArray<LiveSchedule>Show child attributes
startAtstring<date-time>Date when the stream is scheduled to air at
createdAtstring<date-time>time at which the video object was first drafted
2017-10-01T10:52:46.396ZpublishedAtstring<date-time>time at which the video was marked as ready for playback (with restrictions depending on privacy). Usually set after a state evolution.
2018-10-01T10:52:46.396ZupdatedAtstring<date-time>last time the video's metadata was modified
2021-05-04T08:01:01.502ZoriginallyPublishedAtstring<date-time> | nullused to represent a date of first publication, prior to the practical publication date of publishedAt
2010-10-01T10:52:46.396ZcategoryVideoConstantNumber-Categorycategory in which the video is classified
Show child attributes
labelstringScience & TechnologylicenceVideoConstantNumber-Licencelicence under which the video is distributed
Show child attributes
labelstringAttribution - Share AlikelanguageVideoConstantString-Languagemain language used in the video
Show child attributes
labelstringEnglishprivacyVideoPrivacyConstantprivacy policy used to distribute the video
Show child attributes
idVideoPrivacySet12345privacy id of the video (see /videos/privacies)
labelstringtruncatedDescriptionstring | nulltruncated description of the video, written in Markdown.
**[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n
**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\r\n*A decentralized video hosting network, based on fr...
durationinteger<seconds>duration of the video in seconds
1419aspectRationumber<float> | nullPeerTube >= 6.1 Aspect ratio of the video stream
1.778isLocalbooleannamenametitle of the video
What is PeerTube?thumbnailPathstring | nulldeprecatedDeprecated in PeerTube v8.1, use thumbnails instead. Null if the file is stored in object storage: use the non-deprecated field instead.
previewPathstring | nulldeprecatedDeprecated in PeerTube v8.1, use thumbnails instead. Null if the file is stored in object storage: use the non-deprecated field instead.
thumbnailsArray<Thumbnail>PeerTube >= 8.1 Array of thumbnails for the video
Show child attributes
fileUrlstringwidthintegerheightintegeraspectRatiostring16:9embedPathstring/videos/embed/a65bc12f-9383-462e-81ae-8207e8b434eeviewsinteger1337likesinteger42dislikesinteger7commentsintegerPeerTube >= 7.2 Number of comments on the video
nsfwbooleannsfwFlagsNSFWFlagShow child attributes
nsfwSummarystringPeerTube >= 7.2 More information about the sensitive content of the video
aiUsageVideoAIUsageConstantShow child attributes
idVideoAIUsageSet1234PeerTube >= 9.0 Use of AI in the video, declared by the video creator:
1Not specified2No AI-generated content: nothing seen or heard in the video has been generated by AI3Contains AI-generated content: some parts of the video have been generated by AI4AI-generated: the whole video, or most of it, has been generated by AI
labelstringcommercialContentVideoCommercialContentConstantShow child attributes
PeerTube >= 9.0 Commercial content in the video, declared by the video creator:
1None2Promotional content: the creator promotes their own products, services or business3Paid partnership: a third party paid, or provided goods or services, in exchange for the promotion
labelstringrecommendationScopeVideoRecommendationScopeConstantShow child attributes
Videos that can be recommended next to a video:
1All videos2Only videos of the platform that owns the reference video (or of the current platform if no video is given)3Only videos of the account that owns the reference video4Only videos of the channel of the reference video
This is a preference of the video owner: applications displaying recommendations may not apply it
labelstringwaitTranscodingboolean | nullstateVideoStateConstantrepresents the internal state of the video processing within the PeerTube instance
Show child attributes
idid123456789101112131415The video state:
1: Published2: To transcode3: To import4: Waiting for live stream5: Live ended6: To move to an external storage (object storage...)7: Transcoding failed8: Moving to an external storage failed9: To edit using studio edition feature10: To move to the file system11: Moving to the file system failed12: Import failed13: To duplicate, the files of another video are being copied14: Duplication failed, the files of the other video could not be copied15: The studio edition of a video saved as a new video failed
Same fields as data.video.id
labelstringscheduledUpdateVideoScheduledUpdate | nullShow child attributes
privacyVideoPrivacySet12345privacy id of the video (see /videos/privacies)
updateAtstring<date-time>requiredWhen to update the video
blacklistedboolean | nullblacklistedReasonstring | nullaccountAccountSummaryShow child attributes
idintegernamestringdisplayNamestringurlstring<url>hoststring<hostname>avatarsArray<ActorImage>Show child attributes
pathstring | nulldeprecatedDeprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.
fileUrlstringPeerTube >= 7.1
widthintegerheightintegerPeerTube >= 7.3
createdAtstring<date-time>updatedAtstring<date-time>channelVideoChannelSummaryShow child attributes
namestringdisplayNamestringurlstring<url>hoststring<hostname>avatarsArray<ActorImage>Show child attributes
pathstring | nulldeprecatedDeprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.
fileUrlstringPeerTube >= 7.1
widthintegerheightintegerPeerTube >= 7.3
createdAtstring<date-time>updatedAtstring<date-time>userHistoryobject | nullShow child attributes
currentTimeintegercaptionLanguagesArray<string>PeerTube >= 9.0 Languages of the video captions. Only returned by video lists
Authorization
OAuth2oauth2Authenticating via OAuth requires the following steps:
- Have an activated account
- Generate an access token for that account at
/api/v1/users/token. - Make requests with the Authorization: Bearer <token> header
- Profit, depending on the role assigned to the account
Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.
Scopes: user