PeerTube Video Playlists API

Operations dealing with playlists of videos. Playlists are bound to users and/or channels.

GitHub OpenAPI

Operations 16

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/video-channels/{channelHandle}/video-playlists List a channel's playlists · List playlists of a channel #
Ask an LLM
“What playlists does a particular video channel have?”
“Can I sort a channel's playlists by date or name?”
Tell an agent
List the playlists of channel {channelHandle}.
Show {count} playlists for {channelHandle} sorted by {sort}.
POST /api/v1/video-channels/{channelHandle}/video-playlists/reorder Reorder a channel's playlists · Reorder channel playlists #
Ask an LLM
“How do I change the order of playlists on a video channel?”
“Can I move several playlists at once within a channel?”
Tell an agent
Move the playlist at position {startPosition} on {channelHandle} to after position {insertAfterPosition}.
Reorder {reorderLength} playlists starting at {startPosition} on {channelHandle} so they come after {insertAfterPosition}.
GET /api/v1/video-playlists/privacies List playlist privacy policies · List available playlist privacy policies #
Ask an LLM
“What privacy settings can a video playlist have?”
“Which privacy options are available for playlists?”
Tell an agent
List the available playlist privacy policies.
Show me the privacy options for playlists.
GET /api/v1/video-playlists List video playlists · List video playlists #
Ask an LLM
“Which video playlists exist across the instance?”
“Can I list only public playlists?”
Tell an agent
List all video playlists.
Show {count} playlists sorted by {sort}.
POST /api/v1/video-playlists Create a video playlist · Create a video playlist #
Ask an LLM
“How do I create a new playlist for my videos?”
“Can a new playlist be published to a specific video channel?”
Tell an agent
Create a playlist named {displayName}.
Create playlist {displayName} with privacy {privacy} on channel {videoChannelId}.
GET /api/v1/video-playlists/{playlistId} Get a video playlist · Get a video playlist #
Ask an LLM
“What are the details of one playlist?”
“Can I fetch a playlist by its ID?”
Tell an agent
Get playlist {playlistId}.
Show the details of playlist {playlistId}.
PUT /api/v1/video-playlists/{playlistId} Update a video playlist · Update a video playlist #
Ask an LLM
“How do I rename or change the privacy of an existing playlist?”
“Can I move a playlist to a different channel?”
Tell an agent
Rename playlist {playlistId} to {displayName}.
Set the privacy of playlist {playlistId} to {privacy}.
DELETE /api/v1/video-playlists/{playlistId} Delete a video playlist · Delete a video playlist #
Ask an LLM
“How do I delete a playlist I no longer need?”
“Can I remove a playlist by its ID?”
Tell an agent destructive · confirm first
Delete playlist {playlistId}.
Remove the playlist {playlistId} from the instance.
GET /api/v1/video-playlists/{playlistId}/videos List the videos in a playlist · List videos of a playlist #
Ask an LLM
“Which videos are in a particular playlist?”
“Can I page through a playlist's videos?”
Tell an agent
List the videos in playlist {playlistId}.
Show {count} videos from playlist {playlistId}.
POST /api/v1/video-playlists/{playlistId}/videos Add a video to a playlist · Add a video in a playlist #
Ask an LLM
“How do I put a video into an existing playlist?”
“Can I start a video in a playlist at a specific timestamp?”
Tell an agent
Add video {videoId} to playlist {playlistId}.
Add video {videoId} to playlist {playlistId} starting at {startTimestamp}.
POST /api/v1/video-playlists/{playlistId}/videos/reorder Reorder videos in a playlist · Reorder playlist elements #
Ask an LLM
“How do I change the order of videos inside a playlist?”
“Can I move a batch of videos within a playlist?”
Tell an agent
Move the video at position {startPosition} in playlist {playlistId} to after position {insertAfterPosition}.
Reorder {reorderLength} videos starting at {startPosition} in playlist {playlistId} so they come after {insertAfterPosition}.
PUT /api/v1/video-playlists/{playlistId}/videos/{playlistElementId} Update a video's timestamps in a playlist · Update a playlist element #
Ask an LLM
“Can I change the start and stop time a video plays in a playlist?”
“How do I trim a video's playback range within a playlist?”
Tell an agent
Set the start time of element {playlistElementId} in playlist {playlistId} to {startTimestamp}.
Trim element {playlistElementId} in playlist {playlistId} to stop at {stopTimestamp}.
DELETE /api/v1/video-playlists/{playlistId}/videos/{playlistElementId} Remove a video from a playlist · Delete an element from a playlist #
Ask an LLM
“How do I take a video out of a playlist?”
“Can I delete one element from a playlist by its ID?”
Tell an agent destructive · confirm first
Remove element {playlistElementId} from playlist {playlistId}.
Delete video {playlistElementId} from playlist {playlistId}.
GET /api/v1/users/me/video-playlists/videos-exist Check which of my videos are in playlists · Check video exists in my playlists #
Ask an LLM
“Which of my videos appear in any playlist?”
“Can I check several videos against my playlists at once?”
Tell an agent
Check whether videos {videoIds} exist in my playlists.
Tell me which of my videos {videoIds} are in playlists.
GET /api/v1/accounts/{name}/video-playlists List an account's playlists · List playlists of an account #
Ask an LLM
“What playlists does a given user or channel have?”
“Can I search an account's playlists by name?”
Tell an agent
List the playlists of {name}.
Find playlists of {name} matching {search}.
GET /api/v1/search/video-playlists Search playlists · Search playlists #
Ask an LLM
“How do I find playlists by keyword?”
“Can I search playlists on a specific host?”
Tell an agent
Search playlists for {search}.
Find playlists on host {host} matching {search}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/peertube:peertube-video-playlists-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

peertube-video-playlists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PeerTube Video Playlists API
  version: 8.1.0
  contact:
    name: PeerTube Community
    url: https://joinpeertube.org
  license:
    name: AGPLv3.0
    url: https://github.com/Chocobozzz/PeerTube/blob/master/LICENSE
  x-logo:
    url: https://joinpeertube.org/img/brand.png
    altText: PeerTube Project Homepage
  description: The PeerTube API is built on HTTP(S) and is RESTful.
servers:
- url: https://peertube2.cpy.re
  description: Live Test Server (live data - latest nightly version)
- url: https://peertube3.cpy.re
  description: Live Test Server (live data - latest RC version)
- url: https://peertube.cpy.re
  description: Live Test Server (live data - stable version)
tags:


# --- truncated at 32 KB (34 KB total) ---
# Full source: https://artifacts.apis.io/peertube/openapi/peertube-video-playlists-api-openapi.yml