agentql
Tiny Fish AgentQL Python Client
What it is and what it does
AgentQL is a Python client for Tiny Fish AgentQL, which replaces traditional CSS/XPath selectors with AI-driven natural language queries for web interaction. Instead of writing brittle element selectors, you describe what you want to extract or interact with in plain language, and the client handles locating and interacting with page elements through Playwright.
The package depends on Playwright for browser control, Pydantic for data validation, httpx and requests for HTTP operations, and includes CLI support via Typer. It's designed for developers building web automation, testing, or scraping workflows who want to avoid maintaining selector-based code that breaks when page layouts change.
Use it for:
- Automate web testing workflows without writing brittle CSS or XPath selectors.
- Extract structured data from websites using natural language descriptions instead of manual parsing.
- Build AI-powered bots that interact with web applications by understanding page content semantically.
- Prototype rapid web automation tasks without deep knowledge of page DOM structure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
AgentQL is a Python client for interacting with web pages using AI-driven queries instead of traditional selectors, built on Playwright for browser automation.
Yes, if you're building web automation or scraping workflows and want to reduce selector maintenance overhead. The package is actively maintained, has no known vulnerabilities, low install friction, and uses a permissive license. Verify that AgentQL's query API and documentation match your use case before committing to it as a core dependency.
Install
agentql on PyPI
pip
pip install agentqluv
uv add agentqlpoetry
poetry add agentqlInstalling agentql
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance (93 days since last release). Requires Python 3.9 or later.
License in practice
MIT license is permissive—you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install agentql
from agentql import AgentQL
agent = AgentQL()
result = agent.query("Find all product titles on this page")
Requires Python 3.9 or later and a working Playwright browser environment.
Verify before relying
- Whether AgentQL's query language and API surface are documented sufficiently for typical use cases.
- Performance characteristics when handling large-scale scraping or complex page interactions.
- Whether the tf-playwright-stealth dependency affects compatibility with modern web applications.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — aiofiles, colorama, httpx, playwright, pydantic, pygments, pytest-asyncio, requests, tf-playwright-stealth, typer, typing-extensions |
| Maintenance | actively maintained — 93 days since the last release |
| First released | |
| Downloads | 74,156/month — #14,867 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agentql-1.19.0-py3-none-any.whl
Keywords: ai, automation, playwright, testing, web-scraping
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
playwrightAutomate Chromium, Firefox, and WebKit browsers…
permissive · top 1,000 on PyPI
stagehandStagehand is a Python SDK for building browser…
permissive · top 5,000 on PyPI
strands-agents-toolsProvides ready-to-use tools for AI agents to…
permissive · top 5,000 on PyPI
robotframework-browserBrowser automation library for Robot Framework…
permissive · top 5,000 on PyPI
rebrowser-playwrightA patched version of Playwright that automates…
permissive · top 15,000 on PyPI
plato-sdkPlato SDK is a Python client library for…
unclear · top 15,000 on PyPI
browser-useBrowser Use is a Python library that lets AI…
permissive · top 1,000 on PyPI
mechanizeAutomate programmatic interaction with HTTP web…
permissive · top 15,000 on PyPI
pytest-playwright-asyncioA pytest plugin that integrates Playwright…
permissive · top 15,000 on PyPI
firecrawl-pyClient library for the Firecrawl API that…
permissive · top 5,000 on PyPI