For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
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.