AgentQL
Scrapers built on XPath and CSS selectors break when a site moves a div. A product grid gets a new wrapper, and the script returns nothing until someone rewrites the path.
AgentQL replaces the selector with a query that names the data. You write { products[] { product_name product_price } }, and an AI model finds those fields on the page and returns JSON in that shape. It is a developer tool: Python and JavaScript SDKs, a REST API, and a Chrome extension for testing queries.
Queries instead of selectors
A query is a nested list of field names. Square brackets ask for a list, and text in parentheses adds context, such as “include currency symbol”. The site says the same query works across similar pages and keeps working when the layout changes. The REST API also accepts a plain-language prompt instead of a query and infers the structure itself.
How you start
You get a free API key from the developer portal. The quickstart has you install the AgentQL Debugger extension, open Chrome DevTools, and run a query against the live docs page. Then you install the SDK (pip3 install agentql or npm install agentql) and run the same query through Playwright, which can click and fill elements as well as read them.
Without a browser of your own
The REST API takes a URL and a query and returns the data as JSON. Options include a wait time, scroll to bottom, a screenshot, a “stealth” browser profile, and AgentQL’s own proxies by country or your own proxy. A March 2025 post added a raw HTML mode, so a page fetched by your own crawler can be queried without a URL. The API also parses PDFs and images, and can open a remote browser session with a CDP URL.
Integrations
The integrations page lists Zapier, an MCP server for Claude, Cursor, and Windsurf, LangChain, Langflow, Dify, and AgentStack. Its FAQ says the Zapier and Dify routes need no code, while the others may need basic programming.
Pricing
A trial gives 300 API calls with no card. The Starter plan is $0 a month with 50 API calls, then $0.02 per call, capped at 10 calls a minute. Professional is $99 a month for 10,000 calls, then $0.015 per call, at 50 calls a minute. Remote browser time is billed by the hour on both. Enterprise is custom and lists on-premise deployment.
What the pages do not say
The docs describe stealth mode and proxies, but the pages checked give no success rate against any anti-bot system. The public GitHub repository is MIT licensed, but it holds example scripts. Every query still runs through the hosted API with your key.
At a glance
- Type
- For developers
- Pricing model
- Freemium
- Free tier
- Yes
- Starting price
- From $99 per month
Output formats
- json
Integrations
- zapier
- mcp
- langchain
- llamaindex
- langflow
- dify
- agentstack
SDK languages
- python
- javascript
Suggest an edit (opens in a new tab)Ask about a sponsored listing