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

# Get Model History

> Daily history for one model, read from durable snapshots only.

Score/ranking series begin on the first day the nightly capture ran;
pricing may extend further back via bounded backfill from
``deployment_pricing``. Days without real data are simply absent.



## OpenAPI

````yaml https://api.llm-stats.com/stats/openapi.json get /v1/models/{model_id}/history
openapi: 3.1.0
info:
  title: LLM Stats API
  description: Public API for querying AI model benchmarks, scores, rankings, and pricing.
  version: 1.0.0
servers:
  - url: /stats
security: []
paths:
  /v1/models/{model_id}/history:
    get:
      summary: Get Model History
      description: |-
        Daily history for one model, read from durable snapshots only.

        Score/ranking series begin on the first day the nightly capture ran;
        pricing may extend further back via bounded backfill from
        ``deployment_pricing``. Days without real data are simply absent.
      operationId: get_model_history_v1_models__model_id__history_get
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
            title: Model Id
        - name: kind
          in: query
          required: true
          schema:
            type: string
            description: score | ranking | pricing | metadata
            title: Kind
          description: score | ranking | pricing | metadata
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: From
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: To
        - name: benchmark_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Benchmark Id
        - name: category_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Category Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelHistoryResponse'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ModelHistoryResponse:
      properties:
        model_id:
          type: string
          title: Model Id
        kind:
          type: string
          title: Kind
        points:
          items:
            $ref: '#/components/schemas/HistoryPoint'
          type: array
          title: Points
        window:
          $ref: '#/components/schemas/HistoryWindow'
      type: object
      required:
        - model_id
        - kind
        - points
        - window
      title: ModelHistoryResponse
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HistoryPoint:
      properties:
        date:
          type: string
          format: date
          title: Date
        value:
          anyOf:
            - type: number
            - type: 'null'
          title: Value
        benchmark_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Benchmark Id
        category_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Category Id
        payload:
          additionalProperties: true
          type: object
          title: Payload
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
          description: >-
            'capture' for nightly snapshots, 'backfill' for rows reconstructed
            from a real source table.
      type: object
      required:
        - date
        - payload
      title: HistoryPoint
    HistoryWindow:
      properties:
        from:
          type: string
          format: date
          title: From
        to:
          type: string
          format: date
          title: To
        plan_limit_from:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Plan Limit From
          description: Oldest date the plan may query (null = unlimited).
        available_from:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Available From
          description: >-
            First day with real data for this kind; null when capture has not
            run yet. History is never synthesised before this date.
      type: object
      required:
        - from
        - to
      title: HistoryWindow
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
        help_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Help Url
        limit_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Limit Type
        plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Plan
        reset_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Reset At
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
      type: object
      required:
        - code
        - message
      title: ErrorDetail
    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

````