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.
GET /api/v1/search
q | search query, just like using the search bar |
v | find one video with the given video id |
channel_id | find videos that belong to the given channel id |
sort | sort field, can be one of
|
sort_order | either asc or desc |
from | offset results for pagination |
size | number of results to show in one page |
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
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.