Skip to main content

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

Successfully extracted data from page