# com.hikeratlas.temp.getRouteStats

> Counts of faves, reviews and tracks for up to 100 routes, by route key. Served by Hiker Atlas's indexer (https://github.com/hikeratlas/atproto-indexer). In beta: may change.

- Kind: query
- Authority: temp.hikeratlas.com
- Lexicon: 1
- Published by [hikeratlas.com](https://lexicon.garden/identity/did:plc:7onixtzlmdjijmp7ympxedte), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.getRouteStats)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.getRouteStats/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.getRouteStats/analytics)

## Query (`com.hikeratlas.temp.getRouteStats`)

Type: query · GET

### Parameters (query string)

- `keys` (array, required)
  - Constraints: minLength: 1, maxLength: 100
  - `items` (string): A route key (com.hikeratlas.temp.defs#routeKey).
    - Constraints: maxLength: 128

### Output (application/json)

- `routes` (array, required): One per distinct key asked for, in the order asked; zeros for a route nobody has posted about.
  - `items` (ref)
    - Reference: `com.hikeratlas.temp.defs#routeStats`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Counts of faves, reviews and tracks for up to 100 routes, by route key. Served by Hiker Atlas's indexer (https://github.com/hikeratlas/atproto-indexer). In beta: may change.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "routes": {
              "description": "One per distinct key asked for, in the order asked; zeros for a route nobody has posted about.",
              "items": {
                "ref": "com.hikeratlas.temp.defs#routeStats",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "routes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "keys": {
            "items": {
              "description": "A route key (com.hikeratlas.temp.defs#routeKey).",
              "maxLength": 128,
              "type": "string"
            },
            "maxLength": 100,
            "minLength": 1,
            "type": "array"
          }
        },
        "required": [
          "keys"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.hikeratlas.temp.getRouteStats",
  "lexicon": 1
}
```
