RankingsDailyResponse - TypeScript SDK
RankingsDailyResponse - TypeScript SDK
RankingsDailyResponse type definition
RankingsDailyResponse - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
1 import { RankingsDailyResponse } from "@openrouter/sdk/models"; 2 3 let value: RankingsDailyResponse = { 4 data: [ 5 { 6 date: "2026-05-11", 7 modelPermaslug: "openai/gpt-4o-2024-05-13", 8 totalTokens: "12345678", 9 }, 10 { 11 date: "2026-05-11", 12 modelPermaslug: "anthropic/claude-3.5-sonnet-20241022", 13 totalTokens: "9876543", 14 }, 15 ], 16 meta: { 17 asOf: "2026-05-12T02:00:00Z", 18 endDate: "2026-05-11", 19 startDate: "2026-04-12", 20 version: "v1", 21 }, 22 };
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | models.RankingsDailyItem[] | ✔️ | Up to 51 rows per day — the top 50 public models by total_tokens for each UTC calendar date in the window, plus one aggregated other row summing every model outside that top 50 (omitted when the long tail is empty). Rows are sorted by date ascending, then by total_tokens descending, with other pinned last within its date. Ties between real models break alphabetically on model_permaslug so the order is stable across requests. | |
meta | models.RankingsDailyMeta | ✔️ | N/A | {"as_of": "2026-05-12T02:00:00Z","end_date": "2026-05-11","start_date": "2026-04-12","version": "v1"} |