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

# Historical Rate for Currency and Date

> Get the exchange rate for a specific currency on a specific historical date. Historical access: Free=none, Starter=30 days, Professional/Business=full history (2018+).



## OpenAPI

````yaml /openapi.json get /{date}/{currency}
openapi: 3.1.0
info:
  title: RBA Exchange Rates API
  description: >-
    Official Reserve Bank of Australia (RBA) exchange rate data through a modern
    REST API. Transforms publicly available RBA data into clean JSON endpoints
    for Australian businesses and developers who need reliable AUD exchange
    rates.
  version: 1.0.0
  license:
    name: MIT
  contact:
    url: https://www.exchangeratesapi.com.au
servers:
  - url: https://api.exchangeratesapi.com.au
    description: Production API
security: []
paths:
  /{date}/{currency}:
    get:
      summary: Historical Rate for Currency and Date
      description: >-
        Get the exchange rate for a specific currency on a specific historical
        date. Historical access: Free=none, Starter=30 days,
        Professional/Business=full history (2018+).
      operationId: getHistoricalRateForCurrencyAndDate
      parameters:
        - name: date
          in: path
          required: true
          description: Date in YYYY-MM-DD format
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          example: '2025-08-31'
        - name: currency
          in: path
          required: true
          description: Currency code
          schema:
            $ref: '#/components/schemas/CurrencyCode'
          example: USD
      responses:
        '200':
          description: Exchange rate for the specified currency and date
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LatestRatesResponse'
              example:
                success: true
                timestamp: 1725062400
                base: AUD
                date: '2025-08-31'
                rates:
                  USD: 0.678234
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - bearerAuth: []
components:
  schemas:
    CurrencyCode:
      type: string
      enum:
        - AUD
        - USD
        - EUR
        - GBP
        - JPY
        - CNY
        - KRW
        - INR
        - SGD
        - NZD
        - THB
        - MYR
        - IDR
        - VND
        - HKD
        - PHP
        - CAD
        - CHF
        - TWD
        - TWI
        - SDR
      description: Three-letter currency code
    LatestRatesResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        timestamp:
          type: integer
          description: Unix timestamp of the rate date
        base:
          type: string
          example: AUD
        date:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: Date of the rates (YYYY-MM-DD)
        rates:
          $ref: '#/components/schemas/RatesObject'
      required:
        - success
        - timestamp
        - base
        - date
        - rates
    RatesObject:
      type: object
      additionalProperties:
        type: number
        minimum: 0
        description: >-
          Exchange rate (AUD per unit of foreign currency) with precision
          varying by currency (up to 6 decimal places for most, whole numbers
          for IDR/VND as provided by RBA)
      description: Object containing currency codes as keys and exchange rates as values
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP status code
            type:
              type: string
              description: Error type identifier
            info:
              type: string
              description: Human-readable error description
          required:
            - code
            - type
            - info
      required:
        - success
        - error
  responses:
    BadRequest:
      description: Bad request - invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: 400
              type: bad_request
              info: Invalid currency format. Use 3-letter currency code (e.g., USD)
    Unauthorized:
      description: Authentication required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: 401
              type: unauthorized
              info: Invalid or missing API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: 404
              type: not_found
              info: No data available for the specified date
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key authentication using Bearer token

````