Example Usage
import { AppRankingsResponse } from "@openrouter/sdk/models";
let value: AppRankingsResponse = {
data: [
{
appId: 12345,
appName: "Cline",
rank: 1,
totalRequests: 4321,
totalTokens: "12345678",
},
{
appId: 67890,
appName: "Roo Code",
rank: 2,
totalRequests: 2109,
totalTokens: "9876543",
},
],
meta: {
asOf: "2026-05-12T02:00:00Z",
endDate: "2026-05-11",
startDate: "2026-04-12",
version: "v1",
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
data | models.AppRankingsItem[] | :heavy_check_mark: | Apps ranked per the requested sort, re-numbered 1..N after category filtering. popular sorts by total_tokens descending; trending sorts by absolute excess token growth descending and may return fewer than limit rows when few apps are growing. | |
meta | models.RankingsDailyMeta | :heavy_check_mark: | N/A | { “as_of”: “2026-05-12T02:00:00Z”, “end_date”: “2026-05-11”, “start_date”: “2026-04-12”, “version”: “v1” } |