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

Databases

jsdevtom
jsdevtom
16,963 Points

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)

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 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).

:dizzy: