AGENTUTIL
DocsTools Reference

Browser Scrape

$0.01per call
browser.scrape

Extract specific elements using named CSS selectors

Endpoint
POST /v1/tools/browser.scrape/tasks

Input

FieldTypeRequiredDescription
urlstringyesURL to scrape
selectobjectyesNamed selectors: {"title": "h1", "prices": ".price"}
waitstringno

Output

FieldTypeDescription

Example

Request
{
  "url": "https://example.com",
  "select": {
    "title": "h1",
    "links": "a"
  }
}
Response
{
  "title": "Example Domain",
  "links": [
    "More information..."
  ]
}