Cookies disclaimer

I agree Our site saves small pieces of text information (cookies) on your device in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing our website without changing the browser settings you grant us permission to store that information on your device.

API

You can consult the database using the JSON following json API:

  • For fetcthing search results :
    https://btdht-search.tk/api/search/<query>/<page_nb>/<orderby_id>/<asc>/<category_id>.json
    Categories ids are:
    • all: 0
    • video: 1
    • audio: 2
    • archive: 3
    • document: 4
    • software: 5
    • image: 6
    • other: 7
    Order ids are:
    • search score: 1
    • name: 2
    • size: 3
    • created: 4
    • files number: 5
    • peers: 6
    • seeds: 7

    Set asc to 1 for sorting in ascending order, and 0 for descending order.

    For instance, search for "debian", return the first result page, order by pertinence (score), descending order (more pertinent results, first), results from all categories:
    $ curl https://btdht-search.tk/api/search/debian/1/1/1/0.json
    [
     {
      "peers": 0, 
      "seeds": 1, 
      "hash": "7661229811ef32014879ceedcdf4a48f256c88ba", 
      "name": "debian-8.4.0-i386-netinst.iso", 
      "complete": 0, 
      "created": 1477188735, 
      "last_scrape": 1477319941, 
      "file_nb": 1, 
      "score": 0.5714285714285714, 
      "size": 331350016
     }, 
     {
      "peers": 0, 
      "seeds": 0, 
      "hash": "3abddf1c551b4a5da02413dcd71fce0599e01d04", 
      "name": "debian-8.0.0-i386-netinst.iso", 
      "complete": 0, 
      "created": 1477014396, 
      "last_scrape": 1477319941, 
      "file_nb": 1, 
      "score": 0.5714285714285714, 
      "size": 330301440
     }, 
    ...
    ]
    
  • For reading a specific torrent info:
    https://btdht-search.tk/api/torrent/<torrent hex hash>.json
    For instance :
    $ curl https://btdht-search.tk/api/torrent/7661229811ef32014879ceedcdf4a48f256c88ba.json
    {
     "peers": 0, 
     "seeds": 1, 
     "hash": "7661229811ef32014879ceedcdf4a48f256c88ba", 
     "name": "debian-8.4.0-i386-netinst.iso", 
     "complete": 0, 
     "created": 1477188735, 
     "last_scrape": 1477319941, 
     "file_nb": 1, 
     "size": 331350016
    }
    
  • Fetching recent torrents:
    https://btdht-search.tk/api/recent/<category_id>/<page_nb>.json
    For instance:
    $ curl https://btdht-search.tk/api/recent/0/1.json
    [
     {
      "peers": 9, 
      "seeds": 10, 
      "hash": "410660b3744984876f31c68d2dd2cf56e4a5d3af", 
      "name": "SNIS-659FHD.mp4", 
      "complete": 1637, 
      "created": 1477321297, 
      "last_scrape": 1477321383, 
      "file_nb": 1, 
      "size": 7470086567
     }, 
     {
      "peers": 0, 
      "seeds": 12, 
      "hash": "a61776bf5d01764a338296166ccdea7287fa49ca", 
      "name": "The.Wave.2016.TRUEFRENCH.DVDRIP-www.lien-torrent.com.com.avi", 
      "complete": 15, 
      "created": 1477321297, 
      "last_scrape": 1477321383, 
      "file_nb": 1, 
      "size": 1137139826
     }, 
    ...
    ]
    
  • Fetching top torrents:
    https://btdht-search.tk/api/top/<category_id>/<page_nb>.json
    For instance:
    $ curl https://btdht-search.tk/api/top/0/1.json
    [
     {
      "hash": "4e803a9d07492a5e8558d441b2a87b2b4ed67fde",
      "complete": 48397,
      "last_scrape": 1482774594,
      "file_nb": 2,
      "categories": [
       "video"
      ],
      "size": 989948328,
      "peers": 7843,
      "name": "The Accountant (2016) [YTS.AG]",
      "created": 1482610224,
      "magnet": "magnet:?xt=urn:btih:4e803a9d07492a5e8558d441b2a87b2b4ed67fde&db=The%20Accountant%20%282016%29%20%5BYTS.AG%5D&tr=...",
      "seeds": 8299
     },
    ...
    ]
    
Page 1 always exists. You will get a 404 not found error if trying to fetch above the last page