Skip to main content
POST
URL Fetch
Fetch the content of a URL and get the page title and body text in Markdown. Ideal for content extraction scenarios such as web reading and data curation.
Only http and https URLs are supported. URLs blocked by security risk control return a 403 security_risk error; pages with no extractable content return a 404 markdown_not_found error.
Response Example
Markdown content example
Common Response HeadersAll responses, including error responses, carry these two headers.
Billing: you are charged once per successful call (HTTP 200) that returns non-blank markdown content; failed calls or pages with no extractable content are free. For pricing details, see WebSearch Pricing.

Authorizations

Authorization
string
header
required

The Authorization header expects a Bearer token. Use an MOONSHOT_API_KEY as the token. This is a server-side secret key. Generate one on the API keys page in your dashboard.

Body

application/json
url
string<uri>
required

URL of the page to fetch. Only http and https are supported.

Response

Fetch result

url
string
required

The fetched URL.

markdown
string
required

Fetched content in Markdown. Text and images are concatenated in page order, with images rendered as ![imageN](url) placeholders.

title
string
required

Page title.