TrailHUB API 

The TrailHUB API allows developers direct access to trail System and trails data. Note that { Trail System ID } refers to a trail system’s TrailHUB ID. This can be found in the URL of the trail system.

Access

Gaining access to our APIs currently requires an ‘API Unlimited’ subscription and some custom configuration. Please contact us to get setup.

GET Trail System Info

To get Trail System data from TrailHUB the following endpoint URL structure is used.

https://trailhub.org/api/ts/{Trail System ID}

Get Trails Info

To get Trails data from TrailHUB the following endpoint URL structure is used.

https://trailhub.org/api/trails/{Trail System ID}

Get Trails GIS Data

Trails GIS data is accessed via a precompiled GeoJSON file. The URL to this file is generated via the Trail System API endpoint response under ‘geoJsonUrl’.