Structures - AnimeTwist/API GitHub Wiki
This document lists the objects returned from the API Methods.
Overview
Anime Object
Attributes
idtitleMain titlealt_titleAlternative title (can benull)seasonAnime season numberongoingWhether the anime is ongoing or not0or1descriptionhb_idHummingbird IDcreated_atDate inYYYY-MM-DD HH:MI:SSupdated_atDate inYYYY-MM-DD HH:MI:SShiddenwhether the anime should be hidden or not0or1slugslug object (Only if applicable)episodeslist of episode objects (Only if applicable)
Sample response
{
"id": 203,
"title": "07-Ghost",
"alt_title": null,
"season": 1,
"ongoing": 0,
"description": "...",
"hb_id": 4135,
"created_at": "2016-08-12 00:56:52",
"updated_at": "2016-08-14 12:02:47",
"hidden": 0,
"slug": { },
"episodes": [ ]
}
Slug Object
Attributes
idsluganime_idcreated_atDate inYYYY-MM-DD HH:MI:SSupdated_atDate inYYYY-MM-DD HH:MI:SS
Sample response
{
"id": 203,
"slug": "07-ghost",
"anime_id": 203,
"created_at": "2016-08-12 00:56:52",
"updated_at": "2016-08-12 00:56:52"
}
Episode Object
Attributes
idsourcevideo source either a relative path to the Anime Twist domain or absolute pathnumberepisode number to displayanime_idcreated_atDate inYYYY-MM-DD HH:MI:SSupdated_atDate inYYYY-MM-DD HH:MI:SS
Sample response
{
"id": 11670,
"source": "/anime/07ghost/07ghost-0001.mp4",
"number": 1,
"anime_id": 203,
"created_at": "2016-08-20 12:33:12",
"updated_at": "2016-08-20 12:33:12"
}