[SalesForce] API Access to Trailhead Data

Trailhead seems to have an API to access trailhead data about badges, project, modules, roles, users etc. but it requires an API key to use. Does anybody know how to get any API key to use this API?

https://api.trailhead.salesforce.com/

Best Answer

You will need to contact Trailhead to get an official X-API-Key key to use in the header. Try Trailhead@salesforce.com 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.

Related Topic