Extract
POST/workstations/:workstation_id/browser/operator/extract
Extract structured data from the current page using multi-modal AI inference. The AI can extract both explicit text and inferred data based on visual understanding of the page content.
Key Features
- Extract structured data in JSON format
- Support for primitive types (String, Number, Boolean)
- Support for complex types (Arrays, Objects)
- Natural language data descriptions
- Visual context understanding
Example Usage
const id = 'HvcqZjmeoPtP';
const url = `https://api.agentstation.ai/v1/workstations/${id}/browser/operator/extract`;
const response = await fetch(url, {
method: 'POST',
body: JSON.stringify({
dataDemand: {
time: 'date and time, string',
userInfo: 'user info, {name: string}',
tableFields: 'field names of table, string[]',
tableData: 'data records of table, {id: string, [fieldName]: string}[]'
}
})
});
// Extract array of strings
const tasks = await fetch(url, {
method: 'POST',
body: JSON.stringify({
dataDemand: 'string[], task names in the list'
})
});
Request
Responses
- 200
- 400
- 401
- 402
- 422
- 429
- 500
- 503
Successfully extracted data from page
Invalid Request Format - check API documentation for proper syntax.
Unauthorized - missing or invalid API key.
Payment Required - you have run out of trial credits or your payment method has expired. Please add payment details to your account.
Unprocessable Entity - cannot find requested asset associated with your API key.
Too Many Requests - you have exceeded the rate limit for your account. Please wait before making additional requests.
Internal Server Error - please retry your request.
Service Unavailable - our servers have dropped the request due to high load - please retry.