Skip to content

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

Install
pip install unofficial-api-for-xvideos
Run the example ↓ Package quickstart ↗

Export 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.

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.

Client.get_playlist() reference ↗

What you can build with XVideos

Metadata fields

  • title
  • views
  • author_name
  • video_id
  • tags
  • likes
  • length
  • comment_count
  • publish_date_source
  • performers

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 ↗