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_localstringYesStart date/time in ISO format.
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

Retrieve the authenticated 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

Retrieve statistics for the authenticated athlete.

Parameters

ParameterTypeRequiredDescription
athlete_idnumberYesAthlete ID.

Response

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

List athlete activities

List the authenticated athlete's recent activities.

Parameters

ParameterTypeRequiredDescription
pagenumberNoPage number for pagination (default 1).
per_pagenumberNoNumber of activities per page (default 30).

Response

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

On this page