Skip to main content
Answer

Return CO2 saved on /activities/{id} call

  • October 2, 2023
  • 2 replies
  • 34 views

Forum|alt.badge.img+4

I have a personal project where I am creating activities based on rides taken on a bikeshare program. I want to be able to calculate the CO2 saved by taking this form of transportation, as I see this data in the Strava platform but it isn't returned on the /activities/id API call. It would be amazing if this could be added.

Best answer by Jan_Mantau

You can calculate it yourself, it's simply 0.00021743 kg CO2 per distance in meters.

2 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • Answer
  • October 2, 2023

You can calculate it yourself, it's simply 0.00021743 kg CO2 per distance in meters.


Forum|alt.badge.img+4
  • Author
  • Hub Rookie
  • October 2, 2023

Got it, thanks! Good to know. I thought it was a constant, but had hoped it might have been a bit more of a complex solution. Appreciated.