Strava icon

Strava

Consume the official Strava API v3. Also includes undocumented Web Session operations (marked ⚠️) that use a browser session cookie and may break without notice.

Web Session (Undocumented) → Build Follow Request Data

AI-generated

Summary

Builds request data for a Strava athlete follow or unfollow action without sending the request.

Inputs

  • Mode (required) — Choose Follow or Unfollow.
  • Follower ID (required) — The authenticated athlete’s Strava ID.
  • Following ID (required) — In Follow mode, the ID of the athlete to follow.
  • Follow ID (required) — In Unfollow mode, the relationship ID returned by the Follow Athlete operation.

Output shape

A list containing one JSON item with the request method and endpoint; Follow mode also includes a body.

Follow returns POST to the follower’s follows endpoint with nested follower and following IDs in the body. Unfollow returns DELETE to the follower’s specific follow endpoint and has no body. The operation does not send the request; zero IDs cause an error.

Links

Discussion