> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Web Fetch

> Extract readable content from public URLs.



## OpenAPI

````yaml /tools/web-tools.json post /v1/web-fetch
openapi: 3.0.0
info:
  title: Modellix Web Tools API
  version: 1.0.0
  description: OpenAPI contract for the Modellix Web Search and Web Fetch endpoints.
servers:
  - url: https://tool.modellix.ai
security:
  - bearerAuth: []
paths:
  /v1/web-fetch:
    post:
      summary: Web Fetch
      description: Extract readable content from public URLs.
      operationId: webFetch
      parameters:
        - $ref: '#/components/parameters/MdlxUserId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebFetchRequest'
      responses:
        '200':
          description: >-
            Fetch processing completed, including partial or all URL-level
            failures.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebFetchResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientBalance'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
components:
  parameters:
    MdlxUserId:
      name: X-Mdlx-User-Id
      in: header
      required: true
      description: Stable end-user identifier supplied by the API caller.
      schema:
        type: string
        minLength: 8
        maxLength: 128
        pattern: ^[A-Za-z0-9_-]+$
  schemas:
    WebFetchRequest:
      type: object
      additionalProperties: false
      required:
        - urls
      properties:
        urls:
          type: array
          minItems: 1
          maxItems: 20
          items:
            type: string
            format: uri
            pattern: ^https?://(?![^/?#]*@)[^\s]+$
            description: Absolute HTTP or HTTPS URL without user information.
    WebFetchResponse:
      type: object
      additionalProperties: false
      required:
        - results
        - failed_results
        - billing
        - request_id
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/FetchResult'
        failed_results:
          type: array
          items:
            $ref: '#/components/schemas/FetchFailure'
        billing:
          $ref: '#/components/schemas/WebFetchBilling'
        request_id:
          type: string
    FetchResult:
      type: object
      additionalProperties: false
      required:
        - url
        - title
        - content
      properties:
        url:
          type: string
          format: uri
        title:
          type: string
          nullable: true
        content:
          type: string
    FetchFailure:
      type: object
      additionalProperties: false
      required:
        - url
        - error
      properties:
        url:
          type: string
          format: uri
        error:
          type: string
    WebFetchBilling:
      type: object
      additionalProperties: false
      required:
        - sku
        - success_count
        - amount_usd
      properties:
        sku:
          type: string
          enum:
            - web-fetch
        success_count:
          type: integer
          minimum: 0
        amount_usd:
          type: number
          format: double
          minimum: 0
    ErrorEnvelope:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
  responses:
    BadRequest:
      description: Invalid request or required user identifier.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InsufficientBalance:
      description: Team balance is insufficient for the maximum charge.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: Team RPM or concurrency limit exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Unavailable:
      description: Pricing, platform, or upstream providers are unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Timeout:
      description: The request exceeded its total deadline.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Modellix API Key

````