Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Jonathan Schneider](https://uploads.teamtreehouse.com/production/profile-photos/120656/micro__jonathan.jpg)
Jonathan Schneider
2,686 PointsTreehouse badge API
Hey guys, it is possible to get all badges with a api call? I would like to have my badge show on my website. Thanks!
4 Answers
![David Kaneshiro Jr.](https://uploads.teamtreehouse.com/production/profile-photos/108770/micro_my_pic.png)
David Kaneshiro Jr.
29,247 PointsYes, you can use
http://teamtreehouse.com/jonathanschneider.json
to get JSON output of your badges and points.
![Jonathan Schneider](https://uploads.teamtreehouse.com/production/profile-photos/120656/micro__jonathan.jpg)
Jonathan Schneider
2,686 PointsPerfect! Thanks!
![David Kaneshiro Jr.](https://uploads.teamtreehouse.com/production/profile-photos/108770/micro_my_pic.png)
David Kaneshiro Jr.
29,247 PointsAnother student created a widget to as well you might want to check it out.
https://teamtreehouse.com/forum/treehouse-badges-website-widget
![James Barnett](https://secure.gravatar.com/avatar/43ea08b4fc547e8a5da87c207bea2123?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
James Barnett
39,199 PointsJonathan Schneider - Another Treehouse student Riley Hilliard made a Treehouse Report Card Widget that's very slick.
![Jonathan Schneider](https://uploads.teamtreehouse.com/production/profile-photos/120656/micro__jonathan.jpg)
Jonathan Schneider
2,686 PointsHere is my integration: http://wmschneider.de/about/ thanks!
![Brett Connolly](https://uploads.teamtreehouse.com/production/profile-photos/534432/micro_brett.jpg)
Brett Connolly
12,874 PointsI made a pen that uses the shadow DOM and a Javascript closure to build a Treehouse activity widget/component from the Treehouse API without JQuery or external libraries (only external stylesheets). Been wanting to learn more about the shadow DOM and how it works so this was a fun chance to give it a shot. Not sure if this will work in most browsers outside Chrome, though.
Gonna keep playing with it to get it responsive and maybe add some animations. Only requires you to add my code inline wherever you want it to appear in your HTML. Javascript needs to be placed after the template HTML in order for it to work. Added in the 'Varela Round' font from Google Fonts in the Javascript since it looked most similar to Treehouse's font. Also added the 'devIcon' CSS as an import in the template stylesheets to get the language icons (yes, I know the business icon is for Bootstrap, had to improvise from the icons I had). There are a few modifiable variables at the top of the Javascript. Obviously, you'll want to change the username to your own.
![Christopher Parke](https://uploads.teamtreehouse.com/production/profile-photos/5424402/micro_profile2.jpg)
Christopher Parke
21,978 PointsIs there any way to display the leaderboard?