Skip to main content
This guide fetches an H100 SXM price series and prepares it for a chart in the browser.

Prerequisites

  • A browser origin allowed by the Ornn API’s CORS configuration, or a server-side proxy you control.
Public access means the free-tier /index-history data needs no key for server-to-server requests. It does not allow every website to call the API directly: browser CORS checks reject unlisted origins. Use your own backend for a third-party site, and never embed an API key in browser code.

Fetch the series

The direct browser request below works only from an origin configured by Ornn. The dates are computed at runtime to remain inside the trailing 3-month public window:

Render with Chart.js

H100 SXM price index line chart over a trailing 30-day window

The rendered Chart.js line chart: H100 SXM daily price index over a trailing 30-day window.

For authenticated endpoints (analytics, full history), put the Authorization: Bearer request on your server and forward only the data to the browser.