Get Activity

strava.get_activity
ActionBusiness appsconnection required

Calls the Strava API with the connection's credentials.

Read one activity in full by its Strava id.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Strava
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"}
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
activity_id
Numeric id of the activity, as returned in the 'id' of a strava.list_activities row.
stringYes——12345678987654321
include_all_efforts
Include every segment effort in the activity, not just the ones Strava highlights. This makes the response considerably larger.
booleanNo———

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "activity_id": "12345678987654321"
}

Output

One shape.

result

FieldTypeExample
id
The activity's Strava id.
number—
name
The activity's title.
string—
sport_type
The sport Strava recorded it under, such as 'Run'.
string—
distance
Distance covered, in metres.
number—
moving_time
Time spent moving, in seconds.
number—
elapsed_time
Wall-clock duration, in seconds.
number—
total_elevation_gain
Elevation gained, in metres.
number—
start_date
When the activity started, in UTC ISO 8601.
string—
start_date_local
The same instant in the athlete's local time.
string—
average_speed
Average speed, in metres per second.
number—
kudos_count
How many kudos the activity has.
number—
athlete.id
Strava id of the athlete the activity belongs to.
number—
{
  "athlete": {
    "id": 0
  },
  "average_speed": 0,
  "distance": 0,
  "elapsed_time": 0,
  "id": 0,
  "kudos_count": 0,
  "moving_time": 0,
  "name": "",
  "sport_type": "",
  "start_date": "",
  "start_date_local": "",
  "total_elevation_gain": 0
}

See Get Activity run in a workflow.

In a technical demo we add the Strava connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.