JavaScript SDK References
The AgentQL JavaScript SDK ships with a range of modules and classes to help you automate interactions with and parse, extract, and scrape data from web pages quickly and at scale.
agentql
module provides utility methods to set configurations, including the API key, and to convert Playwright'sPage
to AgentQL'sPage
, which gives access to AgentQL's querying API.- AgentQL
Page
is a wrapper around Playwright'sPage
that provides access to AgentQL's querying API. - AQLResponseProxy is returned by the AgentQL's
Page
'squeryElements()
method. It's not the actual data but a metadata structure that allows intuitive access to web elements using dot notation.
Check out the Release Notes for updates and new features.