All providers / unofficial-api-for-xvideos
XVideos API.
Read XVideos titles, view counts, uploader credits, and playlist metadata.
Unofficial Python library · v3.0.0 · AGPL-3.0-only
pip install unofficial-api-for-xvideosExport an XVideos playlist as JSON Lines
Read the first page of a public playlist and write its titles and URLs as JSON Lines. Change PLAYLIST to export a different public collection.
After installing the package above, save this as example.py
and run python example.py.
import asyncio
import json
from xvideos_api import Client
PLAYLIST = "https://de.xvideos.com/favorite/89127817/playlist_3"
async def main():
client = Client()
try:
async for result in client.get_playlist(PLAYLIST, pages=1):
video = result.unwrap()
print(json.dumps({"title": video.title, "url": video.url}))
finally:
await client.core.close()
asyncio.run(main())Expected output
One JSON object per video, with title and url keys. Redirect stdout to a .jsonl file to save the records.
What you can build with XVideos
- Fetch videos
Client.get_video() - Search the catalog
Client.search() - Fetch channels
Client.get_channel() - Fetch pornstar profiles
Client.get_pornstar() - Fetch playlists
Client.get_playlist() - Download videos
Video.download()
Metadata fields
titleviewsauthor_namevideo_idtagslikeslengthcomment_countpublish_date_sourceperformers
The video model exposes views as a string. Preserve the original value or normalize it before aggregation.
Release and tests
Release 3.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 ↗