Overview
Thefetch_url tool fetches and extracts content from specific URLs. Use it when you need the full content of a particular web page, article, or document rather than search results.
Pricing
URL fetch costs $0.50 per 1,000 requests ($0.0005 per fetch). You’re also charged for tokens consumed when fetched content is embedded in the model’s context.Cost Example
Cost Example
If a model fetches 2 URLs with 3,000 tokens of content, plus your original 80-token query, using
anthropic/claude-sonnet-4-5:| Component | Calculation | Cost |
|---|---|---|
| Tool calls | 2 fetches × $0.0005 | $0.001 |
| Input tokens | 3,080 tokens × $3.00/1M | $0.00924 |
| Output tokens | 500 tokens × $15.00/1M | $0.0075 |
| Total | $0.01774 |
Basic Usage
Use Cases
Article Summarization
Fetch and summarize specific articles or blog posts.
Documentation Analysis
Extract and analyze technical documentation.
Content Comparison
Compare content from multiple specific URLs.
URL Validation
Verify content at specific URLs before sharing.
Combining with Web Search
Usefetch_url together with web_search for comprehensive information gathering—search to find relevant pages, then fetch full content from the most relevant results:
Best Practices
When to Use fetch_url vs web_search
Use fetch_url when… | Use web_search when… |
|---|---|
| You have a specific URL | You need to find relevant pages |
| You need full page content | You need snippets from multiple sources |
| Analyzing a particular document | Researching a broad topic |
| Verifying specific claims | Finding current news or events |