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

General Discussion

Andrew Hawes
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Andrew Hawes
Python Web Development Techdegree Graduate 28,105 Points

Is there a way to get a list of public methods and parameters for an API?

I'm working with a couple of APIs right now that have somewhat poor documentation. Is there any way I can get a list of public methods and parameters with accepted values from the API? I'm fairly certain that the APIs really are just poorly documented (as opposed to data being deliberately hidden), as they return certain information I need when requesting JSON formatted data that isn't available in the XML version (and vice versa). I've already been able to retrieve some information by guessing and appending certain fields the url for the request, but I'm still missing a couple things I need, and the only other way to get the necessary data isn't really feasible (making thousands of queries for individual items).

(Solutions using PHP or Node.js would be preferred)