Personal records
curl --request GET \
--url https://api.rewind.rest/v1/running/prs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rewind.rest/v1/running/prs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rewind.rest/v1/running/prs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"distance": "5K",
"distance_label": "5K",
"time": "22:45",
"time_s": 1365,
"pace": "7:20/mi",
"date": "2024-09-15",
"activity_id": 12345,
"activity_name": "Fall 5K Race"
},
{
"distance": "10K",
"distance_label": "10K",
"time": "48:30",
"time_s": 2910,
"pace": "7:49/mi",
"date": "2024-06-01",
"activity_id": 12346,
"activity_name": "Summer 10K"
},
{
"distance": "Half Marathon",
"distance_label": "Half Marathon",
"time": "1:45:00",
"time_s": 6300,
"pace": "8:01/mi",
"date": "2023-10-08",
"activity_id": 12347,
"activity_name": "Portland Half Marathon"
}
]
}{
"error": "Not found",
"status": 404
}Running
Personal records
Returns personal records for standard race distances.
GET
/
v1
/
running
/
prs
Personal records
curl --request GET \
--url https://api.rewind.rest/v1/running/prs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rewind.rest/v1/running/prs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rewind.rest/v1/running/prs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"distance": "5K",
"distance_label": "5K",
"time": "22:45",
"time_s": 1365,
"pace": "7:20/mi",
"date": "2024-09-15",
"activity_id": 12345,
"activity_name": "Fall 5K Race"
},
{
"distance": "10K",
"distance_label": "10K",
"time": "48:30",
"time_s": 2910,
"pace": "7:49/mi",
"date": "2024-06-01",
"activity_id": 12346,
"activity_name": "Summer 10K"
},
{
"distance": "Half Marathon",
"distance_label": "Half Marathon",
"time": "1:45:00",
"time_s": 6300,
"pace": "8:01/mi",
"date": "2023-10-08",
"activity_id": 12347,
"activity_name": "Portland Half Marathon"
}
]
}{
"error": "Not found",
"status": 404
}⌘I