Strava
The Qlik Strava connector uses the Strava API V3 to fetch your athletic activity stats from Strava.
Ways to access your data
To access your Strava data, you need to authenticate the connector with your Strava account credentials. After you create a connection and select Strava as your data source, you are redirected to a Strava login page. Log in with your credentials to retrieve an authentication code, and enter it into the connector.
Creating a data source connection
Loading data from tables
After you authenticate the connector with your account credentials, you can use the following tables to select and load data.
Table data is displayed in the following formats:
- Distance and elevation: meters
- Speed: meters per second
- Time: seconds
Table | Available in | Description |
---|---|---|
Stats | Menedżer danych and Edytor ładowania danych | List the stats of your most recent, year-to-date, and all-time activities. |
Activities | Menedżer danych and Edytor ładowania danych | View the activities for the authenticated athlete. |
Athlete | Menedżer danych and Edytor ładowania danych | View a summary for the authenticated athlete. |
KOMs |
Menedżer danych and Edytor ładowania danych | Returns segment efforts representing overall King/Queen of the Mountain (KOMs/QOMs) and course records held by the authenticated athlete. Yearly KOMs/QOMs are not included. |
ListClubs | Menedżer danych and Edytor ładowania danych | Returns a list of the clubs whose membership includes the authenticated athlete. |
ClubActivities | Edytor ładowania danych | Retrieve recent activities from members of a specific club. The authenticated athlete must belong to the requested club. |
ClubMembers | Edytor ładowania danych | Returns a list of the athletes who are members of the specified club. |
Gear | Edytor ładowania danych | Returns details of the specified gear. The authenticated athlete must own the gear. |
ListRoutes | Menedżer danych and Edytor ładowania danych | Returns routes created by the authenticated athlete. |
RouteSegments | Edytor ładowania danych | Returns segment data for the specified route. |
ListStarredSegments | Menedżer danych and Edytor ładowania danych | List of the authenticated athlete's starred segments. |
GetSegment | Edytor ładowania danych | Returns the specified segment. |
SegmentEfforts | Edytor ładowania danych | Returns a set of the authenticated athlete's segment efforts for a given segment. Requires a subscription. |
To select and load data from a table, enter the required table parameters and click Preview data. Required parameters are marked with an asterisk (*) in the dialog. The table fields are displayed under the Data preview tab. You can select fields individually by selecting the box beside each field name. Select Insert script after you have made your selection.
Creating a connection and selecting data
Working with the Strava API quota limits
The Łączniki internetowe Qlik use the Strava API V3 to extract data from Strava and load it into your Qlik Sense app. While reloading your Strava-based app, you might receive an error message that the connector has reached the Strava API V3 rate limit and that all subsequent API calls will fail until the connector falls back under the throttling limit. If you receive this error message, then you have exceeded one of the API rate limits.
Troubleshooting
You receive an error message that you have reached the API rate limit
Możliwa przyczyna
You have exceeded the API limits that are imposed by the Strava API V3.
Proponowane działanie
To reduce the impact of reaching API rate limits, develop your app with the following in mind:
- Extract only the data you need.
- Reload one Strava-based application at a time.
- Ensure that loops in your script that make API calls do not result in infinite loops.