alterlab_estimate_cost
Estimate scraping cost for a URL before scraping, with no credits charged. Shows predicted anti-bot tier, per-request cost, and confidence.
Instructions
Preview the cost of scraping a URL before committing — no credits charged. Returns the predicted anti-bot tier, estimated cost per request, and confidence level. Call this before scraping protected or unfamiliar sites to avoid surprises. Tier 1 (curl): $0.0002. Tier 2 (http): $0.0003. Tier 3 (stealth): $0.002. Tier 3.5 (lightjs): $0.0025. Tier 4 (full browser): $0.004. Tier 5 (captcha solver): $0.02. Use render_js, use_proxy, screenshot, generate_pdf, ocr and method to see how options affect 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) |