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

# Get latest daily index for all GPUs

> The latest daily index for every tracked GPU in one call. Public, no key required.

## Overview

The latest daily index for every tracked GPU in one call. Public, no key required.


## OpenAPI

````yaml openapi.yaml GET /api/daily-index/all
openapi: 3.1.0
info:
  title: Ornn Data API
  version: 1.0.0
  description: >
    Read-only REST API for GPU and memory market data. The price index is the
    going rate of compute in USD per GPU-hour, a weighted average of all
    verified compute transactions across the market.
servers:
  - url: https://api.ornnai.com
security:
  - bearerAuth: []
tags:
  - name: Current Prices
  - name: Historical Prices
  - name: Analytics
  - name: Memory
  - name: Token Prices
  - name: Workload Cost
  - name: LLM Coding
  - name: Neo-Cloud Sites
  - name: Reference
paths:
  /api/daily-index/all:
    get:
      tags:
        - Current Prices
      summary: Get latest daily index for all GPUs
      description: >-
        The latest daily index for every tracked GPU in one call. Public, no key
        required.
      responses:
        '200':
          description: Latest daily index per GPU.
          content:
            application/json:
              example:
                success: true
                date: '2026-01-01T00:00:00.000Z'
                data:
                  - gpu_type: A100 SXM4
                    region: global
                    index_value: 1
                    date: '2026-01-01T00:00:00.000Z'
                  - gpu_type: B200
                    region: global
                    index_value: 3
                    date: '2026-01-01T00:00:00.000Z'
                  - gpu_type: H100 SXM
                    region: global
                    index_value: 2
                    date: '2026-01-01T00:00:00.000Z'
                count: 6
      security: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |
            curl "https://api.ornnai.com/api/daily-index/all"
        - lang: python
          label: Python
          source: >
            import requests


            rows =
            requests.get("https://api.ornnai.com/api/daily-index/all").json()["data"]

            for r in rows:
                print(r["gpu_type"], r["index_value"])
        - lang: javascript
          label: JavaScript
          source: >
            const res = await
            fetch("https://api.ornnai.com/api/daily-index/all");

            const { data } = await res.json();
        - lang: php
          label: PHP
          source: |
            <?php
            $ch = curl_init("https://api.ornnai.com/api/daily-index/all");
            curl_setopt_array($ch, [
                CURLOPT_RETURNTRANSFER => true,
            ]);
            $data = json_decode(curl_exec($ch), true);
        - lang: go
          label: Go
          source: "package main\n\nimport (\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tendpoint := \"https://api.ornnai.com/api/daily-index/all\"\n\treq, _ := http.NewRequest(\"GET\", endpoint, nil)\n\tresp, _ := http.DefaultClient.Do(req)\n\tdefer resp.Body.Close()\n\tbody, _ := io.ReadAll(resp.Body)\n\t_ = body\n}\n"
        - lang: java
          label: Java
          source: >
            import java.net.URI;

            import java.net.http.HttpClient;

            import java.net.http.HttpRequest;

            import java.net.http.HttpResponse;


            HttpClient client = HttpClient.newHttpClient();

            HttpRequest request = HttpRequest.newBuilder(
                    URI.create("https://api.ornnai.com/api/daily-index/all"))
                .build();
            HttpResponse<String> response = client.send(request,
            HttpResponse.BodyHandlers.ofString());
        - lang: ruby
          label: Ruby
          source: >
            require "net/http"

            require "json"


            uri = URI("https://api.ornnai.com/api/daily-index/all")

            req = Net::HTTP::Get.new(uri)

            res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http|
            http.request(req) }

            data = JSON.parse(res.body)
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token. Create one in the dashboard.

````