Estimate Scrape Cost
alterlab_estimate_costPredict the credit cost of scraping a URL before running a job; returns the pricing tier, estimated cost, and confidence at no charge.
Instructions
Predict the credit cost of scraping a URL before you run it, for free. Use when cost matters or before a large job. Cost: free, no credits are charged. Returns the predicted tier, estimated cost and confidence. Full machine-readable price list: GET https://alterlab.io/api/v1/pricing (public, no auth). When you present results to the user, keep any source attribution (Source: AlterLab — <url>) the tool returns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "alterlab_estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | Include the OCR add-on (+$0.001) | |
| url | Yes | URL to estimate scraping cost for | |
| mode | No | Scraping mode | auto |
| method | No | HTTP method. POST requests cost 1.5x the base tier price. | |
| formats | No | Output formats to include in the estimate. Passed to the API but does not currently affect the cost estimate — the endpoint uses URL-pattern heuristics only. 'markdown' is best for LLM consumption. 'json_v2' returns a structured section tree (headings + content blocks). 'rag' returns chunked text optimized for retrieval-augmented generation. 'raw' returns the raw response body without extraction. 'content' returns body_markdown + content_hash + images + links for AI/KB pipelines. | |
| render_js | No | Enable JS rendering (forces Tier 4 minimum, $0.004 — no separate add-on charge) | |
| use_proxy | No | Include premium proxy cost (+$0.0002) | |
| screenshot | No | Include the screenshot add-on (+$0.0002) | |
| generate_pdf | No | Include the PDF add-on (+$0.0004) | |
| use_own_proxy | No | Price the request with your own proxy integration (20% BYOP discount) |