Strava integration

Strava activity data, in your own cloud

One API for Strava and for the rest of the wearables your users own, connected through the official Strava developer API and returned in a single schema. Self-hosted in a cloud account you control, under an MIT licence.

Built on Open Wearables

  • Heart Monitor logo
  • Hundred logo
  • JustGains logo
  • Lifelong logo
  • MoveTogether logo
  • ROXFIT logo
  • Smarter Diagnostics logo
  • Suna logo
  • Yoboo logo

Data coverage

Strava data we support

Strava goes deep on what happened during a session, and everything below arrives in the same schema as every other source.

  • Activities

    Distance, moving time, calories and heart rate.

  • Speed and power

    Average and maximum for both, per session.

  • Elevation

    Total climbing, plus the highest and lowest points.

  • Per-sample streams

    Heart rate, speed, cadence and power, when enabled.

  • Sport and source

    Sport type, the recording device and manual entries.

What working with Open Wearables gives you

Two views of the same deployment. One for the people wiring it in, one for the people signing it off.

  • One schema, not one per provider

    A Strava ride and a Garmin ride arrive in the same fields, so your code compares them without a translation layer and adding a source later does not change the call.


    • Activities
    • Streams
    • Sport types
  • Webhooks that answer in time

    Strava sends only an activity id and expects a response within two seconds. Open Wearables checks the signature, acknowledges at once and queues the fetch, so the call that pulls the full activity happens after the window rather than inside it.


    • Webhooks
    • Signed events
    • Two-second window
  • Streams when you want them

    Per-sample heart rate, speed, cadence and power are ingested only if you enable them, so a large backfill does not fill your database with data you are not using.


    • Optional
    • Off by default
  • Energy that is never empty

    Strava's activity list often returns no calorie value. Open Wearables falls back to the kilojoules from the power data rather than leaving the field empty.


    • Calories
    • Kilojoule fallback

How it works

From nothing to your first Strava query

  1. 01

    Bring it up

    Clone the repository and run it with Docker Compose. First API call in five minutes, before any provider is connected.

    Terminal

    git clone https://github.com/the-momentum/open-wearables.git
    cd open-wearables && docker compose up -d
  2. 02

    Register your Strava app

    Create an application in Strava's API settings and bring the client ID and secret. That takes minutes and covers up to ten connected athletes. For more, you submit the app for Extended Access through the same dashboard and Strava reviews it.

    Strava API settings
  3. 03

    Connect a user

    Your user authorises through Strava's own consent screen. Open Wearables requests the scopes it needs and handles the token lifecycle from there, including the refresh that keeps the connection alive months later.

  4. 04

    Query the user, not the provider

    Strava data arrives in the same schema as every other source, in your own database, so your application code carries no Strava-specific branches.

    Strava API setup guide

The honest comparison

Hosted SaaS API, in-house build, or self-hosted

Where each one actually wins. If a hosted API fits your situation, use one.

Hosted SaaS APIBuild in-houseOpen Wearables, self-hosted
[01] Strava credentialsTheirs, already approvedYours to obtainYours, in your own name
[02] The two-second webhook windowThey absorb itYours to hit, every timeAcknowledged first, fetched after
[03] Per-sample streamsRarely exposedYours to fetch and storeOptional, off by default
[04] Where Strava data sitsTheir cloud, their regionsYoursYour cloud account, your region
[05] The data modelTheirs, you build against their schemaYoursYours, in your database
[06] Strava API changesThey absorb themYour team tracks and adaptsFixed in a release you pull
[07] Cost shapeScales with monthly active usersSalaries and infrastructureFixed, flattens as you grow

What stays yours

The deployment, the data and what you build on it stay in your account, whoever runs it

Sovereignty

Strava data goes straight to your cloud, with no aggregator in between.

Residency

It stays in the region you chose, provable by pointing at an account.

Control

What you build on top of Open Wearables is yours, and the schema and the data are in your account.

Your own reasons

No regulator forcing it. You want the data in your own account anyway.

Strava is one integration in the same API

You query a user rather than a provider, so somebody who rides with a Strava account and sleeps with a ring comes back in one shape. That pairing is the normal case here, because Strava covers the session and something else covers the night.

Browse all integrations

Deploy Open Wearables in your own cloud

The repository is public and the deployment is yours from the first commit. Start from the source, or bring us in to stand it up in your account with Strava connected and validated on real accounts.

FAQ

Do you have more questions?

Does Strava have an API?

Yes. You register an application in Strava's API settings to get a client ID and secret, and users connect through OAuth. Getting started is self-serve, with no approval queue.

How many users can we connect?

Up to ten athletes on the Standard tier, which you enable yourself, at 200 requests per 15 minutes and 2,000 a day. Beyond that you submit the app for Extended Access through the same dashboard, Strava reviews it, and the limits rise to 400 and 4,000. The setup guide in the docs covers both.

What does Strava actually give us?

Activities, in depth. Distance, moving time, calories, heart rate average and maximum, speed average and maximum, power average and maximum, elevation gain and the high and low points. Optionally, per-sample streams for heart rate, speed, cadence and power through the session.

Does Strava give us sleep or recovery data?

Strava covers sessions rather than the day around them, so that side comes from a wearable. Teams usually connect one alongside it, and both land in the same schema under the same user, which is how a ride and the night that followed end up in one query.

What are per-sample streams and should we use them?

They are the second-by-second readings inside a workout: heart rate, speed, cadence and power. They are useful if you are drawing graphs of a session or analysing intervals, and expensive if you are not, because one long ride produces thousands of rows. Ingestion is off by default and you turn it on when you need it.

Does it support webhooks?

Yes, for activities created, updated and deleted, plus a notice when someone disconnects your app. The event carries only the activity id and what changed, and Strava expects a response within two seconds. Open Wearables answers straight away and queues the fetch, so the two-second limit is never the thing that breaks delivery.

How are webhook events verified?

Every event carries a signature built from your client secret, and Open Wearables checks it before doing anything with the payload. Subscription setup uses a challenge that Strava sends to your callback and expects echoed back, which is handled for you.

How many webhook subscriptions can we have?

One per application, which is Strava's limit rather than ours. It covers every user who has authorised your app.

Whose terms apply to the data?

Strava's. Your application is registered with Strava in your name, so its API Agreement governs how you use the data, whoever runs the integration. It is worth reading before you design a feature on top of it.

Which scopes does this need?

activity:read_all and profile:read_all. The first covers activities including private ones, the second the athlete profile.

Why do some activities have no calories?

Strava's activity list often returns no calorie value, and it is only present on the detailed record. Open Wearables falls back to kilojoules from the power data so the energy field is populated either way.

Can we tell which device recorded an activity?

Yes. The device name comes through on the activity, and a manual entry is flagged as such. That matters when the same user syncs a watch through Strava and through its own integration, because you can see which record came from where.

Which sports does it recognise?

Strava's activity types are mapped to the same taxonomy every other source uses, so a Strava ride and a Garmin ride group together. Legacy activity types are still read, so older sessions do not fall through.