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

Android

pdiaz
pdiaz
16,073 Points

how do I get the java api of a website for json processing

how do I get the java api of a website for json processing

Leonardo, are you looking for an api to experiment with? If so, you can find a list of websites with public api's at API Directory.

pdiaz
pdiaz
16,073 Points

No that isn't what I was looking for, though it was helpful. I am doing the blog reader app for android. In the lesson, you learn how to take json data from the treehouse blog. How do I extract data from any website?

Well every API works a bit differently and not all websites offer a public API.

Do you know what website you want to pull information from? If so, search for it at the link I previously posted and read the API's documentation.

If you have any questions about a specific website, let me know and I'll try to help as much as possible.

Hope this helps,

pdiaz
pdiaz
16,073 Points

I typed in the treehouse blog and it didn't show it.

Here's a link where you can see some of the Teamtreehouse blog JSON data: http://blog.teamtreehouse.com/api/get_recent_summary/?count=20

Once you get this data into a JSON object, you can read and manipulate it just as you would any other JSON object.

What specifically are you trying to do?

Consult this link for more information about working with the JSON API 1.1.1 https://wordpress.org/plugins/json-api/other_notes/

pdiaz
pdiaz
16,073 Points

Ok, so the data you see here http://blog.teamtreehouse.com/api/get_recent_summary/?count=20, is what I want from a website. How do I get it?