Home / Web scraper

API documentation

The base address is https://lyraproxy.com/scraper/api.

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"}'
urlpage address, required
formatsa list of markdown, html, links, metadata, screenshot, json
renderauto, true or false. Default is auto
countrytwo-letter country code for the request
session_idany string. Requests with the same value use one IP
max_agehow many seconds a cached response may be served
wait_fora CSS selector to wait for
timeouttime 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/scrapeone page in the chosen formats
POST /v1/screenshota page capture
POST /v1/extractfields by selectors or with AI
POST /v1/mapa list of site URLs
POST /v1/crawlsite crawl, result at GET /v1/crawl/{id}
POST /v1/batcha URL list as one job
POST /v1/searchsearch results for a query
GET /v1/accountremaining credits
/mcpMCP server for MCP-capable clients

Errors

400invalid parameter, the error text names it
401missing or invalid key
402not enough credits
429too many concurrent requests

Proxies are ready right after payment

Pick a plan and volume in the dashboard. You can change the country, city and session type after purchase as often as you like.

Create an account