Read a page
curl -X POST https://lyraproxy.com/scraper/api/v1/scrape \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/", "formats": ["markdown", "links"], "country": "de"}'
| url | page address, required |
|---|
| formats | a list of markdown, html, links, metadata, screenshot, json |
|---|
| render | auto, true or false. Default is auto |
|---|
| country | two-letter country code for the request |
|---|
| session_id | any string. Requests with the same value use one IP |
|---|
| max_age | how many seconds a cached response may be served |
|---|
| wait_for | a CSS selector to wait for |
|---|
| timeout | time limit in seconds |
|---|
Screenshot
curl -X POST https://lyraproxy.com/scraper/api/v1/screenshot \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/", "full_page": true}' -o page.png
Extract data
curl -X POST https://lyraproxy.com/scraper/api/v1/extract \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/item/1", "schema": {"title": "h1", "price": ".price"}}'
Map and crawl a site
curl -X POST https://lyraproxy.com/scraper/api/v1/map -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/"}'
curl -X POST https://lyraproxy.com/scraper/api/v1/crawl -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/blog/"}'
All methods
| POST /v1/scrape | one page in the chosen formats |
|---|
| POST /v1/screenshot | a page capture |
|---|
| POST /v1/extract | fields by selectors or with AI |
|---|
| POST /v1/map | a list of site URLs |
|---|
| POST /v1/crawl | site crawl, result at GET /v1/crawl/{id} |
|---|
| POST /v1/batch | a URL list as one job |
|---|
| POST /v1/search | search results for a query |
|---|
| GET /v1/account | remaining credits |
|---|
| /mcp | MCP server for MCP-capable clients |
|---|
Errors
| 400 | invalid parameter, the error text names it |
|---|
| 401 | missing or invalid key |
|---|
| 402 | not enough credits |
|---|
| 429 | too many concurrent requests |
|---|