GET
/
v1
/
benchmarks
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  // Automatically fetches more pages as needed.
  for await (const benchmarkListResponse of client.benchmarks.list()) {
    console.log(benchmarkListResponse.id);
  }
}

main();
{
  "benchmarks": [
    {
      "id": "<string>",
      "name": "<string>",
      "scenarioIds": [
        "<string>"
      ],
      "metadata": {},
      "is_public": true
    }
  ],
  "has_more": true,
  "total_count": 123,
  "remaining_count": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer

The limit of items to return. Default is 20.

starting_after
string

Load the next page of data starting after the item with the given ID.

Response

200 - application/json
OK
benchmarks
object[]
required

List of Benchmarks matching filter.

A BenchmarkView represents a grouped set of Scenarios that together form a Benchmark.

has_more
boolean
required
total_count
integer
required
remaining_count
integer
required