Tools

URL Fetch

Fetch the content of a URL and get the page title and body text in Markdown (text and images concatenated in order). Only http and https URLs are supported. You are charged once per successful call that extracts content; failed or empty-content calls are free. See WebSearch Pricing.

post/v1/tools/fetch

Request

  • Base URL: https://api.moonshot.ai
  • URL: https://api.moonshot.ai/v1/tools/fetch
  • Auth: HTTP bearer

Request body

urlstring uri required

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

Response

Fetch result

urlstring required

The fetched URL.

markdownstring required

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

titlestring required

Page title.

Changes

No recorded changes to this operation across all 1 revision of this API.