Thanks!
Yes filtering for the list activities endpoint is probably something I should do. A lot of the other endpoints already support filtering.
You need to use GET /api/v1/athlete/{id}/activity-pace-curves{ext} for your best efforts query.
You can seen it in action using the inspector by adding a “Best pace” custom chart:
GET /api/athlete/2060784/activity-pace-curves?oldest=2023-06-15T00:00:00&newest=2024-06-03T23:59:59&distances=5000&gap=false
Just change /api to /api/v1 to call it yourself. You can specify multiple distances with commas. That endpoint also supports filtering. Add some filters to the tab to see how to do it.
For one single activity you can fetch its pace curve with GET /api/v1/activity/{id}/pace-curve{ext}