Skip to content

All providers / unofficial-api-for-porntrex

PornTrex API.

Retrieve PornTrex publication dates, author names, tags, and categories.

Unofficial Python library · v2.0.0 · AGPL-3.0-only

Install
pip install unofficial-api-for-porntrex
Open the quickstart ↗

What you can build with PornTrex

Metadata fields

  • title
  • author
  • publish_date
  • duration
  • views
  • description
  • subscribers_count
  • video_qualities
  • thumbnail

Author and publication date come from page markup and can be absent on individual entries.

Use it in Python

Python · async example
from porntrex_api import Client

async def metadata(client: Client, url: str):
    video = await client.get_video(url)
    return {
        "title": video.title,
        "author": video.author,
        "publish_date": video.publish_date,
    }

Release and tests

Release 2.0.0 was published on 2026-11-15. Inspect the published distribution, source, and tests for this integration.

Integrating commercially?

The library is free under AGPL-3.0-only. Email me to discuss alternative commercial terms.

Ask about a commercial license ↗