Requested permissions

read_activity
write_activity
copy
open
Get
Post
Put
Delete

UserName At present you can only retrieve your own data so this should always be "my" or the username of the authorized user (which are equivalent).

activities

https://api.smashrun.com/v1/my/activities

The activities endpoint can be used to GET existing runs or POST new runs to a user's account.

sample json
sample tcx
sample gpx
validate
execute
Line wrap off
request
response
Flag an activity as deleted (activity may be undeleted by the user)
ActivityId execute Unique id of the activity to flag as deleted. https://api.smashrun.com/v1/my/activities/activityId
Get one full activity by id
ActivityId execute Unique id of the activity to retrieve. https://api.smashrun.com/v1/my/activities/activityId
Get a polyline representing the shape of the run. The values are string encodings of the latitude and longitude points using the encoded polyline algorithm, geojson, or SVG polyline format.
ActivityId execute Unique id of the activity of the polyline to retrieve. Return type
  • Google Encoded
  • SVG
  • GeoJSON
https://api.smashrun.com/v1/my/activities/activityId/polyline
Get splits for a run (stats over regular 1km or 1mi intervals)
ActivityId execute Unique id of the activity of the splits to retrieve. Return type
  • Kilometer
  • Mile
https://api.smashrun.com/v1/my/activities/activityId/splits
Get all activities in summary format (ordered by StartDate)
https://api.smashrun.com/v1/my/activities execute
Get activity summaries that are new or updated since a date
Date execute The API accepts unix timestamps (UTC), however if you pass an ISO 8601 date in the textbox we'll convert it for you.   
Return type
  • Summary
  • Brief
  • Id
  • Extended
https://api.smashrun.com/v1/my/activities/search?fromDate=1405439180
Get n most recent activity summaries
Count execute Count of the most recent activities to return ordered by UTC StartDateTime.
Return type
  • Summary
  • Brief
  • Id
  • Extended
https://api.smashrun.com/v1/my/activities/search?count=5
Get n most recent activity summaries starting on page k
Count
Count of the most recent activities to return ordered by UTC StartDateTime. Page execute 0 based index of the page of data to return
Return type
  • Summary
  • Brief
  • Id
  • Extended
https://api.smashrun.com/v1/my/activities/search?count=10&page=5
Line wrap off
Get
Post
Put
Delete

UserName At present you can only retrieve your own data so this should always be "my" or the username of the authorized user (which are equivalent).

activity notables

https://api.smashrun.com/v1/my/activities/{id}/notables

The activities notables endpoint can be used to GET the notables for an existing activity.

request
response
Get notables for a specified activity
ActivityId execute Unique id of the activity https://api.smashrun.com/v1/my/activities/activityId/notables
Line wrap off
Get
Post
Put
Delete

UserName At present you can only retrieve your own data so this should always be "my" or the username of the authorized user (which are equivalent).

badges

https://api.smashrun.com/v1/username/badges

The badges endpoint can be used to retrieve all of the badges a user has earned,

request
response
Get all badges a user has earned

https://api.smashrun.com/v1/my/badges execute

Check for any new badge awards (after adding a run)

https://api.smashrun.com/v1/my/badges/new execute

Line wrap off
Get
Post
Put
Delete

stats

https://api.smashrun.com/v1/my/stats

The stats endpoint can be used to get summary information about a user's running for a given month, year, or all time

request
response
Get stats for a given year and month
Year The year of the summary data. If left blank then all time summary will be returned Month execute 1 = January. If left blank year summary data will be returned.
https://api.smashrun.com/v1/my/activities/stats/2016/12
Line wrap off
Get
Post
Put
Delete

body

https://api.smashrun.com/v1/my/body

The body endpoint can be used to get and save metrics about an athlete's body. Weight for now, but maybe one day: body fat, sleep, blood pressure, etc...

sample json
sample json
execute
Line wrap off
request
response
Get your most recent weight recording

https://api.smashrun.com/v1/my/body/weight/latest execute

Get all weight recordings

https://api.smashrun.com/v1/my/body/weight execute

Line wrap off
Get
Post
Put
Delete

body

https://api.smashrun.com/v1/my/userinfo

The userinfo endpoint returns information about the user associated with the current oauth token

sample json
sample json
execute
Line wrap off
request
response
Get info about current user

https://api.smashrun.com/v1/my/userinfo execute

Line wrap off