Search
Search channels
GET
https://peertube2.cpy.re/api/v1/search/video-channels
Parameters
searchstringrequiredqueryString to search. If the user can make a remote URI search, and the string is an URI then the PeerTube instance will fetch the remote object and add it to its database. Then, you can use the REST API to fetch the complete channel information and interact with it.
startinteger>= 0queryOffset used to paginate results
countinteger[1, 100]15queryNumber of items to return
searchTargetstringlocalsearch-indexqueryIf the administrator enabled search index support, you can override the default search target.
Warning: If you choose to make an index search, PeerTube will get results from a third party service. It means the instance may not yet know the objects you fetched. If you want to load video/channel information:
- If the current user has the ability to make a remote URI search (this information is available in the config endpoint), 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
- If the current user doesn't have the ability to make a remote URI search, then redirect the user on the origin instance or fetch the data from the origin instance API
sortstringquerySort column
hoststringqueryFind elements owned by this host
handlesanyqueryFind elements with these handles
Response
successful operation
500Internal Server Error
search index unavailable