You might find my API tutorial helpful:
I’m just going to put it out there that it took me about ten hours of work to even start feeling comfortable with APIs and JSON. I think having a tutorial is a good head start but it can be pretty difficult stuff to get right.