POST
/
tools
/
fetch-webpage
Get Webpage Content
curl --request POST \
  --url https://connect.anchorbrowser.io/tools/fetch-webpage \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://anchorbrowser.io",
  "format": "markdown",
  "new_page": false
}'
"A secure way to **let AI agents do anything on the internet**."

Authorizations

apiKey
string
query
required

API key passed as a query parameter

Query Parameters

sessionId
string

An optional session identifier to reference an existing running session. If provided, the tool will execute within that 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"

new_page
boolean
default:false

If true, opens the URL in a new page instead of navigating the current page.

Example:

false

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**."