v1

latestOpenAPI 3.0.0AGPLv3.02026-07-14186117194.3 KB
Accounts

List ratings of an account

get/api/v1/accounts/{name}/ratings

Path parameters

namestring required
Example:chocobozzz | chocobozzz@example.org

The username or handle of the account

Query parameters

startinteger

Offset used to paginate results

countinteger

Number of items to return

sortstring
Example:-createdAt

Sort column

rating'like' | 'dislike'

Optionally filter which ratings to retrieve

Response

successful operation

rating'like' | 'dislike' | 'none' required

Rating of the video

Example response

[
  {
    "video": {
      "category": {
        "id": 15,
        "label": "Science & Technology"
      },
      "channel": {
        "id": 42
      },
      "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,
      "language": {
        "id": "en",
        "label": "English"
      },
      "licence": {
        "id": 2,
        "label": "Attribution - Share Alike"
      },
      "likes": 42,
      "name": "What is PeerTube?",
      "originallyPublishedAt": "2010-10-01T10:52:46.396Z",
      "previewPath": "/lazy-static/previews/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg",
      "publishedAt": "2018-10-01T10:52:46.396Z",
      "shortUUID": "2y84q2MQUMWPbiEcxNXMgC",
      "thumbnailPath": "/static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg",
      "updatedAt": "2021-05-04T08:01:01.502Z",
      "uuid": "9c9de5e8-0a1e-484a-b099-e80766180a6d",
      "views": 1337
    }
  }
]