Documentation Index
Fetch the complete documentation index at: https://docs.perplexity.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thefetch_url tool fetches and extracts content from specific URLs during an Agent API request. Use it when your application already knows which page, article, document, or report the model should inspect.
Use fetch_url when you need full page content from known URLs. Use web_search when the model first needs to discover relevant pages.
When to Use
Use fetch_url when… | Use web_search when… |
|---|---|
| You already have a URL | You need to discover relevant pages |
| You need fuller page content | You need snippets from multiple sources |
| You are summarizing a specific article or document | You are researching a broad topic |
| You want the model to inspect a known source | You want the model to find current sources |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "fetch_url". |
max_urls | integer | No | Maximum number of URLs to fetch per tool call. The API schema allows values from 1 to 10. |
Response Shape
Whenfetch_url runs, the response can include a fetch_url_results output item before the final assistant message. Each fetched content item includes the URL, page title, and extracted snippet.
Pricing
fetch_url is billed at $0.50 per 1,000 invocations. Model token usage is billed separately according to Agent API token pricing.
Pricing follows the same pattern as other tool calls: pay for tool invocations plus model tokens. See Pricing.
Next Steps
Web Search
Search the web before fetching source content.
Finance Search
Retrieve structured financial and market data.
People Search
Search for professionals and employees.
API Reference
View complete endpoint documentation.