fake-useragent
Up-to-date simple useragent faker with real world database
Decision gist · record as of 2026-08-14
Yes, with caution about maintenance. The package is stable, has low install friction, and solves a real problem for web scraping and testing. However, the repository is now archived and abandoned, so the bundled user-agent database will not receive updates for new browser versions. Install it if your use case tolerates a static database; avoid it if you need current data for the latest browser releases or if you require ongoing bug fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low install friction; single runtime dependency (importlib-resources).
- Repository is archived and marked abandoned as of the fact sheet date, with last commit on 2026-03-29, so maintenance has ceased.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with attribution and liability disclaimers.
last release 2025-04-14 (487 days) · last repo commit 2026-03-29 · 4,054 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 10,932,845 downloads/mo, #1,427 on PyPI
Alternatives
Verify before relying
from fake_useragent import UserAgent
ua = UserAgent()
print(ua.random) # Returns a random user-agent string
print(ua.chrome) # Returns a Chrome user-agent
print(ua.getRandom) # Returns full user-agent dictionary- Whether the pre-packaged user-agent data is current enough for modern browser versions after the repository's abandonment.
- Whether the data source (Intoli LLC) continues to be updated or if the package's database is now static.
- Performance characteristics when filtering across large browser/OS/platform combinations.
What it is and what it does
fake-useragent provides a simple interface to retrieve realistic user-agent strings without making external HTTP requests. The package ships with a pre-downloaded and post-processed database of real-world browser agents sourced from Intoli LLC, covering desktop, tablet, and mobile platforms across browsers like Chrome, Firefox, Safari, Edge, Opera, and others. You instantiate a UserAgent object and call properties like `.random`, `.chrome`, or `.firefox` to get strings, or use `.getRandom` and similar methods to retrieve full dictionaries with metadata like browser version, OS, and device brand.
The package is designed for web scraping, testing, and scenarios where you need to rotate or spoof browser identification. It supports filtering by specific browsers, operating systems, platform types (desktop/mobile/tablet), and minimum browser version. Since data is bundled with the package rather than fetched at runtime, there are no external dependencies or network calls, making it lightweight and reliable for offline use.
Use it for
- Web scraping: rotate user-agent strings to avoid detection or blocking by servers.
- Automated testing: simulate requests from different browsers and devices in test suites.
- API client libraries: add realistic user-agent headers to HTTP requests without hardcoding.
- Bot development: generate varied user-agent strings for bots that need to appear as different browsers.
- Security testing: test how applications handle requests from diverse browser and OS combinations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with caution about maintenance.
The package is stable, has low install friction, and solves a real problem for web scraping and testing. However, the repository is now archived and abandoned, so the bundled user-agent database will not receive updates for new browser versions. Install it if your use case tolerates a static database; avoid it if you need current data for the latest browser releases or if you require ongoing bug fixes.
Install
fake-useragent on PyPI
Before you install
Low install friction; single runtime dependency (importlib-resources). Repository is archived and marked abandoned as of the fact sheet date, with last commit on 2026-03-29, so maintenance has ceased.
Requires Python 3.9 or later.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with attribution and liability disclaimers.
Quickstart
from fake_useragent import UserAgent
ua = UserAgent()
print(ua.random) # Returns a random user-agent string
print(ua.chrome) # Returns a Chrome user-agent
print(ua.getRandom) # Returns full user-agent dictionary
Verify before relying
- Whether the pre-packaged user-agent data is current enough for modern browser versions after the repository's abandonment.
- Whether the data source (Intoli LLC) continues to be updated or if the package's database is now static.
- Performance characteristics when filtering across large browser/OS/platform combinations.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageimportlib-resources |
| Maintenance | Abandoned 487 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 10,932,845 / month, #1,427 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Software DevelopmentTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: fake_useragent-2.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fake useragent strings”
- fake-useragentGenerates random or browser-specific user-agent strings from a…
- fake-headersGenerates realistic User-Agent strings and HTTP headers locally…
- random-user-agentProvides random user agent strings filtered by operating system,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also random-user-agent · ua-generator · woothee · fake-headers · latest-user-agents · user-agent · fake-http-header · httpagentparser · browserforge · ua-parser-rs