AgentQL Web Loader is a tool that scrapes a URL with a given AgentQL query or a Natural Language description of the data you want to scrape. Create your own AgentQL API key here.

Description

AgentQL provides structured data extraction from any web page using an AgentQL query or a Natural Language prompt. AgentQL can be used across multiple languages and web pages without breaking over time and change.

Installation

agentstack tools add agentql

Set the environment variable in your project’s .env file.

AGENTQL_API_KEY=...

Arguments

The following parameters can be used to customize the AgentQL Web Loader’s behavior:

ArgumentTypeDescription
urlstringThe URL of the web page you want to query.
querystringOptional. The AgentQL query to execute. Learn more about how to write an AgentQL query in the docs.
promptstringOptional. A Natural Language description of the data to query the page for. AgentQL will infer the data’s structure from your prompt. Note: You must define either a query or a prompt to use AgentQL.
is_stealth_mode_enabledbooleanWhether to enable experimental anti-bot evasion strategies. This feature may not work for all websites at all times. Data extraction may take longer to complete with this mode enabled. Defaults to False.

Examples