Lodol Docs

Strava

API actions for the Strava integration.

Strava

Track and manage workouts and activities via Strava.


Create activity

Create a new activity in Strava.

Parameters

ParameterTypeRequiredDescription
namestringYesActivity name.
sport_typestringYesSport type (Run, Ride, Swim, etc.).
start_date_localstringYesWhen the activity started, for example, 2026-07-15T09:00:00Z.
elapsed_timenumberYesElapsed time in seconds.
distancenumberNoDistance in meters.
descriptionstringNoActivity description.

Response

{
  "id": "123456789"
}

Get activity

Retrieve detailed information about a specific activity.

Parameters

ParameterTypeRequiredDescription
activity_idnumberYesActivity ID to retrieve.

Response

{
  "distance": 5000,
  "elapsed_time": 1600,
  "id": "987654321",
  "moving_time": 1500,
  "name": "Morning Run",
  "start_date": "2024-01-15T06:30:00Z",
  "type": "Run"
}

Get athlete profile

Get the connected athlete's profile details, including name, city, and follower counts.

Response

{
  "city": "San Francisco",
  "country": "USA",
  "firstname": "Jordan",
  "follower_count": 250,
  "friend_count": 180,
  "id": "123456",
  "lastname": "Smith",
  "username": "rider123"
}

Get athlete stats

Get activity statistics for the connected athlete.

Parameters

ParameterTypeRequiredDescription
athlete_idnumberYesAthlete ID.

Response

{
  "recent_ride_totals": {},
  "recent_run_totals": {},
  "ytd_ride_totals": {},
  "ytd_run_totals": {}
}

List athlete activities

List the connected athlete's recent activities.

Parameters

ParameterTypeRequiredDescription
pagenumberNoWhich page of results to return. Defaults to 1.
per_pagenumberNoHow many activities to return per page. Defaults to 30.

Response

[
  {
    "distance": 5000,
    "id": "987654321",
    "moving_time": 1500,
    "name": "Morning Run",
    "start_date": "2024-01-15T06:30:00Z",
    "type": "Run"
  }
]

On this page