POST
/
v1
/
tools
/
fetch-webpage
Get Webpage Content
curl --request POST \
  --url https://api.anchorbrowser.io/v1/tools/fetch-webpage \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "url": "https://anchorbrowser.io",
  "format": "markdown",
  "wait": 500,
  "new_page": false,
  "page_index": "undefined",
  "return_partial_on_timeout": false
}'
"A secure way to **let AI agents do anything on the internet**."

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Query Parameters

sessionId
string

An optional browser session identifier to reference an existing running browser session. If provided, the tool will execute within that browser session.

Body

application/json
url
string

The URL of the webpage to fetch content from. When left empty, the current webpage is used.

Example:

"https://anchorbrowser.io"

format
enum<string>
default:markdown

The output format of the content.

Available options:
html,
markdown
Example:

"markdown"

wait
integer
default:500

The time to wait for dynamic content to load in milliseconds.

new_page
boolean
default:false

Whether to create a new page for the content.

page_index
integer
default:undefined

The index of the page to fetch content from. Overides new_page.

return_partial_on_timeout
boolean
default:false

Whether to return partial content if the content is not loaded within the 20 seconds.

Response

The fetched webpage content in the specified format.

The rendered content of the webpage.

Example:

"A secure way to **let AI agents do anything on the internet**."