API Reference
Extract data from the page
Extracts structured data from the current page using AI-powered analysis.
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://docs.stagehand.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Browserbase API key for authentication
Deprecated. Browserbase API keys are now project-scoped, so this header is no longer required.
Headers
Whether to stream the response via SSE
Available options:
true, false Example:
"true"
Path Parameters
Unique session identifier
Example:
"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123"
Body
application/json
Natural language instruction for what to extract
Example:
"Extract all product names and prices from the page"
JSON Schema defining the structure of data to extract
Target frame ID for the extraction
Whether to stream the response via SSE
Example:
true
Previous
Execute an AI agentRuns an autonomous AI agent that can perform complex multi-step browser tasks.
Next
JavaScript

