AppRankingsItem - TypeScript SDK
AppRankingsItem - TypeScript SDK
AppRankingsItem type definition
Example Usage
1 import { AppRankingsItem } from "@openrouter/sdk/models"; 2 3 let value: AppRankingsItem = { 4 appId: 12345, 5 appName: "Cline", 6 rank: 1, 7 totalRequests: 4321, 8 totalTokens: "12345678", 9 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
appId | number | ✔️ | Stable numeric identifier of the app on OpenRouter. | 12345 |
appName | string | ✔️ | Public display name of the app. | Cline |
rank | number | ✔️ | 1-based position of the app within this response, per the requested sort. | 1 |
totalRequests | number | ✔️ | Number of requests attributed to the app inside the date window. | 4321 |
totalTokens | string | ✔️ | Sum of prompt_tokens + completion_tokens attributed to the app inside the date window, returned as a decimal string so 64-bit values are not truncated. | 12345678 |