API Access to Trailhead Data

You will need to contact Trailhead to get an official X-API-Key key to use in the header. Try [email protected] initially.

I believe you also need to have your IP address whitelisted against the key. E.g. If you call the API with a random key you get a response along the line of:

{ "message": "Client not allowed : REMOTE_IP -> [104.156.92.21] IP -> [104.156.92.21] X- 71.241.141.120, 104.156.92.21" }

Via details that have leaked out via forums, there appears to be a "Trailhead API" module with a "Search Using the Trailhead API" challenge, but it isn't available to the public via Trailhead.


I have searched a lot for the API to get the trailblazer user data, but didn't get any single API working. Finally, I have created the API. Use this,

https://trailheadtrackerapi.herokuapp.com/?id=Username

you will get this response

{"EarnedBadgeTotal":"value","EarnedPointTotal":"value","CompletedTrailTotal":"value"}