Get your API key
Sign in once at pre.dev/projects/key and copy your key. Set it as
PREDEV_API_KEY before running any of the examples below.- uses your
PREDEV_API_KEYenv var - hits the live API at
https://api.pre.dev - extracts the H1 from
example.comas the simplest possible task
1. curl
2. TypeScript
3. Python
4. MCP (Claude Code, Cursor)
Add pre.dev as an MCP server. For Claude Code:browser_agent tool it can call directly.
Example prompt to the agent:
Use the browser_agent tool to extract the product title and price
from https://www.apple.com/iphone-17-pro/ and return
the JSON.
Full MCP reference: MCP Tool
What happens under the hood
- Your POST lands and your tasks are queued.
- Each task is dispatched to an isolated, sandboxed browser.
- An AI planner drives the browser through navigation, actions, and extraction.
- The result streams back as structured JSON, validated against your
outputschema. - Billed per successful task. Failed tasks are free.

