Accessing year to date

May 2, 2021

Please could someone help me get my year to date mileage from Strava using the API?

Thanks.