# Smashrun

> Find runs, review statistics and splits, and update your running notes.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/smashrun

## Actions

### Get a run

Read the full details of a Smashrun activity.

**Inputs**

- Activity ID (`activity_id`, number, required): The ID from Search runs. At least 1.

**Outputs**

- `data` (object): The response from Smashrun.

**Example output**

```json
{
  "data": {
    "activityId": 1,
    "distance": 1,
    "duration": 1,
    "notes": "example",
    "startDateTimeLocal": "example"
  }
}
```

### Get a runner profile

Read the connected runner’s profile and measurement preferences.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Smashrun.

**Example output**

```json
{
  "data": {
    "dateTimeUTCOfLastRun": "example",
    "dateTimeUTCOfLastRunDataUpdated": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "unitDistance": "example",
    "unitWeight": "example",
    "username": "example"
  }
}
```

### Get running statistics

Read your running totals and averages across all runs.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Smashrun.

**Example output**

```json
{
  "data": {
    "averagePace": "example",
    "averageSpeed": 1,
    "runCount": 1,
    "totalDistance": 1
  }
}
```

### Get yearly running statistics

Read your running totals and averages for a year.

**Inputs**

- Year (`year`, number, required): The year to summarize. From 1900 to 9999.

**Outputs**

- `data` (object): The response from Smashrun.

**Example output**

```json
{
  "data": {
    "averagePace": "example",
    "averageSpeed": 1,
    "runCount": 1,
    "totalDistance": 1
  }
}
```

### List body weight entries

Read historical measurements from Smashrun.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Smashrun.

**Example output**

```json
{
  "data": [
    {}
  ]
}
```

### List run notables

Find personal milestones and comparisons for a run.

**Inputs**

- Activity ID (`activity_id`, number, required): The ID from Search runs. At least 1.

**Outputs**

- `data` (list): The response from Smashrun.

**Example output**

```json
{
  "data": [
    {
      "description": "example",
      "periodMonths": 1,
      "reasonCode": "example"
    }
  ]
}
```

### List run splits

Read speed and average heart rate for mile or kilometer splits.

**Inputs**

- Activity ID (`activity_id`, number, required): The ID from Search runs. At least 1.
- Unit (`unit`, text, required): Choose the distance of each split. One of: `km`, `mi`.

**Outputs**

- `data` (list): The response from Smashrun.

**Example output**

```json
{
  "data": [
    {}
  ]
}
```

### List run tags

List the built-in and custom tags assigned to a run.

**Inputs**

- Activity ID (`activity_id`, number, required): The ID from Search runs. At least 1.

**Outputs**

- `data` (list): The response from Smashrun.

**Example output**

```json
{
  "data": [
    "example"
  ]
}
```

### Search runs

Find runs with optional paging or a time filter for recent changes.

**Inputs**

- Changed since (`changed_since`, date and time): Include runs added or updated since this time.
- Limit (`limit`, number): The maximum number of runs to return. From 1 to 100.
- Page (`page`, number): The page to return, starting at zero. Set a page size as well. At least 0.

**Outputs**

- `data` (list): The response from Smashrun.

**Example output**

```json
{
  "data": [
    {
      "activityId": 1,
      "distance": 1,
      "duration": 1,
      "notes": "example",
      "startDateTimeLocal": "example"
    }
  ]
}
```

### Update run notes

Replace the notes on a run.

**Inputs**

- Activity ID (`activity_id`, number, required): The ID from Search runs. At least 1.
- Notes (`notes`, text, required): The replacement notes for the run.

**Outputs**

- `data` (object): The response from Smashrun.

**Example output**

```json
{
  "data": {
    "activityId": 1,
    "distance": 1,
    "duration": 1,
    "notes": "example",
    "startDateTimeLocal": "example"
  }
}
```
