# lg_rankings: Public model and app rankings

Read the public rankings: the most used models, and the apps that send attribution headers, by tokens over a day, week or month.

- **Changes data:** no (read only)
- **Credential scope:** any signed-in key
- **Assistant level:** any connected assistant (Read only and up)

## Inputs

| Field | Type | Required | Notes |
|---|---|---|---|
| `query` | object (period, limit) | no |  |
| `query.period` | "day" \\| "week" \\| "month" | no |  |
| `query.limit` | integer | no |  |

## Example MCP call

A `tools/call` request to `https://manage.restolayer.com/mcp`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_rankings",
    "arguments": {
      "query": {
        "period": "week",
        "limit": 10
      }
    }
  }
}
```

## Example REST call

The same thing over REST (`GET /v1/rankings`):

```bash
curl -s -X GET "https://manage.restolayer.com/v1/rankings?period=week&limit=10" \
  -H "Authorization: Bearer $LG_API_KEY"
```

All tools: [MCP tools](https://www.restolayer.com/docs/mcp/tools). Connecting: [connect your assistant](https://www.restolayer.com/docs/connect).
