Changelog — YouJizz API
0.1.0 — current source
0.2.0 — 2026-11-15
- Use shared pagination for video listings and search. Public user feeds read the site's ordered upload IDs in thumbnail batches.
Typed Video, Collection, Pornstar, Category, User and Comment objects; lazy API, HTML and comments; search, listings and directories; MP4/HLS downloads; CLI; shared networking and iterator controls. This entry describes the public interface.
YouJizz API getting started
Version 0.2.0. Requires Python 3.12+, eaf-base-api[hls]>=4.3.0 and selectolax.
pip install unofficial-api-for-youjizz
youjizz_api -h
import asyncio
from youjizz_api import Client, DownloadConfigRAW
async def main():
async with Client() as client:
video = await client.get_video("48914471", load_api=True, load_html=True)
print(video.title, video.duration, video.available_qualities)
await video.download(DownloadConfigRAW(quality="worst", path="./downloads"))
asyncio.run(main())
FFmpeg is required for HLS remuxing; ffprobe is used by live download checks. Client closes its own core, while injected BaseCore instances remain caller-owned. See Client, source loading and downloading.
Downloading — YouJizz API
from youjizz_api import DownloadConfigRAW, DownloadConfigHLS
await video.download(DownloadConfigRAW(quality="worst", path="./downloads"))
await video.download(DownloadConfigHLS(quality="best", path="./downloads", remux=True))
HTML loading supplies direct_urls and hls_urls by numeric encoding label. available_qualities is their sorted union, including labels such as 288 or 368. Downloads use per-quality masters because Auto may omit older renditions. Presets best/half/worst select the highest/middle/lowest sorted label. Missing numeric quality selects the nearest, preferring the higher label on a tie. Signed queries are preserved. Refresh expired URLs with refresh_sources(). For explicit filenames set no_title=True and a complete path. Shared download reports, callbacks and cancellation remain available. Actual dimensions can differ from encoding labels, especially portrait media.
Iteration and results — YouJizz API
pages is a positive page count or "all"; start_page is one based.
HTML pagination follows actual Next links, retains filters and detects repeated
pages. Public user uploads use the same 24-ID slices as the website UI.
IteratorConfig controls item concurrency, loading, errors and original/completion
order. HTML discovery is sequential; page concurrency does not prefetch unknown links.
from contextlib import aclosing
from youjizz_api import Client, IteratorConfig
async with Client() as client:
async with aclosing(client.videos(pages=2, iterator_config=IteratorConfig(order="original"))) as stream:
async for result in stream:
video = result.unwrap()
await video.load_fields("title")
print(video.video_id, video.title)
Close partially consumed generators with contextlib.aclosing.
Live validation — YouJizz API
The following is preserved implementation evidence from 2026-11-10; these live checks were not rerun during the documentation maintenance.
Live validation
Date: 2026-11-10. Target: public https://www.youjizz.com from this Linux environment.
Environment and commands
uv venv .venv --python 3.13
uv pip install --python .venv/bin/python -e ../eaf_base_api -e '.[test]'
.venv/bin/python -m pytest -q -n 4 --junitxml=/tmp/youjizz-final-parallel.xml
uvx ruff check youjizz_api --select F
uv build --out-dir dist
The SDK uses eaf-base-api[hls]>=4.3.0. Runtime dependencies include selectolax and the backend's m3u8 extra. FFmpeg/ffprobe validate finished media. There are no offline fixtures, synthetic parser tests, mocks, skipped network gates, or browser cookie reads.
Final full-suite result: 63 passed, 0 failed, 0 errors, 0 skipped, in 198.64 seconds with four test workers. The suite emitted 899 deprecation warnings from the shared backend's existing Tenacity initial parameter; these do not represent failed requests or skipped checks.
Recorded pytest summary:
63 passed, 899 warnings in 198.64s (0:03:18)
This successful full run completed before the VPN connection changed. Temporary logs were no longer present after the interruption; the recorded tool result and the per-quality matrix below preserve the validation evidence. The commands above reproduce the checks on the current connection.
The final run followed fixes identified during earlier live checks: incomplete Auto HLS quality coverage, an empty legacy API thumbnail, and newly uploaded videos with an empty slug and no VideoObject JSON-LD. The complete metadata/listing/profile rerun passed 50 tests before the final 63-test run. The final full run revalidated every implemented capability and the complete download matrix. No required checks remained blocked.
Observed capabilities and routes
| Capability | Live route / behavior |
|---|---|
| Video | /videos/{slug}-{id}.html; stable IDs, embed aliases /videos/embed/{id} |
| Structured video metadata | Matching VideoObject JSON-LD, Open Graph, hidden statistics inputs, dataEncodings public JSON array |
| Independent video API | /api/thumbs?ids={id}; a JSON list matched by record_num, also used by public profile UI |
| Listings | /most-popular/{page}.html, /newest-clips/{page}.html, /top-rated/{page}.html, /top-rated-week/{page}.html, /top-rated-month/{page}.html, /trending/{page}.html, /highdefinition/{page}.html |
| Random | /random returns a listing, not a single-video redirect |
| Search | /search/{optional_order_}{query}-{page}.html; actual Next links use normalized query spelling and retain query filters |
| Search orders | Empty/relevance, recent, views, rating, length |
| Search filters | Duration boundaries 60–180, 180–600, 600–1200, 1200+ seconds; all/any/exact phrase; title-only; explicit date bounds |
| Unsupported search-HD control | Frontend says searchHD: false; /search/solo-1.html?hd=1 still includes videos whose thumbnail API says hd=0. Excluded from the provider's search interface, with a live regression check of the observed limitation |
| Category/tag directory | /tags; 12,461 observed entries, linking /tags/{query}-1.html; navigation also links /categories/{query}-1.html |
| Pornstar directory | /pornstars/name/{A..Z}; A has 1,352 observed entries, linking keyword search rather than profiles |
| Public users | /profile/user/{id} is an Angular shell; its controller fetches /api/profile/{id} and separately respects public profile/upload flags |
| Public uploads | `/api/socialVideos/{id}?order=recent |
| Comments | /api/comments/{video_id} returns comments/replies and like/dislike action rows; the latter are excluded from typed comment results |
| Unsupported private/account features | No authentication actions implemented. The observed private favorites endpoint returned HTTP 500; no successful favorites capability is claimed |
| Collections | The site's playlist and socialPlaylist feature flags are false; no Playlist, Model, or Channel classes are advertised |
Accepted hosts are exactly youjizz.com and www.youjizz.com. The apex redirects to www and video identity/duration are verified across both. No mirror or language subdomain is confirmed. English and Chinese are client-side interface translations, not separate verified content routes. Country selectors personalize rankings rather than prove a language host.
Source behavior and metadata variants
The suite checks API-only, HTML-only, combined, both sequential orders, deferred fields, and serialization without incidental fetches. API precedes HTML for shared fields, except thumbnails: legacy video 48914471 returns an empty API thumbnail while HTML has a real image. Empty URLs stay absent rather than resolving to the site root. HTML retains description, calendar publication date, embed/canonical identity, tag names, exact rating/votes, author references, and signed media maps. Preview and sprite metadata come from the thumbnail API. Comments have a separate lazy source; their integer timestamps are Unix seconds.
Representative metadata pages include IDs 30792291 (rich description and ratings), 83968481 (no rating/votes), 48914471 (legacy/288p and empty API thumbnail), and 75799072 (nonstandard 368p). The requested VideoObject and hidden video ID must agree. Sparse video 128889181 has an empty title slug and omits VideoObject JSON-LD; its Open Graph URL and hidden ID must both identify the requested video before ordinary Open Graph fields are accepted. The regression compares its exact duration, thumbnail, publication date, missing title, and stable identity against the live page. A real nonexistent ID 999999999999999 returns HTTP 404 and remains an error.
Private user fields are filtered according to public flags. Contact/internal fields returned by the raw endpoint are not copied into domain objects. Public uploads are governed separately by the UI's public-video flag. Required age verification or access challenges fail explicitly.
Complete listing reconciliation
- User 15100401: 510 expected / 510 actual IDs, 22 pages, 6 IDs on the last page, no duplicates, omissions, or unexpected IDs. Every 24-ID slice was independently checked against the actual thumbnail response used by the Angular UI. First, next, middle, last, and beyond-last requests agree. A separate live check confirmed that thumbnail response ordering follows the requested upload ID ordering. The user's profile is private but its uploads are explicitly public; hidden profile identity is not exposed.
- Pornstar directory entry Abby Marie: directory snapshot 1, actual keyword listing 6 expected / 6 actual IDs on one page; next/beyond-last is empty. The six results are keyword-search matches, not a curated upload count, so the stale directory count is not treated as an exact profile total.
- Public user 52588351: actual upload endpoint is empty; the API yields zero IDs and terminates. Banned user 51843451 remains unavailable.
- Listing comparisons establish the public session first: the initial visit can set
yjNewestShuffleandyjRandomThumbscookies. Empty-title URLs (/videos/-{id}.html) are included rather than discarded. General search: deterministic views sorting is used to compare two full 24-video pages. Relevance can reorder equally ranked matches between live requests, and Next URLs normalize spelling; the test does not assume an invented route or truncate an unordered sample.
Download validation
Every tested download goes through Video.download() and the shared backend. Each full file is inspected with ffprobe for dimensions, duration, and audio availability. The matrix includes every source label in each representative sample, both MP4 and HLS, the presets best/half/worst, and absent numeric quality 999 with nearest-tier fallback. It also covers concurrent different-video downloads, refreshed sources, repeated selections, callbacks, HLS completion reports, remuxed MP4, original transport streams, and the CLI.
The site's Auto HLS master omits 288p on video 48914471 and 368p on video 75799072. Their actual per-quality masters contain these renditions. The implementation uses those masters, preserving the real dimensions rather than silently accepting a lower Auto rendition. Video 51957501 has a portrait 404×720 stream with no audio in its source (master codec list is video-only); silence is retained and tested explicitly. Video 80517371 uses a portrait 1920 encoding label.
| Video ID | Source label | Validated dimensions | MP4 seconds / bytes | HLS seconds / bytes | Audio |
|---|---|---|---|---|---|
| 48914471 | 240 | 426×240 | 44.920000 / 2,122,218 | 45.000000 / 2,122,378 | Present |
| 48914471 | 288 | 512×288 | 44.920000 / 1,995,530 | 44.954059 / 1,996,903 | Present |
| 48914471 | 360 | 640×360 | 44.920000 / 3,169,372 | 45.000000 / 3,170,384 | Present |
| 48914471 | 480 | 852×480 | 44.920000 / 4,627,406 | 45.000000 / 4,627,102 | Present |
| 48914471 | 720 | 1280×720 | 44.920000 / 7,884,806 | 45.000000 / 7,887,010 | Present |
| 75799072 | 240 | 416×240 | 18.600000 / 1,064,843 | 18.666667 / 1,068,546 | Present |
| 75799072 | 360 | 626×360 | 18.600000 / 1,368,272 | 18.666667 / 1,372,490 | Present |
| 75799072 | 368 | 640×368 | 18.603000 / 1,453,400 | 18.666667 / 1,457,009 | Present |
| 51957501 | 720 | 404×720 | 12.686781 / 879,842 | 12.686778 / 889,003 | Absent in source |
| 80517371 | 240 | 134×240 | 18.922000 / 1,068,076 | 18.985633 / 1,071,844 | Present |
| 80517371 | 360 | 202×360 | 18.922000 / 644,267 | 18.985633 / 648,530 | Present |
| 80517371 | 480 | 270×480 | 18.922000 / 950,492 | 18.985633 / 954,718 | Present |
| 80517371 | 720 | 404×720 | 18.922000 / 4,416,412 | 18.985633 / 4,420,194 | Present |
| 80517371 | 1920 | 1080×1920 | 18.918900 / 23,629,680 | 18.952267 / 23,633,682 | Present |
| 55374481 | 240 | 426×240 | 9.080000 / 546,581 | 9.100000 / 549,793 | Present |
| 55374481 | 360 | 640×360 | 9.080000 / 965,448 | 9.100000 / 968,494 | Present |
| 55374481 | 480 | 852×480 | 9.080000 / 1,662,320 | 9.100000 / 1,665,390 | Present |
| 55374481 | 720 | 1280×720 | 9.080000 / 1,431,115 | 9.100000 / 1,434,155 | Present |
| 55374481 | 1080 | 1920×1080 | 9.080000 / 5,668,060 | 9.100000 / 5,671,124 | Present |
All 38 explicit quality/format downloads and 40 preset/fallback selections passed. Another 4 complete downloads cover two concurrent MP4 transfers, original HLS transport-stream output, and the CLI: 82 complete files total. No download quality gate was skipped. All source labels and actual heights matched; durations were within two seconds of the site's integer duration. Audio was retained wherever supplied. The observed HLS and MP4 duration differences reflect container timing, not truncated downloads.
Packaging and limitations
The source archive and wheel were built successfully. Archive inspection confirms README, copied AGPL license, package exports, and py.typed; the wheel embeds README project metadata and the license. No publication or push was performed. Download outputs are temporary and outside the repository.
Counts are live observations rather than permanent catalog guarantees. Other operating systems, mirror hosts, translated content routes, authenticated features, and qualities not present in the sampled videos are unverified. No backend or Porn Fetch application files were changed.
Searching and filtering — YouJizz API
Use Client.videos(listing=Listing.POPULAR) for popular/newest/top/week/month,
trending and HD listings, and Client.random_videos() for the random page.
Enums are in youjizz_api.modules.sorting.
Client.search_videos supports relevance/newest/views/rating/length sorting,
duration ranges, phrase mode, title_only and date_from/date_to calendar dates.
Empty queries raise ValueError. The website disables HD keyword search; use the
separate HD listing rather than assuming a search HD filter works.
from youjizz_api.modules.sorting import Sort
stream = client.search_videos("Leah Gotti", pages=2, sort=Sort.VIEWS)
Category/tag listings and the alphabetical pornstar directory are separate APIs; account management, uploads, favorites and playlists are unsupported.
Source loading — YouJizz API
async with Client() as client:
video = await client.get_video("30792291", load_api=False, load_html=False)
print(video.to_dict())
await video.load_sources("api")
await video.load_fields("tags")
await video.load_sources("comments")
The thumbnail API provides listing metadata; HTML supplies media encodings and richer fields. Comments are loaded only when explicitly requested. API-only, HTML-only, both and deferred modes are independent, with stable field precedence. Listing results initially contain identity only. IteratorConfig can load selected sources or fields. Networking, caches, retries and proxies use the supplied BaseCore.
YouJizz API guide
YouJizz API Documentation
Features
| Capability | Public interface |
|---|---|
| Video metadata | Client.get_video(), Video(BaseMedia), independent API/HTML/deferred loading |
| Video downloads | MP4 with DownloadConfigRAW; HLS with DownloadConfigHLS, optional remux and reports |
| Listings | Popular, newest, top/all/week/month, trending, HD and random via Client.videos() / Client.random_videos() |
| Search | Relevance/newest/views/rating/length, duration, phrase mode, title filter, date bounds |
| Tags/categories | Client.categories(), Client.get_category(url), Category.videos() |
| Pornstar directory | Alphabetical Client.pornstars(letter), Pornstar.videos() |
| Public user uploads | Client.get_user(), User.videos() with complete numbered pagination |
| Relationships | Video.get_author(), Video.related_videos() |
| Comments | Read-only, separately lazy comments source; typed comments and reply/author references |
| CLI | Metadata inspection and MP4/HLS downloads |
A pornstar is an entry in the site's alphabetical directory whose videos link to keyword search. There is no separate pornstar biography/profile endpoint. Directory counts are snapshots and can differ from current search matches. No Model or Channel classes are invented.
Networking, caching, retries, transport settings, proxies, iterator controls, cancellation, and downloads use the current eaf-base-api backend. A client closes its own core; an injected core remains owned by the caller. Close partially consumed generators with contextlib.aclosing.
Supported Platforms
Live validation is performed on this Linux environment with Python 3.13 and FFmpeg/ffprobe. Other platforms are not yet verified.
Installation
Install from PyPI:
pip install unofficial-api-for-youjizz
Python 3.12+ and eaf-base-api[hls]>=4.3.0 are required. FFmpeg is needed for HLS remuxing and ffprobe for live download tests. The local shared backend is authoritative; see live validation for the development environment setup.
Quickstart
import asyncio
from contextlib import aclosing
from youjizz_api import Client, DownloadConfigRAW, IteratorConfig
from youjizz_api.modules.sorting import Sort
async def main():
async with Client() as client:
video = await client.get_video("https://www.youjizz.com/videos/video-48914471.html",
load_api=True, load_html=True)
print(video.title, video.duration, video.available_qualities)
await video.download(DownloadConfigRAW(quality="worst", path="./downloads"))
stream = client.search_videos("Leah Gotti", pages=2, sort=Sort.VIEWS,
iterator_config=IteratorConfig(order="original"))
async with aclosing(stream):
async for result in stream:
item = result.unwrap()
await item.load_fields("title")
print(item.video_id, item.title)
asyncio.run(main())
pages is a positive page count or "all"; start_page is one based. HTML pagination follows the site's actual Next links, retains filters, and detects repeated pages. User uploads use the site's public ID list and the same 24-ID page slices as its Angular UI. IteratorConfig retains item concurrency, source/field loading, error modes, and original/completion ordering. HTML pages are discovered sequentially; page concurrency does not prefetch unknown Next links. Listing objects initially contain identity only; opt into detail loading with load_specific_sources or load_specific_fields.
from youjizz_api import Client
async def inspect_sources():
async with Client() as client:
video = await client.get_video("30792291", load_api=False, load_html=False)
print(video.to_dict()) # no network fetch, unloaded fields omitted
await video.load_sources("api") # /api/thumbs?ids=30792291
await video.load_fields("tags") # HTML only
await video.load_sources("comments")
print(video.comment_count)
Synchronous access to an unloaded field raises the shared DataNotLoadedError. None means the loaded source knows the field is absent. Empty-title uploads with an empty URL slug are accepted; pages without VideoObject JSON-LD use Open Graph only when both the hidden ID and the Open Graph URL identify the requested video. API-only, HTML-only, both, and deferred loading are independent; loading either order gives the same precedence.
| Source | Fields and semantics |
|---|---|
API (/api/thumbs) |
Title, duration (integer seconds), length (display string), views (decimal string), thumbnail, preview URL, HD flag, thumbnail count, sprite URL |
HTML (matching VideoObject JSON-LD, identity-checked Open Graph fallback, DOM, public dataEncodings) |
Title/duration/length/views/thumbnail fallback; description; publish date (site calendar date, no invented timezone); canonical/embed URLs; tags; rating (nullable float out of 5); rating votes (integer); author ID and public author link/name when rendered; direct/HLS maps and available qualities |
Comments (/api/comments/{id}) |
Typed comments (Unix timestamps in seconds), including replies, excluding like/dislike action rows; count is the number of these returned records, not an inferred UI total |
API precedes HTML for shared fields except thumbnails: HTML takes precedence because the thumbnail API returns an empty string on some legacy videos. API-only loading reports that absence as None. Rating uses HTML precision; the thumbnail API's rounded score is not substituted. available_qualities is the sorted union of the site's numeric encoding labels; direct_urls and hls_urls give format-specific availability. Labels can include 288, 368, and portrait height 1920. Actual dimensions are checked against completed downloads in the live suite.
m3u8_base_url retains the site's Auto master when present, otherwise a real per-quality master. Downloads select the per-quality master: Auto can omit older renditions. Quality presets are best, half (middle sorted label), and worst; a missing numeric quality uses the nearest label, preferring the higher one on a tie. Signed query strings remain intact. Download configurations are copied without replacing callbacks or cancellation events. await video.refresh_sources() returns a new HTML-loaded Video after refreshing the core cache; use it when source URLs expire.
User profile metadata respects the site's public flags, including hidden usernames. Public upload lists remain available when the site separately marks videos public. Raw profile responses, contact information, internal fields, and private favorites are not exposed. Account management, uploads, favorites, and playlists are outside the supported public interface; the site's playlist feature is disabled and the observed favorites request failed with HTTP 500.
Only youjizz.com and www.youjizz.com are accepted. The apex redirects to www. Numeric video IDs and /videos/embed/{id} links are supported. No alternate mirror or language subdomain was confirmed. The site disables its search-HD feature and the rendered hd=1 search control still returns SD videos; no HD search filter is advertised. Its separate HD listing remains available. The UI offers English and Chinese through client-side translation; this provider does not invent locale-specific routes. Access challenges and required age verification fail explicitly.
CLI
python -m youjizz_api --download 48914471 --info
python -m youjizz_api --download 48914471 --quality 288 --format hls --output ./downloads
youjizz_api --download 48914471 --quality worst --format mp4 --output ./downloads
--info omits expiring video source URLs. HLS downloads remux to MP4; RAW downloads already contain MP4. For explicit output filenames, use the Python API with no_title=True and a complete path.
Live Tests
.venv/bin/python -m pytest -q
Latest validation: 63 passed, 0 failed, 0 skipped; 82 complete-file download checks across MP4 and HLS.
These are real network tests, including complete downloads and ffprobe inspection; no offline fixtures or mock tests are included. See live validation for commands, counts, quality evidence, and pagination reconciliation. Tests do not require login cookies and never read browser cookies.
CLI — YouJizz API
python -m youjizz_api --download 48914471 --info
youjizz_api --download 48914471 --quality worst --format mp4 --output ./downloads
youjizz_api --download 48914471 --quality 288 --format hls --output ./downloads
--download is required. --quality defaults to best, --format to mp4 and
--output to ./; supported formats are mp4 and hls. --info prints metadata
without expiring media URLs. HLS downloads remux to MP4.
Client — YouJizz API
Client(core: BaseCore | None = None) supports async with and await client.close().
async def get_video(url: str, load_html=False, load_api=True) -> Video: ...
async def get_user(url: str, load_api=True) -> User: ...
def get_category(url: str) -> Category: ...
async def pornstars(letter="A") -> list[Pornstar]: ...
async def categories() -> list[Category]: ...
def videos(listing=Listing.POPULAR, pages=1, *, start_page=1, iterator_config=None): ...
def random_videos(iterator_config=None): ...
def search_videos(query, pages=1, *, start_page=1, sort=Sort.RELEVANCE,
duration=Duration.ANY, phrase=Phrase.ALL, title_only=False,
date_from=None, date_to=None, iterator_config=None): ...
Video getters accept numeric IDs, video URLs and embed links. get_category is
synchronous and accepts a tag/category listing URL. pornstars requires A–Z.
Listings and search return asynchronous streams of ScrapeResult objects; use
result.unwrap() to obtain a Video. No account/login API is provided.
Collections and User — YouJizz API
Collection(url=..., core=..., name=..., video_count=None) exposes
videos(pages=1, *, start_page=1, iterator_config=None).
Pornstar and Category inherit Collection. Directory video counts are snapshots.
Pornstar entries point to keyword search; there is no separate biography endpoint.
No Model or Channel class is provided.
await client.get_user(url, load_api=True) accepts numeric user IDs or
/profile/user/<id> URLs. User fields include name, description, title, avatar_url,
date_joined, last_login, is_public, public_videos and banned.
user.videos(...) follows numbered upload slices from the public video-ID list.
Hidden usernames and public-upload flags are independent and respected.
Private profile fields, contact information and favorites are not exposed.
Video — YouJizz API
Video(BaseMedia) has independent api, html and comments sources.
API fields: title, duration (integer seconds), length, views (decimal string),
thumbnail_url, preview_video_url, is_hd, thumbnail_count and sprite_url.
HTML adds description, publish_date (site calendar date), canonical_url, embed_url,
tags, rating (float out of 5), rating_votes, author_id, author_name, author_link,
direct_urls, hls_urls, m3u8_base_url, available_qualities and content_url.
API takes precedence for shared fields except thumbnail_url, which prefers HTML.
await video.get_author(load_api=True) returns User or None.
video.related_videos(...) yields related result objects.
await video.load_sources("comments") loads typed comments and comment_count.
The count covers returned comment records, excluding action rows; reply references
and Unix timestamps are preserved.
await video.refresh_sources() returns a new HTML-loaded Video with refreshed cache.
Unloaded fields raise DataNotLoadedError; loaded absent fields are None.
Supported platforms and hosts — YouJizz API
Requires Python 3.12+. Prior live validation used Linux/Python 3.13 and FFmpeg/ffprobe;
other platforms have not been verified for this provider.
Only youjizz.com and www.youjizz.com are accepted. The apex redirects to www.
Numeric IDs, /videos/<slug>-<id>.html and /videos/embed/<id> identify videos.
No alternate mirror or language subdomain was confirmed. English/Chinese UI
translation does not imply locale routes. Access challenges and required age
verification fail explicitly.
Errors — YouJizz API
DataNotLoadedError means the required source has not been loaded; use load_fields or load_sources. A loaded None represents absent metadata. Shared MediaLoadError can wrap provider/network errors; inspect its cause. Invalid host/path/query/directory arguments raise validation errors. Refresh expired sources before retrying a download. An empty or unrecognized directory raises ValueError rather than claiming success. HTTP challenges and age verification are surfaced; do not bypass access controls. No browser cookies are read by the live tests.