Scrape
v1.0.0Turn any public web page into clean markdown, HTML or links.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scrape_url Scrape a web page
Fetch one public web page with a real browser and return it as clean markdown, HTML or links. JavaScript is rendered. Costs 1 credit.
| Parameter | Type | Description |
|---|---|---|
url * | string | Full public URL of the page, starting with http:// or https://. |
format | string | What to return: clean markdown (default), cleaned HTML, or the list of links on the page. |
main_content_only | boolean | True (default) strips navigation, footers and ads; False returns the whole page. |
wait_ms | integer | Extra milliseconds to wait for JavaScript to render before reading the page (0 to 10000). |
map_site List a site's pages
Discover the page URLs of a public website (from its sitemap and links) without downloading them. Use it to choose what to pass to scrape_url. Costs 1 credit.
| Parameter | Type | Description |
|---|---|---|
url * | string | Public URL of the site's home page or a section of it. |
limit | integer | Maximum number of page URLs to return (1 to 500). |
search | string | Optional keyword; only URLs relevant to it are returned. |
scrape_order Buy credits
Buy credits with Bitcoin. Creates an invoice and returns order_id, invoice_url and amount_sats; price is 100 sats per credit, minimum 100 credits (10,000 sats); every paid call costs 1 credit. Pay it, then call scrape_collect_key. Free.
| Parameter | Type | Description |
|---|---|---|
credits | integer | How many credits to buy. One credit pays for one paid call. |
scrape_collect_key Collect your API key
After paying the invoice from scrape_order, collect your API key. It is returned once, when the invoice is settled. Free.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order_id returned by the order tool. |
scrape_credits Check credit balance
Show how many credits are left on a purchased key. Free.
| Parameter | Type | Description |
|---|---|---|
api_key * | string | The API key you received after paying. |