Skip to main content

Porndoe API

An asynchronous Python API wrapper and scraper for porndoe.com

Downloads CodeQL Analysis Sync API Tests

Disclaimer


Features

Category Details
Video Fetching Fetch video objects with rich metadata (title, description, views, publish date, duration, ratings, author, performers, categories, tags, and playable sources)
Video Downloading Progressive MP4 downloads with configurable quality (best, half, worst, or specific resolutions), plus HLS when supplied by the player
Channel & Pornstar Profiles Fetch channel and pornstar profiles, biographies, statistics, videos, and related profiles
Categories & Browsing Discover categories and browse category, tag, and public video listings with pagination
Video Search Search videos and sort by relevance, newest, likes, duration, or views
Related Videos Retrieve related videos and the channel and performers associated with a video
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 porndoe_api -h for options
Type Safety Type hints and dataclass-based models throughout

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 download speed in MB/s (e.g., 2.0, 3.5)
DNS over HTTPS Route DNS queries over HTTPS for privacy and bypassing DNS-level blocks
SSL Verification Toggle SSL certificate verification on or off
Request Delay Configurable delay between requests to respect rate limits
Concurrency Control Tune video and page concurrency independently for optimal throughput

Supported Platforms

This API has been tested on Linux (x86_64), including real site requests and complete MP4 downloads. Other platforms require compatible curl_cffi and selectolax dependencies. Python 3.12 or later is required.


Installation

pip install unofficial-api-for-porndoe

Quickstart

Have a look at the Documentation for more details

import asyncio
from porndoe_api import Client, DownloadConfigRAW

async def main():
    # Initialize a Client object and close its networking session when done
    async with Client() as client:
        # Fetch a video
        video_object = await client.get_video("https://porndoe.com/watch/pd4y7n5e2j8r")

        # Information from Video objects
        print(video_object.title)

        # Download the video
        config = DownloadConfigRAW(quality="best", path="./")  # More options in the documentation
        await video_object.download(config)

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

Listing methods such as client.search() yield ScrapeResult objects. Use result.unwrap() to access each video. Listings contain summary metadata by default; use await video.load_sources("html") for full details or pass IteratorConfig(load_specific_sources=("html",)) to the listing method. Configure request pacing and concurrency through RuntimeConfig when fetching many pages.


Tests

uv sync --group dev
uv run pytest

All tests use real requests to Porndoe and its CDN, including a complete MP4 download. There are no saved HTML responses or mocked network tests. Network and scraping failures fail the tests. Requests are paced through RuntimeConfig to respect the site's rate limits.


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-porndoe 1.0.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-porndoe 1.0.0
File Size Uploaded Provenance Actions
unofficial_api_for_porndoe-1.0.0.tar.gz 24.5 kB Without provenance Details for unofficial_api_for_porndoe-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 49.2 kB

Release files / unofficial_api_for_porndoe-1.0.0.tar.gz

Download URL unofficial_api_for_porndoe-1.0.0.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d89df5c8795d88007aa105ba269d1005705a98c0cc365cde0649b83daf0638ac
BLAKE2b-256 checksum
How to use checksums
3915c6b638937065716e9161d334d66caaf8810568b602fb5c2dc144784a1764
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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_porndoe-1.0.0-py3-none-any.whl

Download URL unofficial_api_for_porndoe-1.0.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bc558710cb0bec766a565c7a6a5db575089440b3e5391830a4b5d4a78f3b6e2
BLAKE2b-256 checksum
How to use checksums
5e2beef3e4cac450d8444433ab1e91f8fbb3676240f24f449a675a9e0919755e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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-porndoe 1.0.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.

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