function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
punit tyagi 12punit tyagi 12 

how to get user trailhead details(Badges completed,inprogress,userpoints) through apex

how to get user trailhead details(Badges completed,inprogress,userpoints) through apex
SwethaSwetha (Salesforce Developers) 
HI Punit,
As per https://salesforce.stackexchange.com/questions/213736/api-access-to-trailhead-data there is no Public API that you can use to fetch the data. Not sure if the apex code scenario is feasible.

I wonder what is your use case to go with the apex approach. We have Trail Tracker managed package that can fetch these details. See https://help.salesforce.com/s/articleView?id=000313171&type=1

If this information helps, please mark the answer as best. Thank you