---
title: "Every country and city visited, with counts"
method: GET
path: "/api/stats/breakdown"
tags: ["Stats"]
---

# Every country and city visited, with counts

`GET /api/stats/breakdown`

## Request

- Base URL: `https://trvlrr.app`
- URL: `https://trvlrr.app/api/stats/breakdown`
- Auth: HTTP bearer

Behind the stat tiles. Destinations only: origins and layovers are route detail. Trips that have happened.

## Response `200`

Countries and cities by visits.

- StatsBreakdown
  - `countries` object[], required
    - `country` string, nullable, required
    - `trips` integer, required
    - `cities` integer, required
    - `first` string, nullable, required
    - `last` string, nullable, required
  - `cities` object[], required
    - `name` string, required
    - `country` string, nullable, required: Readable name.
    - `trips` integer, required
    - `first` string, nullable, required
    - `last` string, nullable, required
    - `lived` boolean: A city the traveller has lived in (a home other than their hometown); counted even with no trip to it.

## Other responses

- `401`: No usable credential: a Clerk session token, a device token or an OAuth access token is required.
- `403`: The caller may not do this to this account or trip.

---

[API](https://skmtc.dev/trvlrr/apis/trvlrr-api.md) · [All operations](https://skmtc.dev/trvlrr/apis/trvlrr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trvlrr/apis/trvlrr-api/revisions/ea024946b293?raw)
