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

# Extract readable content for URLs, without searching



## OpenAPI

````yaml /api-reference/search.json post /api/search/contents
openapi: 3.1.0
info:
  title: truscan search
  version: 1.0.0
  description: >-
    A web search API. One query is fanned out across many independent sources,
    then deduplicated, extracted, ranked, and returned with a score it will
    explain. Every response uses the {success, result, message} envelope except
    where noted.
servers:
  - url: https://api.truscan.co
    description: Production
security: []
paths:
  /api/search/contents:
    post:
      summary: Extract readable content for URLs, without searching
      operationId: contents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - urls
              properties:
                urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 8
      responses:
        '200':
          description: >-
            Extracted content keyed by the URL as submitted. A page that could
            not be read carries an explanation in content.error rather than
            being omitted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  result:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/Content'
        '400':
          $ref: '#/components/responses/Failure'
        '422':
          $ref: '#/components/responses/Failure'
        '429':
          $ref: '#/components/responses/Failure'
components:
  schemas:
    Content:
      type: object
      properties:
        text:
          type: string
          description: Readable prose with navigation, banners and footers removed.
        markdown:
          type: string
          description: The same content with headings, lists and links preserved.
        excerpt:
          type: string
        words:
          type: integer
        lang:
          type: string
        author:
          type: string
        site_name:
          type: string
        truncated:
          type: boolean
        error:
          type: string
          description: >-
            Why this page has no content. Present instead of an empty text
            field, which would be indistinguishable from a genuinely empty page.
        highlights:
          type: array
          items:
            $ref: '#/components/schemas/Highlight'
    Highlight:
      type: object
      description: >-
        A passage that matched, with its offsets into content.text, so a UI can
        render it without re-running the match.
      properties:
        text:
          type: string
        start:
          type: integer
        end:
          type: integer
        score:
          type: number
    Failure:
      type: object
      properties:
        success:
          type: boolean
          const: false
        message:
          type: string
          description: Written for a person.
        result:
          type: object
          properties:
            code:
              type: string
  responses:
    Failure:
      description: >-
        The envelope with success false. result carries the machine-readable
        code and nothing else; the HTTP status line carries the real status.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Failure'

````