XFreeHD API
An asynchronous Python API wrapper and scraper for xfreehd.com
Disclaimer
Features
| Category | Details |
|---|---|
| Video Fetching | Fetch video objects with metadata scraped directly from HTML |
| Video Downloading | RAW/direct-based downloading with quality selection |
| Album Scraper | Fetch album details and scrape/download images page-by-page or all at once |
| Video Search | Search videos by query with support for pagination |
| Async-First | Fully asynchronous (async / await) built on top of asyncio |
| Built-in Caching | Automatic response caching with configurable limits to reduce redundant network requests |
| Type Safety | Comprehensive type hinting and dataclass-based models throughout |
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/3) |
| 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 | Route DNS queries over HTTPS for privacy and bypassing DNS-level blocks |
| SSL Verification | Toggle SSL certificate verification on or off |
| Request Delay | Configurable delay between requests to respect rate limits |
| Concurrency Control | Tune video and page concurrency independently for optimal throughput |
Supported Platforms
This API has been tested and confirmed working on:
- Windows 11 (x64)
- macOS Sequoia (x86_64)
- Linux (Arch) (x86_64)
- Android 16 (aarch64)
Installation
pip install unofficial-api-for-xfreehd
Quickstart
Have a look at the Documentation for more details
import asyncio
from xfreehd_api import Client, DownloadConfigRAW
async def main():
# Initialize a Client object
client = Client()
# Fetch a video
video_object = await client.get_video("<insert_url_here>")
# Information from Video objects
print(video_object.title)
# Download the video
config = DownloadConfigRAW(quality="best", path="./") # More options in the documentation
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.
Pagination contract (2.0.0)
Listing methods accept pages=1 and start_page=1. Page numbers are one-based
in the public API, including sites whose URLs use zero-based indexes.
pages=N consumes at most N source pages; pages="all" follows verified
navigation to exhaustion. Zero, negative numbers, booleans, fractions and numeric
strings are rejected. A requested page limit is not proof that the source ended.
Use iterator_config=IteratorConfig(order="original", load_specific_sources=())
to enumerate listing identities without loading every detail page. Request and
parser failures remain visible. Close partially consumed streams with aclosing
(or async with for ScrapeStream). Source ordering can be selected explicitly
through IteratorConfig. These changes require eaf-base-api>=4.3.0.
Metadata
Release files for unofficial-api-for-xfreehd 2.0.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_xfreehd-2.0.0.tar.gz | 28.9 kB | Without provenance | Details for unofficial_api_for_xfreehd-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unofficial_api_for_xfreehd-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for unofficial_api_for_xfreehd-2.0.0-py3-none-any.whl |
Total release size: 58.9 kB
Release files / unofficial_api_for_xfreehd-2.0.0.tar.gz
| Download URL | unofficial_api_for_xfreehd-2.0.0.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8ace1abbf2fd15ca45190ef260c1192a16941e9ed4ffe373e10ce2f4191265b
|
|
BLAKE2b-256 checksum How to use checksums |
ac0eb3fbd70eb8bca0db5073386b613a0af1dd7bc38a664ab37d00e6f83f2516
|
| 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_xfreehd-2.0.0-py3-none-any.whl
| Download URL | unofficial_api_for_xfreehd-2.0.0-py3-none-any.whl |
|---|---|
| Size | 30.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24671d8d59ead981f58d022da700fb75701f8fa926ddd12e87a6d40fd349c6da
|
|
BLAKE2b-256 checksum How to use checksums |
f03bfffd29293f755e7467424b923c79f88327f25d8bade33f9fefb584a9338c
|
| 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-xfreehd 2.0.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.