mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 00:14:00 +02:00
* fix: update links to production domain * add missing README change
title
| title |
|---|
| Video Index |
Video Index Endpoint
The video index endpoint returns a listing of video resources.
URL
GET /api/video/
Authentication
None
Parameters
| Name | Required | Description |
|---|---|---|
| fields | No | Sparse fieldsets for resource types |
| filter | No | Filters for anime resources & constraining the inclusion of related resources |
| include | No | Inclusion of related resources |
| page[number] | No | The page of anime resources to display |
| page[size] | No | The number of anime resources to display for the current page |
| q | No | The query to search for matching anime resources |
| sort | No | The list of fields to sort the resources |
Allowed Sort Fields
| Name | Description |
|---|---|
| id | Sort resources on the primary key |
| basename | Sort resources on the basename of the file in storage |
| filename | Sort resources on the filename of the file in storage |
| path | Sort resources on the path of the file in storage |
| size | Sort resources on the size of hte file in storage in Bytes |
| mimetype | Sort resources on the media type of the file in storage |
| resolution | Sort resources on the frame height of the file in storage |
| nc | Sort resources on whether the video is creditless |
| subbed | Sort resources on whether the video includes subtitles of dialogue |
| lyrics | Sort resources on whether the video includes subtitles of song lyrics |
| uncen | Sort resources on whether the video is an uncensored version |
| source | Sort resources on the origin of the video |
| overlap | Sort resources on the degree of overlap between the sequence and episode |
| created_at | Sort resources on the resource creation date |
| updated_at | Sort resources on the resource last modified date |
| deleted_at | Sort resources on the resource deletion date |
| random | Sort resources randomly. Ignored if other sort fields are provided. |
Filters
| Name | Description |
|---|---|
| id | Filter resources on the primary key |
| basename | Filter resources on the basename of the file in storage |
| filename | Filter resources on the filename of the file in storage |
| path | Filter resources on the path of the file in storage |
| size | Filter resources on the size of hte file in storage in Bytes |
| mimetype | Filter resources on the media type of the file in storage |
| resolution | Filter resources on the frame height of the file in storage |
| nc | Filter resources on whether the video is creditless |
| subbed | Filter resources on whether the video includes subtitles of dialogue |
| lyrics | Filter resources on whether the video includes subtitles of song lyrics |
| uncen | Filter resources on whether the video is an uncensored version |
| source | Filter resources on the origin of the video |
| overlap | Filter resources on the degree of overlap between the sequence and episode |
| created_at | Filter resources on the resource creation date |
| updated_at | Filter resources on the resource last modified date |
| deleted_at | Filter resources on the resource deletion date |
| trashed | Filter resources on trashed (deleted) status {With, Without, Only} |
| has | Filter resources on relations within allowed include paths |
Response
{
videos: [
{
id: id,
basename: "basename",
filename: "filename",
path: "path",
size: size,
mimetype: "mimetype",
resolution: resolution,
nc: nc,
subbed: subbed,
lyrics: lyrics,
uncen: uncen,
source: "source",
overlap: "overlap",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at",
tags: "tags",
link: "link"
},
...
],
links: {
first: "first",
last: "last",
prev: "prev",
next: "next"
},
meta: {
current_page: current_page,
from: from,
path: "path",
per_page: per_page,
to: to
}
}