Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
105
rated 0 times [  108] [ 3]  / answers: 1 / hits: 159123  / 13 Years ago, mon, november 28, 2011, 12:00:00

I'm working on a JavaScript dynamically loaded tree view user control. I'd like to test it with real world data.



Does anybody know any public service with an API that provides access to hierarchical data in JSON format?


More From » json

 Answers
121

Twitter has a public API which returns JSON, for example -



A GET request to:



https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=mralexgray&count=1,



EDIT: Removed due to twitter restricting their API with OAUTH requirements...



{errors: [{message: The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview., code: 68}]}


Replacing it with a simple example of the Github API - that returns a tree, of in this case, my repositories...




https://api.github.com/users/mralexgray/repos




I won't include the output, as it's long.. (returns 30 repos at a time) ... But here is proof of it's tree-ed-ness.



enter


[#88878] Friday, November 25, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
micayla

Total Points: 148
Total Questions: 92
Total Answers: 109

Location: Aruba
Member since Sat, Oct 2, 2021
3 Years ago
micayla questions
Fri, Dec 24, 21, 00:00, 2 Years ago
Thu, Apr 16, 20, 00:00, 4 Years ago
Thu, Nov 14, 19, 00:00, 5 Years ago
;