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!
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
How can I query Treehouse's database to see a person's best answers count?
I would like to see the amount of best answers that a person has for a given topic. I know that this information, unlike badge data, is not stored in the user's
.json file as I've already looked and is therefore logically stored in a database.
- How does someone query a database?
- Would 'postman' help send a request?
- How does one find out which database a website is using?
- Is it legal/against policy? (This concern is the reason I'm asking instead of probing around)
Jason AndersTreehouse Moderator 145,855 Points
Here's how I see it... (my opinion only)
Unless a site's API allows access to the information, the database is basically off-limits to 'outsiders.' The API for Treehouse (The JSON file) is the only information that is available publicly... the rest is the sole property of Treehouse.
As for the legal part of your question... the short answer is no, it's not legal. If a site does not make the information readily available, then 'poking around' would be considered unauthorized access (hacking).