Example Usage
import { GetAppRankingsResponse } from "@openrouter/sdk/models/operations";
let value: GetAppRankingsResponse = {
result: {
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 |
|---|---|---|---|---|
result | models.AppRankingsResponse | :heavy_check_mark: | N/A | { “data”: [ { “app_id”: 12345, “app_name”: “Cline”, “rank”: 1, “total_requests”: 4321, “total_tokens”: “12345678” }, { “app_id”: 67890, “app_name”: “Roo Code”, “rank”: 2, “total_requests”: 2109, “total_tokens”: “9876543” } ], “meta”: { “as_of”: “2026-05-12T02:00:00Z”, “end_date”: “2026-05-11”, “start_date”: “2026-04-12”, “version”: “v1” } } |