Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,624 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: