AppRankingsItem - TypeScript SDK

AppRankingsItem type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { AppRankingsItem } from "@openrouter/sdk/models";
2
3let value: AppRankingsItem = {
4 appId: 12345,
5 appName: "Cline",
6 rank: 1,
7 totalRequests: 4321,
8 totalTokens: "12345678",
9};

Fields

FieldTypeRequiredDescriptionExample
appIdnumber✔️Stable numeric identifier of the app on OpenRouter.12345
appNamestring✔️Public display name of the app.Cline
ranknumber✔️1-based position of the app within this response, per the requested sort.1
totalRequestsnumber✔️Number of requests attributed to the app inside the date window.4321
totalTokensstring✔️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