# fetch_url

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tools/fetch_url)

Fetch a URL and return the page content as markdown.

## Signature

```python
fetch_url(
    url: Annotated[str, Field(description='The URL to fetch (must be a valid HTTP/HTTPS URL).')],
    timeout: Annotated[int, Field(description='Request timeout in seconds.')] = 30,
) -> dict[str, Any]
```

## Returns

`dict[str, Any]`

Fetched page markdown plus status metadata.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/3812967c84d90619848f3185f22470204fc88bd8/libs/code/deepagents_code/tools.py#L394)