PRETE PRETE WORKSAPI
Capability

Web operations.

Give your code or your agent the live web. A real browser renders the page — JavaScript included — and returns Markdown, structured data, a PDF or a PNG. Every URL fetch is SSRF-guarded and capped — one end of the document-to-web pipeline, on the same key as documents & data.

Operations

7 operations, priced each

Prices are per successful call. 1 unit = $0.002; the free tier covers 500 units a month.

POST /v1/web/markdown

URL → Markdown

Render the live page and return clean, readable Markdown — for RAG, notes and agents.

$0.004 · 2 UNITS · MCP read_url
POST /v1/web/scrape

Scrape

One render → rendered HTML, every link, and page metadata.

$0.006 · 3 UNITS · MCP scrape_page
POST /v1/web/pdf

URL → PDF

Snapshot the live, rendered page as a pixel-faithful PDF.

$0.01 · 5 UNITS · MCP url_to_pdf
POST /v1/web/screenshot

Screenshot

Capture the live page as a PNG — viewport or full scroll height.

$0.01 · 5 UNITS · MCP url_to_screenshot
POST /v1/web/batch

Batch

Markdown for up to 10 URLs in one call.

$0.004 PER URL · 2 UNITS PER URL · MCP batch_scrape
POST /v1/web/crawl

Crawl

The root page plus same-origin pages, all as Markdown.

$0.006 + $0.004 PER PAGE · 3 UNITS + 2 PER PAGE · MCP crawl_site
POST /v1/web/map

Map

Discover the same-origin URLs on a page — the site map, no content fetched.

$0.006 · 3 UNITS · MCP map_site

Full price table · Every parameter, in the interactive reference

Quickstart

From curl

# URL → Markdown ($0.004)
curl https://api.preteworks.com/v1/web/markdown \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'

# Full-page screenshot ($0.01)
curl https://api.preteworks.com/v1/web/screenshot \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","fullPage":true}' -o shot.png

From an AI agent instead? Add the MCP server — the same operations appear as tools.