API Documentation

We provide a publicly accessible API to query the data available in our archive. The following is a summary of the available endpoints. For more details, check out the source code.

Searching

Basic Search

GET /api/v1/search

Query parameters

qsearch query, just like using the search bar
vfind one video with the given video id
channel_idfind videos that belong to the given channel id
sortsort field, can be one of
  • archived_timestamp
  • upload_date
  • duration
  • view_count
  • like_count
  • dislike_count
sort_ordereither asc or desc
fromoffset results for pagination
sizenumber of results to show in one page

Example

  • Search for haachama, and sort results by video duration from longest to shortest.

    curl https://archive.ragtag.moe/api/v1/search?q=haachama&sort=duration&sort_order=desc

Embedding videos

Videos from this website can be embedded with the URL /embed/:videoId. For example,

<div style="position:relative;padding-bottom:56.25%">
  <iframe
    frameborder="0"
    allow="fullscreen"
    src="https://archive.ragtag.moe/embed/vHMV44Uza4g"
    style="position:absolute;width:100%;height:100%" />
</div>

will create a responsive iframe with a 16:9 aspect ratio like the following:

Note that chat replay is not yet available for embedded videos.

Made with 🍝 by kitsune.