Overview for exploring other REST APIs
In this resources section, I explore some other REST APIs and code for some specific scenarios. This experience will give you more exposure to different REST APIs, how they’re organized, the complexities and interdependency of endpoints, and more.
- Attack the challenge first, then read the answer
- Shortcuts for API keys
- Swap out APIKEY in code samples
Attack the challenge first, then read the answer
There are several examples with different APIs. A challenge is listed for each exercise. First, try to solve the challenge on your own. Then follow along in the sections below to see how I approached it.
In these examples, I usually printed the code to a web page to visualize the response. However, that part is not required in the challenge. (It mostly makes the exercise more fun to me.)
The following exercises are available:
- EventBrite example: Get event information
- Flickr example: Retrieve a Flickr gallery
- Klout example: Retrieve Klout influencers
- Aeris Weather Example: Get wind speed
Shortcuts for API keys
Each API requires you to use an API key, token, or some other form of authentication. You can register for your own API keys, or you can use my keys here.
Swap out APIKEY in code samples
I never insert API keys in code samples for a few reasons:
- API keys expire
- API keys posted online get abused
- Customizing the code sample is a good thing
When you see
APIKEY in a code sample, remember to swap in an API key there. For example, if the API key was
123, you would delete
APIKEY and use
91/96 pages complete. Only 5 more pages to go...
If you would like to contribute back to say thank you for the API documentation course, click the Donate button below. Alternatively, to contribute content, such as a tutorial or a new section, contact me with your ideas. You can also submit a pull request in the GitHub repo to make your contribution. Even if you want to just fix a typo or add a sentence here and there, it's always welcome.
I'd Rather Be Writing Newsletter
Get new posts delivered straight to your inbox.