Catalog PyPI
Back to packageRELEASE DETAILS

2.1.1

PyPI

1337x

Unofficial API of 1337x.to

1337xtorrents
Published21 Dec 2025
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 2.1.1 documentation

1337x

Stars Issues

The ultimate Python API wrapper for 1337x.

Table of Contents

Installation

Install via PyPi:

pip install 1337x

Or install from the source:

pip install git+https://github.com/hemantapkh/1337x

Examples

⚠️ Note: Due to a recent change on the 1337x website, using the .search() method without a category may return empty results. Specifying a category is temporarily recommended to ensure functionality.

Searching Torrents

import py1337x

torrents = py1337x.Py1337x()

# Basic search
results = torrents.search(
    'ubuntu',
    page=1,
    category=py1337x.category.APPS
)
for result in results.items:
  print(f"Title={result.name} Seeders={result.seeders}")

# Search with sorting by seeders
results = torrents.search('vlc', sort_by=py1337x.sort.SEEDERS, category=py1337x.category.APPS)
print(results)

# Get today's trending torrents
results = torrents.trending()
print(results)

Getting Torrent Information

To get magnetlink and other information of the torrent.

# Getting info the the first result of the above search
torrent_id = results.items[0].torrent_id
info = torrents.info(torrent_id=torrent_id)
print(info)

# Convert the result to dictionary
info_dict = info.to_dict()
print(info_dict)

Asynchronous Usage

For asynchronous usage, all functionalities are the same; use AsyncPy1337x instead of Py1337x:

import asyncio
from py1337x import AsyncPy1337x

async def main():
    torrents = AsyncPy1337x()
    results = await torrents.search('vlc media player')
    print(results)

asyncio.run(main())

Documentation

The detailled documentation of the project is available here.

Contributing

Any contributions you make are greatly appreciated.

Thanks to every contributors who have contributed in this project.

License

Distributed under the MIT License. See LICENSE for more information.


Author/Maintainer: Hemanta Pokharel

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
asyncer
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
asyncer==0.0.11runtime
beautifulsoup4
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
beautifulsoup4<5,>=4.12.3runtime
cloudscraper
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
cloudscraper<2,>=1.2.71runtime
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
requests<3,>=2.32.3runtime

Distribution files

2 collected
1337x-2.1.1-py3-none-any.whl

bdist_wheel · 9.83 KB · Python py3

Source file
1337x-2.1.1.tar.gz

sdist · 8.75 KB · Python source

Source file

Repository

ACCESSIBLE
hemantapkh/1337x

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
21 Dec 2025
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

26count
Gauge · observed snapshots20 Oct 2026
26130
2026-10-20: 26 · observed 2026-10-20T17:09:39.9381418Z
20 Oct20 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-20262026-10-20T17:09:39.9381418Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 15:13 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:4c671ff7522d37db80083953fb9ee2cb65fb01175d3cd7577bdd045918a16843

Other collected versions

View all collected versions →