Skip to content
Back to top
View this page
Edit this page

# Peertube Engines

## Peertube Video

Peertube and `SepiaSearch` do share (more or less) the same REST API and the schema of the JSON result is identical.

searx.engines.peertube.base_url = 'https://peer.tube'

  Base URL of the Peertube instance. A list of instances is available at:

  - https://instances.joinpeertube.org/instances

searx.engines.peertube.request(query, params)

  Assemble request for the Peertube API

searx.engines.peertube.video_response(resp)

  Parse video response from SepiaSearch and Peertube instances.

searx.engines.peertube.fetch_traits(engine_traits: EngineTraits )

  Fetch languages from peertube’s search-index source code.

  See videoLanguages in commit 8ed5c729 - Refactor and redesign client

## SepiaSearch

SepiaSearch uses the same languages as `Peertube` and the response is identical to the response from the peertube engines.

searx.engines.sepiasearch.request(query, params)

  Assemble request for the SepiaSearch API