Example Usage
import { AppRankingsItem } from "@openrouter/sdk/models";
let value: AppRankingsItem = {
appId: 12345,
appName: "Cline",
rank: 1,
totalRequests: 4321,
totalTokens: "12345678",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
appId | number | :heavy_check_mark: | Stable numeric identifier of the app on OpenRouter. | 12345 |
appName | string | :heavy_check_mark: | Public display name of the app. | Cline |
rank | number | :heavy_check_mark: | 1-based position of the app within this response, per the requested sort. | 1 |
totalRequests | number | :heavy_check_mark: | Number of requests attributed to the app inside the date window. | 4321 |
totalTokens | string | :heavy_check_mark: | 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 |