Skip to content

Simple server with endpoints which will give you the seeder and leacher count for a magnet link

Notifications You must be signed in to change notification settings

KeeJef/MagnetPeer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This API allows you to fetch the Seed and Leecher count for a magnet link.

If you want to resolve a single magnet link call

https://cryptocommit.org/m/single

with a base 64 encoded magnet link, for example

https://cryptocommit.org/m/single?magnet=bWFnbmV0Oj94dD11cm46YnRpaDpRUlNQSVo2N1ZJMkxXMjI0NkYzRjdLTFZFMkJMWTNSUiZkbj1naW1wLTIuMTAuMzAtc2V0dXAuZXhlJnhsPTI1NzI1OTAzMiZ0cj11ZHAlM0ElMkYlMkZ0cmFja2VyLm9wZW50cmFja3Iub3JnJTNBMTMzNyUyRmFubm91bmNl

This will return a JSON object like

{magnetLink: 'magnet:?xt=urn:btih:QRSPIZ67VI2LW2246F3F7KL…2Ftracker.opentrackr.org%3A1337%2Fannounce', seeds: 1939, leechers: 17}

if you want to resolve multiple magnet links, call

https://cryptocommit.org/m/multi

in a post request it will accept an array of up to 10 raw magnets (not base 64 encoded) like

['magnet:?xt=urn:btih:QRSPIZ67VI2LW2246F3F7KLVE2BLY3RR&dn=gimp-2.10.30-setup.exe&xl=257259032&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce', 'magnet:?xt=urn:btih:QRSPIZ67VI2LW2246F3F7KLVE2BLY3RR&dn=gimp-2.10.30-setup.exe&xl=257259032&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce']

it will return a Json object like

[{"magnetLink":"magnet:?xt=urn:btih:e8e....hant.org%3A12710","seeds":325,"leechers":18},{"magnetLink":"magnet:?xt=urn:btih:ef232....%1A2421450","seeds":344,"leechers":28}]

About

Simple server with endpoints which will give you the seeder and leacher count for a magnet link

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published