estimate_urls
Pre-flight credit estimator for a list of URLs. Returns counts + credit estimate. Free, no credits consumed.
Call this before check_urls to show the user how many credits the batch will cost. Classifies each URL against three free gates:
tranco: URL's registrable domain is in the Tranco top 100K (trusted, treated as clean with score 0, no pipeline needed)
cached: URL's hostname is already in Unphurl's reputation cache (results available, no pipeline needed)
unknown: URL needs full pipeline analysis (costs 1 credit per URL)
Returns counts for each gate plus total, credits_needed, credits_min, and credits_max. credits_min and credits_max are both equal to the unknown count in the current implementation.
Maximum 500 URLs per call. Rate limit: 10 requests per minute. Does not follow redirects; classifies each URL as submitted.
Typical agent flow:
Collect a list of URLs
Call estimate_urls to get the cost breakdown
Show the user the breakdown and ask for approval
On approval, call check_urls on the unknowns only
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | List of URLs to classify (maximum 500 per call) |