skillfed

agentql

Tiny Fish AgentQL Python Client

agentql v1.19.0 74.2K downloads/30d#14,867 on PyPI
Permissive license MIT Active released

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 agentql

uv

uv add agentql

poetry

poetry add agentql

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: BrowsersTopic :: Software Development :: Testing

Tags

AI web scrapingplaywright web automationnatural language web queriesbrowser automation testingweb interaction with AI
web-automationai-driven-queriesplaywright-based

More Testing packages

Further reading