Skip to main content

GET /api/sites/:slug/views/:state/:view

Navigates to the page state and executes the view’s extraction code against the live DOM. Returns structured data. When you call this endpoint, the execution server:
  1. Looks up the manifest for the site
  2. Finds the target state and view
  3. Opens a new browser page
  4. Navigates to the state’s URL
  5. Waits for the DOM to settle
  6. Runs the view’s extraction code
  7. Returns the result as JSON

Path parameters

string
required
The site identifier (e.g., example-com).
string
required
The state name from the manifest (e.g., HomePage, SearchResults).
string
required
The view name within the state (e.g., product_list, user_profile).

Query parameters

If the state’s URL pattern contains template variables (e.g., /products/{id}), pass the values as query parameters:

Example

Response fields

Error responses