Hello,
I know there are various third-party tools that use Strava API data for gathering information for crowns/CRs. However, I would like to gather information on a number of Local Legends for segments that are local to me. I have two questions:
a) Are there any APIs available that include Local Legend data? I did a web search and found several references indicating that Local Legend data is not included in APIs, even though crown/CR data is in the APIs.
b) If I use a web scraping tool to gather the Local Legend information from approximately 200 segments, would this violate any terms of my user agreement? Once again, I know that there are tools that exist to scrape this data for crowns/CRs, but I don't know if the same open policy applies to Local Legends data.
Thank you!
Dennis
Answered
Local Legend data in APIs
Best answer by Jan_Mantau
The API endpoint /segments/{id} will give you the local legend athlete id, name and number of efforts in the result json:
{
...
"local_legend":
{
"athlete_id":5437327,
"title":"Jan Mantau",
"profile":"https://dgalywyr863hv.cloudfront.net/pictures/athletes/5437327/25064807/2/large.jpg",
"effort_description":"6 efforts in the last 90 days",
"effort_count":"6",
"effort_counts":
{
"overall":"6 efforts",
"female":"3 efforts"
},
"destination":"strava://segments/21100756/local_legend?categories%5B%5D=overall"
}
}
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
