Tools

Fetch a web page

Changed on

Fetches a URL and returns its content, optionally stripping HTML tags.

Hadrian Extension: This endpoint is not part of the OpenAI API specification.

post/api/v1/tools/web-fetch

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/tools/web-fetch
  • Auth: HTTP bearer

Request body

max_lengthinteger nullable
urlstring required

Response

Fetched content

contentstring required
content_lengthinteger required
content_typestring nullable
urlstring required

Changes