> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uplink.build/llms.txt
> Use this file to discover all available pages before exploring further.

# uplink:SportsActivity

> A single completed sports activity — run, ride, workout, etc.

**`uplink:SportsActivity/v1`** — a single completed sports activity. Run, ride, walk, swim, hike, workout, or `other`.

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `id` | string | ✓ | Stable identifier from the source platform. |
| `type` | string | ✓ | Activity kind: `run`, `ride`, `walk`, `swim`, `hike`, `workout`, or `other`. Use `other` for anything outside the canonical list. |
| `startedAt` | date-time | ✓ | Activity start timestamp (ISO 8601). |
| `durationSeconds` | integer | ✓ | Elapsed time in seconds. Minimum 0. |
| `name` | string | | User-supplied title (e.g. `Morning Run`). |
| `distanceMeters` | number | | Total distance in meters. Omit for non-distance activities (yoga, strength). |
| `elevationGainMeters` | number | | Total elevation gain in meters. |
| `averageHeartRate` | number | | Average heart rate in BPM, if the source captures it. |
| `calories` | number | | Total calories burned, when the source provides it. |
| `url` | uri | | Canonical URL of the activity on the source platform. |

## Why SI units for the numeric fields

Unlike [Route](https://docs.uplink.build/vocabulary/Route.md)'s formatted strings, `SportsActivity` uses raw SI units (`distanceMeters`, `elevationGainMeters`, `durationSeconds`). Activities feed analysis pipelines (weekly totals, pace calculations, elevation aggregates) where consumers need numbers. Consumers format for display.

## Example

```json theme={null}
{
  "id": "17482910284",
  "type": "run",
  "name": "Morning Run",
  "startedAt": "2026-06-14T13:22:00Z",
  "durationSeconds": 2620,
  "distanceMeters": 8420,
  "elevationGainMeters": 74,
  "averageHeartRate": 158,
  "calories": 612,
  "url": "https://www.strava.com/activities/17482910284"
}
```

## Emitted by

* `@atomic/strava` — `activities` on `fetchAll` and `listActivities`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.