TrackMap Strava API Integration
by TrackMap • Powered by Django REST Framework • Uses Strava API
Welcome! This is the TrackMap backend and API, supporting Strava integration for connected fitness experiences.
This backend exposes several REST endpoints designed for use with the TrackMap frontend, but all endpoints are accessible for custom integrations and testing.
System Structure
Frontend:
- Single-page app (typically React/Vue) or another JS application
- Connects via AJAX/REST to backend API endpoints below
- Handles Strava OAuth login flow, displays activity, stats, and segment exploration
Backend:
- Django + Django Rest Framework serving API endpoints
- Integrates with Strava API for activity/athlete data
- Handles OAuth authentication, activity import, aggregation, and analysis
API Endpoints
-
Authenticate via Strava:
GET /api/strava/auth/ (returns OAuth URL to authenticate)
-
Handle OAuth redirect:
GET /api/strava/callback/ (Strava calls this after user authorizes access)
-
Sync latest activities:
POST /api/strava/sync/ (Import recent activities)
-
List all activities:
GET /api/strava/activities/ (paginated results)
-
Get activity detail:
GET /api/strava/activities/<id>/
-
Fetch aggregated stats (total distance, time, achievements, etc):
GET /api/strava/stats/
-
AI-powered activity summary:
POST /api/strava/summary/
POST /api/strava/explorer-summary/
-
Explore segments & search activities:
GET /api/strava/explore/segments/
GET /api/strava/explore/activities/
-
Disconnect Strava account:
POST /api/strava/disconnect/
Attribution
This service is part of the
TrackMap project and makes use of the official
Strava API.
Activity data is fetched, processed, and served in accordance with Strava's API terms of service. TrackMap is not affiliated with Strava.
More Information
- See
README.md in the main repo for setup and development instructions.
- API requests require authentication via the Strava OAuth 2.0 flow.
- Contact TrackMap contributors for custom deployments or integration support.
© 2025 TrackMap — Strava Integration Backend
Built with Django REST Framework | trackmap.ai