Skip to main content
Answer

Can't find segments

  • June 6, 2024
  • 2 replies
  • 51 views

Forum|alt.badge.img+3

Hello everyone, I'am discovering the Strava API and i have already an issue with the fonctionnality "explore segments"

This is my code :

http get "https://www.strava.com/api/v3/segments/explore?bounds=[48.750242,5.116399597167978,48.79404419496171,5.216993164062509]&activity_type=riding" "Authorization: Bearer my_token"

I ran it in the command prompt and none segments are found. Can you help me ?

Best answer by osco55

Issue resolved, i put datas locations in a array but i didn't need

the right request for example :

https://www.strava.com/api/v3/segments/explore?bounds=48.75115481403026,5.120762279830107,48.795644130969826,5.219697&activity_type=riding

2 replies

Forum|alt.badge.img+22
  • Community Manager
  • June 7, 2024

Hey @osco55 - it's possible that there are no segments in the location that you're requesting data for. 

We'd recommend first doing a test on an area where you know there are a lot of segments. 


Forum|alt.badge.img+3
  • Author
  • Hub Rookie
  • Answer
  • June 8, 2024

Issue resolved, i put datas locations in a array but i didn't need

the right request for example :

https://www.strava.com/api/v3/segments/explore?bounds=48.75115481403026,5.120762279830107,48.795644130969826,5.219697&activity_type=riding