POST

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.

Required string length: 1 - 255
bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

Body

application/json

A page fetch. The same schema as the input of the web_fetch tool (contracts tool.json WebFetchInput).

url
string
required

An http or https URL without credentials.

Required string length: 1 - 2048
max_chars
integer

Default 20000.

Required range: 1000 <= x <= 100000
format
enum<string>

Default markdown.

Available options:
markdown,
text

Response

Success.

The answer of one page fetch.

id
string
required

wfetch_ id of this fetch.

type
any
required

Always web_fetch.

created_at
string<date-time>
required

When the page was fetched.

url
string
required

The URL asked for.

final_url
string
required

The URL after redirects.

content_type
string
required

The media type served.

format
enum<string>
required

The format of content, as asked.

Available options:
markdown,
text
content
string
required

The page's main content (main, article or body without scripts, styles, navigation, footers and hidden elements), at most max_chars characters.

truncated
boolean
required

The content was cut at max_chars.

content_chars
integer
required

Characters in content.

Required range: x >= 0
usage
object
required

What this answer is charged for.

title
string

The page's title ("" when it has none).