All URIs are relative to https://www.strava.com/api/v3
Method | HTTP request | Description |
---|---|---|
explore_segments | GET /segments/explore | Explore segments |
get_logged_in_athlete_starred_segments | GET /segments/starred | List Starred Segments |
get_segment_by_id | GET /segments/{id} | Get Segment |
star_segment | PUT /segments/{id}/starred | Star Segment |
crate::models::ExplorerResponse explore_segments(bounds, activity_type, min_cat, max_cat) Explore segments
Returns the top 10 segments matching a specified query.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
bounds | Vec | The latitude and longitude for two points describing a rectangular boundary for the search: [southwest corner latitutde, southwest corner longitude, northeast corner latitude, northeast corner longitude] | [required] | |
activity_type | Option<String> | Desired activity type. | ||
min_cat | Option<i32> | The minimum climbing category. | ||
max_cat | Option<i32> | The maximum climbing category. |
crate::models::ExplorerResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Veccrate::models::SummarySegment get_logged_in_athlete_starred_segments(page, per_page) List Starred Segments
List of the authenticated athlete's starred segments. Private segments are filtered out unless requested by a token with read_all scope.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
page | Option<i32> | Page number. Defaults to 1. | ||
per_page | Option<i32> | Number of items per page. Defaults to 30. | [default to 30] |
Veccrate::models::SummarySegment
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::DetailedSegment get_segment_by_id(id) Get Segment
Returns the specified segment. read_all scope required in order to retrieve athlete-specific segment information, or to retrieve private segments.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | i64 | The identifier of the segment. | [required] |
crate::models::DetailedSegment
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::DetailedSegment star_segment(id, starred) Star Segment
Stars/Unstars the given segment for the authenticated athlete. Requires profile:write scope.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | i64 | The identifier of the segment to star. | [required] | |
starred | bool | If true, star the segment; if false, unstar the segment. | [required] | [default to false] |
crate::models::DetailedSegment
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]