How to authenticate · OpenAPI spec for these endpoints
/api/v1/collections.json
Returns a list of collections
/api/v1/collections/{id}.json
Returns the specified collection
/api/v1/collections/pinned.json
Returns the user's pinned collection
/api/v1/collections.json
Returns a paginated list of collections for the authenticated user.
Supports filtering by name and visibility.
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
page
integer
query
page_size
integer
query
name
string
query
visibility
string
query
public, followers_only, mutual_followers_only, private
collections
array of objects
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
or null
description
string
or null
cover
string
or null
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/collections.json
{
"collections": [
{
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/collections/123.json",
"html_url": "https://ridewithgps.com/collections/123",
"visibility": "public",
"name": "Portland favorites",
"description": "Our best rides around Portland",
"cover": null,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
]
}
/api/v1/collections/{id}.json
Returns detailed information about a specific collection
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
id
integer
path
required
privacy_code
string
query
collection
object
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
or null
description
string
or null
cover
string
or null
created_at
date-time
updated_at
date-time
routes
array of objects
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
description
string
or null
locality
string
or null
administrative_area
string
or null
country_code
string
or null
distance
number
elevation_gain
number
elevation_loss
number
first_lat
number
first_lng
number
last_lat
number
last_lng
number
sw_lat
number
sw_lng
number
ne_lat
number
ne_lng
number
track_type
string
or null
terrain
string
or null
difficulty
string
or null
unpaved_pct
number
or null
surface
string
or null
archived
boolean
or null
created_at
date-time
updated_at
date-time
trips
array of objects
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
description
string
or null
departed_at
date-time
or null
time_zone
string
or null
locality
string
or null
administrative_area
string
or null
country_code
string
or null
activity_type
string
or null
fit_sport
integer
or null
fit_sub_sport
integer
or null
stationary
boolean
distance
number
duration
number
moving_time
number
elevation_gain
number
elevation_loss
number
first_lat
number
or null
first_lng
number
or null
last_lat
number
or null
last_lng
number
or null
sw_lat
number
or null
sw_lng
number
or null
ne_lat
number
or null
ne_lng
number
or null
track_type
string
or null
terrain
string
or null
difficulty
string
or null
avg_speed
number
or null
max_speed
number
or null
avg_cad
number
or null
min_cad
number
or null
max_cad
number
or null
avg_hr
number
or null
min_hr
number
or null
max_hr
number
or null
avg_watts
number
or null
min_watts
number
or null
max_watts
number
or null
calories
number
or null
device
string
or null
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/collections/123.json
{
"collection": {
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/collections/123.json",
"html_url": "https://ridewithgps.com/collections/123",
"visibility": "public",
"name": "Portland favorites",
"description": "Our best rides around Portland",
"cover": null,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z",
"routes": [
{
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/routes/123.json",
"html_url": "https://ridewithgps.com/routes/123",
"visibility": "public",
"name": "Forest Park loop",
"description": "Morning ride through Forest Park",
"locality": "Portland",
"administrative_area": "OR",
"country_code": "US",
"distance": 40237,
"elevation_gain": 457,
"elevation_loss": 461,
"first_lat": 45.521529,
"first_lng": -122.691804,
"last_lat": 45.521529,
"last_lng": -122.691804,
"sw_lat": 45.432536,
"sw_lng": -122.836749,
"ne_lat": 45.652881,
"ne_lng": -122.471777,
"track_type": "loop",
"terrain": "rolling",
"difficulty": "moderate",
"unpaved_pct": 12,
"surface": "mostly_paved",
"archived": false,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
],
"trips": [
{
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/trips/123.json",
"html_url": "https://ridewithgps.com/trips/123",
"visibility": "public",
"name": "Forest Park loop",
"description": "Morning ride through Forest Park",
"departed_at": "2000-01-01T08:00:00-08:00",
"time_zone": "America/Los_Angeles",
"locality": "Portland",
"administrative_area": "OR",
"country_code": "US",
"activity_type": "cycling:road",
"fit_sport": 2,
"fit_sub_sport": 7,
"stationary": false,
"distance": 40237,
"duration": 7856,
"moving_time": 7204,
"elevation_gain": 457,
"elevation_loss": 461,
"first_lat": 45.521529,
"first_lng": -122.691804,
"last_lat": 45.521529,
"last_lng": -122.691804,
"sw_lat": 45.432536,
"sw_lng": -122.836749,
"ne_lat": 45.652881,
"ne_lng": -122.471777,
"track_type": "loop",
"terrain": "rolling",
"difficulty": "moderate",
"avg_speed": 20.1,
"max_speed": 52.3,
"avg_cad": 87,
"min_cad": 0,
"max_cad": 119,
"avg_hr": 143,
"min_hr": 87,
"max_hr": 177,
"avg_watts": 183,
"min_watts": 0,
"max_watts": 627,
"calories": 1318,
"device": "Garmin Edge 840",
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
]
}
}
/api/v1/collections/pinned.json
Returns the authenticated user's pinned collection
x-rwgps-api-key
string
required
x-rwgps-auth-token
string
required
collection
object
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
or null
description
string
or null
cover
string
or null
created_at
date-time
updated_at
date-time
routes
array of objects
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
description
string
or null
locality
string
or null
administrative_area
string
or null
country_code
string
or null
distance
number
elevation_gain
number
elevation_loss
number
first_lat
number
first_lng
number
last_lat
number
last_lng
number
sw_lat
number
sw_lng
number
ne_lat
number
ne_lng
number
track_type
string
or null
terrain
string
or null
difficulty
string
or null
unpaved_pct
number
or null
surface
string
or null
archived
boolean
or null
created_at
date-time
updated_at
date-time
trips
array of objects
id
integer
user_id
integer
url
string
html_url
string
visibility
string
name
string
description
string
or null
departed_at
date-time
or null
time_zone
string
or null
locality
string
or null
administrative_area
string
or null
country_code
string
or null
activity_type
string
or null
fit_sport
integer
or null
fit_sub_sport
integer
or null
stationary
boolean
distance
number
duration
number
moving_time
number
elevation_gain
number
elevation_loss
number
first_lat
number
or null
first_lng
number
or null
last_lat
number
or null
last_lng
number
or null
sw_lat
number
or null
sw_lng
number
or null
ne_lat
number
or null
ne_lng
number
or null
track_type
string
or null
terrain
string
or null
difficulty
string
or null
avg_speed
number
or null
max_speed
number
or null
avg_cad
number
or null
min_cad
number
or null
max_cad
number
or null
avg_hr
number
or null
min_hr
number
or null
max_hr
number
or null
avg_watts
number
or null
min_watts
number
or null
max_watts
number
or null
calories
number
or null
device
string
or null
created_at
date-time
updated_at
date-time
curl \
-H "x-rwgps-api-key: $API_KEY" \
-H "x-rwgps-auth-token: $AUTH_TOKEN" \
https://ridewithgps.com/api/v1/collections/pinned.json
{
"collection": {
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/collections/123.json",
"html_url": "https://ridewithgps.com/collections/123",
"visibility": "public",
"name": "Portland favorites",
"description": "Our best rides around Portland",
"cover": null,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z",
"routes": [
{
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/routes/123.json",
"html_url": "https://ridewithgps.com/routes/123",
"visibility": "public",
"name": "Forest Park loop",
"description": "Morning ride through Forest Park",
"locality": "Portland",
"administrative_area": "OR",
"country_code": "US",
"distance": 40237,
"elevation_gain": 457,
"elevation_loss": 461,
"first_lat": 45.521529,
"first_lng": -122.691804,
"last_lat": 45.521529,
"last_lng": -122.691804,
"sw_lat": 45.432536,
"sw_lng": -122.836749,
"ne_lat": 45.652881,
"ne_lng": -122.471777,
"track_type": "loop",
"terrain": "rolling",
"difficulty": "moderate",
"unpaved_pct": 12,
"surface": "mostly_paved",
"archived": false,
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
],
"trips": [
{
"id": 123,
"user_id": 123,
"url": "https://ridewithgps.com/api/v1/trips/123.json",
"html_url": "https://ridewithgps.com/trips/123",
"visibility": "public",
"name": "Forest Park loop",
"description": "Morning ride through Forest Park",
"departed_at": "2000-01-01T08:00:00-08:00",
"time_zone": "America/Los_Angeles",
"locality": "Portland",
"administrative_area": "OR",
"country_code": "US",
"activity_type": "cycling:road",
"fit_sport": 2,
"fit_sub_sport": 7,
"stationary": false,
"distance": 40237,
"duration": 7856,
"moving_time": 7204,
"elevation_gain": 457,
"elevation_loss": 461,
"first_lat": 45.521529,
"first_lng": -122.691804,
"last_lat": 45.521529,
"last_lng": -122.691804,
"sw_lat": 45.432536,
"sw_lng": -122.836749,
"ne_lat": 45.652881,
"ne_lng": -122.471777,
"track_type": "loop",
"terrain": "rolling",
"difficulty": "moderate",
"avg_speed": 20.1,
"max_speed": 52.3,
"avg_cad": 87,
"min_cad": 0,
"max_cad": 119,
"avg_hr": 143,
"min_hr": 87,
"max_hr": 177,
"avg_watts": 183,
"min_watts": 0,
"max_watts": 627,
"calories": 1318,
"device": "Garmin Edge 840",
"created_at": "2000-01-01T12:00:00Z",
"updated_at": "2000-01-01T12:00:00Z"
}
]
}
}