Get a user
Parameters
Entity id
withStatsbooleanqueryinclude statistics about the user (only available as a moderator/admin)
Response
As an admin/moderator, you can request a response augmented with statistics about the user's
moderation relations and videos usage, by using the withStats parameter.
Response fields application/json
idid>= 142emailemail<email>The user email
emailVerifiedbooleanHas the user confirmed their email address?
nsfwPolicyNSFWPolicydisplaywarndo_not_listnsfwFlagsDisplayedNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsHiddenNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsWarnedNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsBlurredNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
aiUsagesHiddenArray<VideoAIUsageSet>1234PeerTube >= 9.0 Videos with these AI usages are hidden from video lists
adminFlagsUserAdminFlags01Admin flags for the user (None = 0, Bypass video blocklist = 1)
1autoPlayNextVideobooleanAutomatically start playing the upcoming video after the currently playing video
autoPlayNextVideoPlaylistbooleanAutomatically start playing the video on the playlist after the currently playing video
autoPlayVideobooleanAutomatically start playing the video on the watch page
p2pEnabledbooleanwhether to enable P2P in the player or not
videosHistoryEnabledbooleanwhether to keep track of watched history or not
videoLanguagesArray<string>list of languages to filter videos down to
videoCategoriesArray<integer> | nulllist of categories to filter videos down to (null means all categories)
videoLivestringtruefalsebothfilter videos down to lives (true), VODs (false) or display both
languagestringdefault language for this user
videoQuotaintegerThe user video quota in bytes
-1videoQuotaDailyintegerThe user daily video quota in bytes
-1roleobjectShow child attributes
labelstringUserModeratorAdministratorthemestringTheme enabled by this user
accountActor & anyShow child attributes
idid>= 142urlstring<url>nameusernameimmutable name of the actor, used to find or mention it
Show child attributes
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>hoststring<hostname>server on which the actor is resident
hostRedundancyAllowedboolean | nullwhether this actor's host allows redundancy of its videos
followingCountinteger>= 0number of actors subscribed to by this actor, as seen by this instance
followersCountinteger>= 0number of followers of this actor, as seen by this instance
createdAtstring<date-time>updatedAtstring<date-time>displayNamestringeditable name of the account, displayed in its representations
descriptionstring | nulltext or bio displayed on the account's profile
notificationSettingsUserNotificationSettingsShow child attributes
abuseAsModeratorNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
videoAutoBlacklistAsModeratorNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newUserRegistrationNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newVideoFromSubscriptionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
blacklistOnMyVideoNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoPublishedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoImportFinishedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
commentMentionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newCommentOnMyVideoNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newFollowNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newInstanceFollowerNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
autoInstanceFollowingNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
abuseStateChangeNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
abuseNewMessageNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newPeerTubeVersionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newPluginVersionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoStudioEditionFinishedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoTranscriptionGeneratedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
videoChannelsArray<VideoChannel>Show child attributes
urlstring<url>nameusernameimmutable name of the actor, used to find or mention it
Show child attributes
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>hoststring<hostname>server on which the actor is resident
hostRedundancyAllowedboolean | nullwhether this actor's host allows redundancy of its videos
followingCountinteger>= 0number of actors subscribed to by this actor, as seen by this instance
followersCountinteger>= 0number of followers of this actor, as seen by this instance
createdAtstring<date-time>updatedAtstring<date-time>displayNamestringeditable name of the channel, displayed in its representations
Videos of Framasoftdescriptionstring | nullVideos made with <3 by Framasoftsupportstring | nulltext shown by default on all videos of this channel, to tell the audience how to support it
Please support our work on https://soutenir.framasoft.org/en/ <3publicEmailstring<email> | nullPublic email visible in podcast RSS feeds
isLocalbooleanupdatedAtstring<date-time>bannersArray<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>ownerAccountActor & anyShow child attributes
urlstring<url>nameusernameimmutable name of the actor, used to find or mention it
Show child attributes
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>hoststring<hostname>server on which the actor is resident
hostRedundancyAllowedboolean | nullwhether this actor's host allows redundancy of its videos
followingCountinteger>= 0number of actors subscribed to by this actor, as seen by this instance
followersCountinteger>= 0number of followers of this actor, as seen by this instance
createdAtstring<date-time>updatedAtstring<date-time>displayNamestringeditable name of the account, displayed in its representations
descriptionstring | nulltext or bio displayed on the account's profile
videosCountintegeronly included when withStats is true
viewsPerDayArray<object>only included when withStats is true. Chronologically ordered, spans the whole statsDays range. Each point aggregates viewsGroupInterval worth of views, starting at date
Show child attributes
datestring<date-time>viewsintegerviewsGroupIntervalstringdayweekmonthbucket size of viewsPerDay, only included when withStats is true
totalViewsintegerlifetime views of all the channel videos, only included when withStats is true
blockedbooleanblockedReasonstringnoInstanceConfigWarningModalbooleannoAccountSetupWarningModalbooleannoWelcomeModalbooleancreatedAtstringpluginAuthstringAuth plugin to use to authenticate the user
lastLoginDatestring<date-time>twoFactorEnabledbooleanWhether the user has enabled two-factor authentication or not
newFeaturesInfoReadnumberNew features information the user has read
idid>= 142emailemail<email>The user email
emailVerifiedbooleanHas the user confirmed their email address?
nsfwPolicyNSFWPolicydisplaywarndo_not_listnsfwFlagsDisplayedNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsHiddenNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsWarnedNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsBlurredNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
aiUsagesHiddenArray<VideoAIUsageSet>1234PeerTube >= 9.0 Videos with these AI usages are hidden from video lists
adminFlagsUserAdminFlags01Admin flags for the user (None = 0, Bypass video blocklist = 1)
1autoPlayNextVideobooleanAutomatically start playing the upcoming video after the currently playing video
autoPlayNextVideoPlaylistbooleanAutomatically start playing the video on the playlist after the currently playing video
autoPlayVideobooleanAutomatically start playing the video on the watch page
p2pEnabledbooleanwhether to enable P2P in the player or not
videosHistoryEnabledbooleanwhether to keep track of watched history or not
videoLanguagesArray<string>list of languages to filter videos down to
videoCategoriesArray<integer> | nulllist of categories to filter videos down to (null means all categories)
videoLivestringtruefalsebothfilter videos down to lives (true), VODs (false) or display both
languagestringdefault language for this user
videoQuotaintegerThe user video quota in bytes
-1videoQuotaDailyintegerThe user daily video quota in bytes
-1roleobjectShow child attributes
labelstringUserModeratorAdministratorthemestringTheme enabled by this user
accountActor & anyShow child attributes
urlstring<url>nameusernameimmutable name of the actor, used to find or mention it
Show child attributes
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>hoststring<hostname>server on which the actor is resident
hostRedundancyAllowedboolean | nullwhether this actor's host allows redundancy of its videos
followingCountinteger>= 0number of actors subscribed to by this actor, as seen by this instance
followersCountinteger>= 0number of followers of this actor, as seen by this instance
createdAtstring<date-time>updatedAtstring<date-time>displayNamestringeditable name of the account, displayed in its representations
descriptionstring | nulltext or bio displayed on the account's profile
notificationSettingsUserNotificationSettingsShow child attributes
abuseAsModeratorNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
videoAutoBlacklistAsModeratorNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newUserRegistrationNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newVideoFromSubscriptionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
blacklistOnMyVideoNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoPublishedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoImportFinishedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
commentMentionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newCommentOnMyVideoNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newFollowNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newInstanceFollowerNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
autoInstanceFollowingNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
abuseStateChangeNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
abuseNewMessageNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newPeerTubeVersionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
newPluginVersionNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoStudioEditionFinishedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
myVideoTranscriptionGeneratedNotificationSettingValueNotification type. One of the following values, or a sum of multiple values:
0NONE1WEB2EMAIL
videoChannelsArray<VideoChannel>Show child attributes
urlstring<url>nameusernameimmutable name of the actor, used to find or mention it
Show child attributes
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>hoststring<hostname>server on which the actor is resident
hostRedundancyAllowedboolean | nullwhether this actor's host allows redundancy of its videos
followingCountinteger>= 0number of actors subscribed to by this actor, as seen by this instance
followersCountinteger>= 0number of followers of this actor, as seen by this instance
createdAtstring<date-time>updatedAtstring<date-time>displayNamestringeditable name of the channel, displayed in its representations
Videos of Framasoftdescriptionstring | nullVideos made with <3 by Framasoftsupportstring | nulltext shown by default on all videos of this channel, to tell the audience how to support it
Please support our work on https://soutenir.framasoft.org/en/ <3publicEmailstring<email> | nullPublic email visible in podcast RSS feeds
isLocalbooleanupdatedAtstring<date-time>bannersArray<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>ownerAccountActor & anyShow child attributes
urlstring<url>nameusernameimmutable name of the actor, used to find or mention it
Show child attributes
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>hoststring<hostname>server on which the actor is resident
hostRedundancyAllowedboolean | nullwhether this actor's host allows redundancy of its videos
followingCountinteger>= 0number of actors subscribed to by this actor, as seen by this instance
followersCountinteger>= 0number of followers of this actor, as seen by this instance
createdAtstring<date-time>updatedAtstring<date-time>displayNamestringeditable name of the account, displayed in its representations
descriptionstring | nulltext or bio displayed on the account's profile
videosCountintegeronly included when withStats is true
viewsPerDayArray<object>only included when withStats is true. Chronologically ordered, spans the whole statsDays range. Each point aggregates viewsGroupInterval worth of views, starting at date
Show child attributes
datestring<date-time>viewsintegerviewsGroupIntervalstringdayweekmonthbucket size of viewsPerDay, only included when withStats is true
totalViewsintegerlifetime views of all the channel videos, only included when withStats is true
blockedbooleanblockedReasonstringnoInstanceConfigWarningModalbooleannoAccountSetupWarningModalbooleannoWelcomeModalbooleancreatedAtstringpluginAuthstringAuth plugin to use to authenticate the user
lastLoginDatestring<date-time>twoFactorEnabledbooleanWhether the user has enabled two-factor authentication or not
newFeaturesInfoReadnumberNew features information the user has read
videosCountintegerCount of videos published
abusesCountintegerCount of reports/abuses of which the user is a target
abusesAcceptedCountintegerCount of reports/abuses created by the user and accepted/acted upon by the moderation team
abusesCreatedCountintegerCount of reports/abuses created by the user
videoCommentsCountintegerCount of comments published
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.