Skip to content

Use animetosho api for better and more accurate searching capabilities  #29

@P0bo

Description

@P0bo

https://animetosho.org/animes
https://animetosho.org/episodes

Anime Tosho is a free, automated service that mirrors most torrents from TokyoTosho's anime category, Nyaa.si's English translated anime category, and AniDex's anime category onto various file hosting services and Usenet.

API Information:

Anime Tosho provides an API through its feed system. The feed supports both RSS/Atom and JSON formats, which can be used to query torrent and file information. Below are the details for using the JSON API:

  1. Base URL: https://feed.animetosho.org/json

  2. Basic Query Example:

    • To get a specific torrent's information:
      https://feed.animetosho.org/json?show=torrent&id=451927
      
    • JSON response example:
      {
        "title": "[Golumpa] The Case Study of Vanitas - 04 (Vanitas no Karte) [English Dub] [FuniDub 720p x264 AAC] [MKV] [93E4EC07]",
        "timestamp": 1630687502,
        "status": "skipped",
        "tosho_id": null,
        "nyaa_id": 1428689,
        "anidex_id": null,
        "torrent_url": "https://animetosho.org/storage/torrent/63923e9ac5fb7828aee2f03df3e0399a65bf376c/%5BGolumpa%5D%20The%20Case%20Study%20of%20Vanitas%20-%2004%20%28Vanitas%20no%20Karte%29%20%5BFuniDub%20720p%20x264%20AAC%5D%20%5B93E4EC07%5D.torrent",
        "magnet_uri": "magnet:?xt=urn:btih:MOJD5GWF7N4CRLXC6A67HYBZTJS36N3M&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce...",
        "total_size": 462783515,
        "num_files": 1,
        "anidb_aid": 16174,
        "anidb_eid": 241210
      }
  3. Advanced Search:

    • The feed supports advanced searching using Sphinx search expressions:
      https://feed.animetosho.org/json?qx=1&q=1080p&page=100
      
    • If you remove qx=1, it will perform a normal search:
      https://feed.animetosho.org/json?q=1080p&page=100
      
  4. Filtering by AniDB IDs:

    • You can filter results by providing AniDB IDs (aids):
      https://feed.animetosho.org/json?qx=1&q=1080p&aids=69&page=10
      
    • You can supply up to 20 AniDB IDs at once, separated by commas:
      aids=69%2C75
      
    • The maximum page number is 100.

Parameters

  • show: Set this to "torrent" to get detailed information about a specific torrent.
  • id: The ID of the torrent you want to retrieve details for.
  • qx: Set this to "1" to enable query search mode.
  • q: The search query string.
  • page: Page number for pagination.
  • aids:Filter by anidb id(s).
  1. Searching Torrents by Query
    • You can search for torrents by providing a query string. The API also supports pagination.
    • URL Format:
      https://feed.animetosho.org/json?qx=1&q={query}&page={page_number}
      
    • Example:
      https://feed.animetosho.org/json?qx=1&q=1080p&page=100
      
    • Response:
      [
          {
              "id": 628768,
              "title": "[Breeze] Tsuki ga Michibiku Isekai Douchuu Dai Ni Maku | Tsukimichi -Moonlit Fantasy- S02E24 [1080p AV1][multisub]",
              "link": "https://animetosho.org/view/breeze-tsuki-ga-michibiku-isekai-douchuu-dai-ni.n1836009",
              "timestamp": 1718915161,
              "status": "complete",
              "torrent_url": "https://animetosho.org/storage/torrent/83ec99f67fd274000e1eb1dc31f988f607659406/[Breeze] Tsukimichi -Moonlit Fantasy- S02E24 [1080p AV1][multisub].torrent",
              "info_hash": "83ec99f67fd274000e1eb1dc31f988f607659406",
              "magnet_uri": "magnet:?xt=urn:btih:QPWJT5T72J2AADQ6WHODD6MI6YDWLFAG&tr=udp://open.stealth.si:80/announce",
              "nzb_url": "https://animetosho.org/storage/nzbs/00099820/[Breeze] Tsukimichi -Moonlit Fantasy- S02E24 [1080p AV1][multisub].nzb",
              "total_size": 728391346,
              "num_files": 1,
              "anidb_aid": 16786,
              "anidb_eid": 281055
          }
      ]

Response Fields

  • title: Title of the torrent.
  • timestamp: Unix timestamp of when the torrent was indexed.
  • status: Status of the torrent (e.g., complete, skipped).
  • tosho_id: ID from TokyoTosho if available.
  • nyaa_id: ID from Nyaa if available.
  • anidex_id: ID from AniDex if available.
  • torrent_url: Direct link to download the torrent file.
  • magnet_uri: Magnet URI of the torrent.
  • nzb_url: Direct link to download the NZB file if available.
  • total_size: Total size of the torrent in bytes.
  • num_files: Number of files within the torrent.
  • anidb_aid: AniDB anime ID if available.
  • anidb_eid: AniDB episode ID if available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions