1. Get a token
Request one from david@compute-index.com. See Authentication for what a token can read. Already using v1 with agpi_… API key? v2 needs an access token instead — see
Migrating from v1.
2. Ask what you may query
/metadata tells you the values you can filter on and how far back you can read. It is quick, and
it is the right first call for any data type.
3. Read current prices
Rental prices need at least one filter that narrows the query — a vendor, a GPU, or similar.gpu_search takes free text and works out which GPU you mean:
page_size=10 and you have v1’s
/prices/lowest.
4. Walk a full result set
Results come back a page at a time. Followmeta.next until it is null, and send nothing
else — the link already carries your filters, dates and ordering:
Next steps
Concepts
How every data type behaves — the four endpoints, paging, and dates.
Full example
Read an index and its history, then overlay them.