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

# Semantic search

> Semantic search over the ContentGraph serving index. Returns up to 20 answer-shaped results (url, title, description; title/description may be null). Billed per search (search SKU) on a successful run; a blocked query or an upstream failure is not billed. Requires bearer auth.



## OpenAPI

````yaml https://api.classify.ai/openapi.json post /v1/search
openapi: 3.1.0
info:
  title: Classify API
  description: >-
    URL-level classification against the ContentGraph index. Priced per URL,
    never per token. URLs already in ContentGraph return classifications inline
    in under 50ms (Lookup). URLs not in the index return status `unknown` with a
    `job_id`; workers fetch, embed, and classify within seconds (Live Classify).
    Poll the job for results. Every live result joins the index.
  version: '1.0'
servers:
  - url: https://api.classify.ai
security: []
paths:
  /v1/search:
    post:
      tags:
        - Search
      summary: Semantic search
      description: >-
        Semantic search over the ContentGraph serving index. Returns up to 20
        answer-shaped results (url, title, description; title/description may be
        null). Billed per search (search SKU) on a successful run; a blocked
        query or an upstream failure is not billed. Requires bearer auth.
      operationId: search_v1_search_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchReq'
        required: true
      responses:
        '200':
          description: Ranked results
          content:
            application/json:
              schema: {}
              example:
                query: electric vehicle tax credits
                results:
                  - url: https://www.example.com/ev-incentives
                    title: EV incentives explained
                    description: A short summary of the page.
                count: 1
                latency_ms: 640
                credits_remaining: 24984
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SearchReq:
      properties:
        query:
          type: string
          title: Query
        limit:
          type: integer
          title: Limit
          default: 20
      type: object
      required:
        - query
      title: SearchReq
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: Classify API key (ck_...)

````