Skip to main content

YouJizz API

An asynchronous Python API wrapper and scraper for youjizz.com

YouJizz API + Python 3.12+ AGPL-3.0-only License Live API Tests

Disclaimer


Features

Category Details
Video Fetching Fetch video objects with metadata including title, description, duration, views, publish date, ratings, tags, author references, thumbnails, previews, and available qualities
Video Downloading MP4 and HLS downloading with configurable quality (best, half, worst, or specific resolutions) through Video.download()
Public User Profiles Fetch public user metadata with Client.get_user() and iterate public uploads with User.videos()
Pornstar & Category Directories Browse Client.pornstars() and Client.categories(), then iterate entries with Pornstar.videos() or Category.videos(); pornstar entries link to keyword searches
Video Search Search with Client.search_videos() using sorting, upload date, duration, phrase, and title-only filters; browse site listings with Client.videos() and Client.random_videos()
Source Selection Independently load API, HTML, or both with Client.get_video(load_api=..., load_html=...); defer metadata with load_sources() and load_fields(), including the separate read-only comments source
Async-First Fully asynchronous (async / await) built on top of asyncio
Built-in Caching Automatic response caching with configurable limits to reduce redundant network requests
CLI Support Command-line interface for quick downloads — run youjizz_api -h for options
Type Safety Typed, dataclass-based video, user, directory, and comment models

Video.author_name provides the uploader display name directly from the video page when the site exposes it. Use await video.get_author() when you need the actual user object; public profile flags determine which metadata is available.

Networking Features

The networking layer is provided by the eaf_base_api package and is fully configurable through RuntimeConfig:

Feature Description
HTTP/1.1, HTTP/2, HTTP/3 Configurable HTTP version (v1, v2, v3 — defaults to HTTP/2)
Browser Impersonation Built-in browser fingerprint impersonation via curl_cffi (defaults to Chrome)
Custom JA3 Fingerprint Override the TLS fingerprint with a custom JA3 string for advanced use cases
Proxy Support All proxy types supported (HTTP, HTTPS, SOCKS4, SOCKS5)
Proxy Authentication Username/password authentication for proxies
Bandwidth Limiting Set a maximum HLS download speed in MB/s (e.g., 2.0, 3.5)
DNS over HTTPS Route DNS queries over HTTPS for privacy
SSL Verification Toggle SSL certificate verification on or off
Request Delay Configurable delay between requests to respect rate limits
Concurrency Control Configure item concurrency and ordering through IteratorConfig; numbered HTML pages follow the site's Next links sequentially

Supported Platforms

This API has been tested and confirmed working on:

  • Linux (x86_64), Python 3.13, with FFmpeg/ffprobe

See VALIDATION.md for the live-test results, download quality matrix, and complete public-upload pagination reconciliation.


Installation

Install from this checkout (the package has not been published to PyPI):

pip install .

Quickstart

Have a look at the Documentation for more details

import asyncio
from youjizz_api import Client, DownloadConfigHLS

async def main():
    # Initialize a Client object and close its network resources when done
    async with Client() as client:
        # Fetch a video
        video_object = await client.get_video(
            "https://www.youjizz.com/videos/video-48914471.html",
            load_html=True,
        )

        # Information from Video objects
        print(video_object.title)

        # Download the video
        config = DownloadConfigHLS(quality="best", path="./", remux=True)
        await video_object.download(config)

if __name__ == "__main__":
    asyncio.run(main())

Support the Project ❤️

I develop all my projects entirely for free because I enjoy it and want to keep them accessible. If you find my work useful, please consider supporting me with a small donation — even 1 € makes a big difference and keeps me motivated!

☕ Ko-fi

https://ko-fi.com/EchterAlsFake

💳 PayPal

https://paypal.me/EchterAlsFake

🪙 Crypto (350+ currencies supported)

Crypto donation button by NOWPayments

Contribution

Do you see any issues or having some feature requests? Simply open an Issue or talk in the discussions.

Pull requests are also welcome.

License

This API is licensed under the AGPLv3. See the LICENSE file for details.

Metadata

Release files for unofficial-api-for-youjizz 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unofficial-api-for-youjizz 0.1.0
File Size Uploaded Provenance Actions
unofficial_api_for_youjizz-0.1.0.tar.gz 39.2 kB Without provenance Details for unofficial_api_for_youjizz-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unofficial-api-for-youjizz 0.1.0
File Interpreter ABI Platform Actions
unofficial_api_for_youjizz-0.1.0-py3-none-any.whl Python 3 none any Details for unofficial_api_for_youjizz-0.1.0-py3-none-any.whl

Total release size: 73.3 kB

Release files / unofficial_api_for_youjizz-0.1.0.tar.gz

Download URL unofficial_api_for_youjizz-0.1.0.tar.gz
Size 39.2 kB
Tags Source
SHA-256 checksum
How to use checksums
74e7c4f67a207e51956b94b8baa23620fb847633879efe927570b6c65ecda9e4
BLAKE2b-256 checksum
How to use checksums
d52073507e3ceb8c1c65cac735b3f82a65c8552cdca4c467c1d24b963c080a6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / unofficial_api_for_youjizz-0.1.0-py3-none-any.whl

Download URL unofficial_api_for_youjizz-0.1.0-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
decfb8639d48da93384505bc8e2b03aa00b36db5156d5f421d951d9db5e451b8
BLAKE2b-256 checksum
How to use checksums
f14750e488c6d92f9da1fc10622dba2cc74851ceb96b9e7074cf6dd47cc120c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for unofficial-api-for-youjizz 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page