Porn.com API
An asynchronous Python API wrapper and scraper for porn.com
Disclaimer
Features
| Category | Details |
|---|---|
| Video Fetching | Fetch typed scene objects with title, duration, poster, language, performers, categories, availability, and deferred HTML loading |
| Video Downloading | Public unencrypted HLS downloads with configurable quality (best, half, worst, or specific resolutions), remuxing, callbacks, and reports |
| Channel & Pornstar Profiles | Fetch real channel and pornstar profiles, biographies, native statistics, linked performers, and complete video listings |
| Category & Source Fetching | Browse categories, source indexes, and performer/channel directories with pagination |
| Video Search | Search videos with the site's added-period, source, duration, and HD filters |
| Host & Locale Support | Twelve verified porn.com hosts, plus straight, gay, and trans listing routes |
| Async-First | Fully asynchronous (async / await) built on top of asyncio |
| Built-in Caching | Shared BaseCore response caching and configurable request retries |
| CLI Support | Inspect metadata or download scenes — run porn_api -h for options |
| Type Safety | Type hints and dataclass-based media models throughout |
Video.author_name and author_link expose the channel where the scene supplies
it. Use await video.get_author() for the linked profile. Performer names and
real links are available in pornstars_names and pornstars_urls.
Porn.com includes external referrals as well as native scenes. Referral metadata
remains available, but is_playable=False and downloads raise VideoUnavailable.
Only the verified html metadata source is exposed; no public video JSON API,
account, playlist, or separate Model/User interface was established.
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 | Configure DNS over HTTPS through the shared backend |
| SSL Verification | Toggle SSL certificate verification on or off |
| Request Delay | Configurable delay between requests to respect rate limits |
| Concurrency Control | Configure item concurrency with IteratorConfig; site pagination is traversed sequentially |
Supported Platforms
This API has been live-tested on:
- Linux with CPython 3.15.2, FFmpeg, and ffprobe
The package requires Python 3.12+. Other platforms and interpreter versions have not been verified for this provider.
Installation
This package is currently unpublished. Install from this checkout:
pip install -e .
Install FFmpeg separately for MP4 remuxing and metadata export. Development setup and live-test commands are in USAGE.md.
Quickstart
Have a look at the Documentation for more details
import asyncio
from porn_api import Client, DownloadConfigHLS
async def main():
# Initialize a Client and close its owned network resources on exit.
async with Client() as client:
# Fetch a real Porn.com scene.
video_object = await client.get_video("https://www.porn.com/scene/208974141")
# Information from Video objects.
print(video_object.title)
# Download the video using the shared backend.
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)
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-porn 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unofficial_api_for_porn-0.1.0.tar.gz | 32.8 kB | Without provenance | Details for unofficial_api_for_porn-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unofficial_api_for_porn-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for unofficial_api_for_porn-0.1.0-py3-none-any.whl |
Total release size: 68.0 kB
Release files / unofficial_api_for_porn-0.1.0.tar.gz
| Download URL | unofficial_api_for_porn-0.1.0.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3afc75615e01f03d1222d8b3b91283c46bc1529c945bdc744a2c12ca4a52a46b
|
|
BLAKE2b-256 checksum How to use checksums |
939802374b24fc368016adb9a07d4cdf89a2187a5364024399e18ac3d377a437
|
| 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_porn-0.1.0-py3-none-any.whl
| Download URL | unofficial_api_for_porn-0.1.0-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db5596c1a873ada51304f2d76d3573f03eb67078ebbdfc44aa580f5bf344510f
|
|
BLAKE2b-256 checksum How to use checksums |
a6813fe2391ba76b64fae8ba62c89375743d113ab640b734c92ee58763343f3b
|
| 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-porn 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.