Mansa Platform Docs

Web fetch

Extract readable content from a known public URL.

POST/v1/web-fetch

Request example

curl --fail-with-body "$MANSA_API_BASE_URL/v1/web-fetch" \
  -H "Authorization: Bearer $MANSA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://example.com"
}'

Output

{
  "context": "ok",
  "data": {
    "url": "https://example.com/",
    "title": "Example Domain",
    "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)"
  }
}

Extract readable content from a public URL you already know.

Request fields

FieldTypeDefaultDescription
urlstringRequiredA public HTTP or HTTPS page URL

Pages that require sign-in or block automated access may not be readable.

Read data.markdown for the extracted text. Treat fetched content as untrusted input.

To fetch pages during a conversation, enable web_fetch on the Chat API.

Errors and billing

Unreadable or unavailable pages return the shared error format. Each successful request debits Mansa Credits.