GET /nft/collections/sparkline/batch
GET

/v1/nft/collections/sparkline/batch

Batch floor sparklines for multiple collections

AuthNone — works without a key

Request

GEThttps://api.xrpl.to/v1/nft/collections/sparkline/batch?slugs=fuzzybears
Query parameterValueDescription
slugscomma-separated (max 100)
period7d|30d|365d
maxPointsint (2-500)
curl 'https://api.xrpl.to/v1/nft/collections/sparkline/batch?slugs=fuzzybears'

Response

200Example response5 ms · just now · 0.2 KB · 15 lines
https://api.xrpl.to/v1/nft/collections/sparkline/batch?slugs=fuzzybears
{
  "sparklines": {
    "fuzzybears": {
      "prices": [
        592,
        575,
        579,
        564,
        562
      ],
      "chartColor": "#ed5565",
      "percentChange": "-6.42"
    }
  }
}

Long arrays and strings are shortened in the example; Send request for the full answer.

What it does

Batch floor sparklines for multiple collections

Each collection comes back with its slug, the id every Collection endpoint takes. To find one by name, use POST /search (under Token List): it covers collections and NFTs too. Go to Collection →
OpenAPI