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

# Historical APR

> Get historical APR data for a vault



## OpenAPI

````yaml open-apis/0d.json get /vaults/{vault_id}/apr/series
openapi: 3.1.0
info:
  title: zerod_api
  description: 0D Master API for vaults
  license:
    name: MIT
    identifier: MIT
  version: 0.1.0
servers:
  - url: https://api.0d.finance/{version}
    variables:
      version:
        default: v1
        enum:
          - v1
security: []
tags:
  - name: zerod_bin
    description: 0d, master api
  - name: User
    description: User profile endpoints
  - name: Vaults
    description: Vault management endpoints
paths:
  /vaults/{vault_id}/apr/series:
    get:
      tags:
        - Vaults
      operationId: get_vault_apr_series
      parameters:
        - name: vault_id
          in: path
          description: Vault identifier
          required: true
          schema:
            type: string
        - name: timeframe
          in: query
          description: Time period for APR series
          required: true
          schema:
            $ref: '#/components/schemas/Timeframe'
          example: 7d
      responses:
        '200':
          description: Historical APR data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AprSeriesDTO'
        '400':
          description: Invalid parameters
        '404':
          description: Vault not found
        '500':
          description: Internal server error
components:
  schemas:
    Timeframe:
      type: string
      enum:
        - 7d
        - 30d
        - 1y
        - all
    AprSeriesDTO:
      type: object
      required:
        - timeframe
        - points
      properties:
        points:
          type: array
          items:
            $ref: '#/components/schemas/AprPoint'
        timeframe:
          $ref: '#/components/schemas/Timeframe'
    AprPoint:
      type: object
      description: APR data point for timeseries
      required:
        - t
        - apr_pct
      properties:
        apr_pct:
          type: number
          format: double
        t:
          type: string

````