API

The archive has a public, read-only JSON API at https://archive.ragtag.moe/api/v2. Responses use typed ids (vid_…, ch_…) for identity and public refs in URLs: an 11-character YouTube video id, a UC… YouTube channel id, or platform:id for other platforms. Errors are problem details with a stable code. Requests are rate limited per IP; please cache what you fetch.

Search

GET /api/v2/search?q=<text>

ParameterMeaning
qFull-text query over title, channel names, description and exact video id.
channelOnly videos of this channel ref (AND-ed with q).
sortrelevance (default), newest, oldest, views.
page1-based page for relevance (results stop at 10,000).
cursorFor other sorts: the nextCursor of the previous response.
limit1–100, default 25.

Returns {"items": [...], "total": 123, "totalIsLowerBound": false, "nextCursor": null, "nextPage": 2}.

Videos and channels

Embedding

Any archived video can be embedded with an iframe:

<iframe src="https://archive.ragtag.moe/embed/vHMV44Uza4g" width="560" height="315" frameborder="0" allowfullscreen></iframe>