---
title: "Get Webpage Content"
method: POST
path: "/v1/tools/fetch-webpage"
tags: ["Tools"]
---

# Get Webpage Content

`POST /v1/tools/fetch-webpage`

Retrieve the rendered content of a webpage, optionally formatted as Markdown or HTML.

## Query parameters

- `sessionId` string

## Request body

- FetchWebpageRequestSchema
  - `url` string — The URL of the webpage to fetch content from. When left empty, the current webpage is used.
  - `format` 'html' | 'markdown' — The output format of the content.
  - `wait` integer — The time to wait for **dynamic** content to load in **milliseconds**.
  - `new_page` boolean — Whether to create a new page for the content.
  - `page_index` integer — The index of the page to fetch content from. **Overides new_page**.
  - `return_partial_on_timeout` boolean — Whether to return partial content if the content is not loaded within the 20 seconds.

## Response `200`

The fetched webpage content in the specified format.

## Other responses

- `400` — Invalid request, such as missing or invalid URL.
- `500` — Internal server error while processing the request.

## Changes

- **2025-10-16** `b7fe7610c0ce` — 5 info
  - the `format` request property default value `markdown` was removed
  - the `new_page` request property default value `false` was removed
  - the `page_index` request property default value `undefined` was removed
  - the `return_partial_on_timeout` request property default value `false` was removed
  - …1 more

[Change history](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/changes/v1/tools/fetch-webpage/post.md)

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) · [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchorbrowser/anchorbrowser-api/revisions/d0f5aa64f9f4/schema)
