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

JavaScript

Erik McClintock
Erik McClintock
45,783 Points

Can I access forum statistics for a Treehouse member from the JSON for their profile?

Andrew Chalkley In the forum, when I've been asked specifically to help on a given question, I noticed that next to the other suggestions for people to help, they have a) the total number of answers that they've supplied, and b) the number of times their answers have been voted as "best".

I've just today begun your Node.js course, and was wondering if this "answers/best answers" data (along with other forum statistics, like the different categories that a user posts to/answers questions in, number of upvotes, etc) was stored somewhere in the JSON of my profile? In accessing the JSON and doing searches for terms that I would assume this information would be tracked under (like "best", "answer", "vote", "forum", etc.), I have been unsuccessful in finding anything. Is this information tracked/stored elsewhere, or is it inaccessible to students?

2 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Hi Erik McClintock,

Information about forum posts, votes, etc, are tracked and used by the Treehouse app, but aren't exposed in the public API. So, unfortunately, you won't be able to get at that information using Node, or any other programming language.

Erik McClintock
Erik McClintock
45,783 Points

Thank you for the response, Dave McFarland. Are there any plans to make this information accessible in the future, and if not, would you be able to share any insight as to the reasoning behind that decision? Just curious, as I am a glutton for statistics and recording/comparing my progress over time, and I spend quite a bit of my time here in the forums so that information is of particular interest (especially since it isn't tracked or visible elsewhere on my profile) :)

Dave McFarland
Dave McFarland
Treehouse Teacher

Hi Erik,

Basically it adds a lot of programming time for us to expose that information in the API. We're so busy working on getting great content out, making sure our site works for our students and improving the educational experience at Treehouse that we're probably not going to add that info to the API. Sorry.

Erik McClintock
Erik McClintock
45,783 Points

Understood. Thank you for the information!

Dave McFarland, that's interesting. I thought it was unique to not have that information — that maybe Treehouse decided it to help with privacy and the usual status quos you sometimes see on forums.

Erik McClintock
Erik McClintock
45,783 Points

If some of that information weren't already visible when you are able to ask specific people for help on a post (the number of answers and best answers for a given user), I wouldn't have thought twice about it being inaccessible and would've thought the same thing as you, Dustin; that perhaps it was hidden for privacy reasons. Since it is exposed in some fashion, though, that's were I had a spot of confusion and hope for more.

P.S. Dave McFarland, Ryan Carson, Alan Johnson, Johnny Thunder, if mods had a tool similar to Canopy, it would make our contributions here much easier. However, I do realize there's a lot of other things planned.

Canopy

Erik, one thing I use to reference helpful posts I've made, is a Google search of my full name in quotes. Works decent of you have a somewhat unique name. For instance: Erik McClintock.

Erik McClintock
Erik McClintock
45,783 Points

Thanks for the tip, Dustin!