# \RoutesApi All URIs are relative to *https://www.strava.com/api/v3* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_route_as_gpx**](RoutesApi.md#get_route_as_gpx) | **GET** /routes/{id}/export_gpx | Export Route GPX [**get_route_as_tcx**](RoutesApi.md#get_route_as_tcx) | **GET** /routes/{id}/export_tcx | Export Route TCX [**get_route_by_id**](RoutesApi.md#get_route_by_id) | **GET** /routes/{id} | Get Route [**get_routes_by_athlete_id**](RoutesApi.md#get_routes_by_athlete_id) | **GET** /athletes/{id}/routes | List Athlete Routes ## get_route_as_gpx > get_route_as_gpx(id) Export Route GPX Returns a GPX file of the route. Requires read_all scope for private routes. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i64** | The identifier of the route. | [required] | ### Return type (empty response body) ### Authorization [strava_oauth](../README.md#strava_oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_route_as_tcx > get_route_as_tcx(id) Export Route TCX Returns a TCX file of the route. Requires read_all scope for private routes. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i64** | The identifier of the route. | [required] | ### Return type (empty response body) ### Authorization [strava_oauth](../README.md#strava_oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_route_by_id > crate::models::Route get_route_by_id(id) Get Route Returns a route using its identifier. Requires read_all scope for private routes. ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i64** | The identifier of the route. | [required] | ### Return type [**crate::models::Route**](Route.md) ### Authorization [strava_oauth](../README.md#strava_oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_routes_by_athlete_id > Vec get_routes_by_athlete_id(page, per_page) List Athlete Routes Returns a list of the routes created by the authenticated athlete. Private routes are filtered out unless requested by a token with read_all scope. ### Parameters 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] ### Return type [**Vec**](Route.md) ### Authorization [strava_oauth](../README.md#strava_oauth) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)