Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.65 KB

web-api-101.md

File metadata and controls

30 lines (22 loc) · 1.65 KB

Web API 101

In this lesson we will learn what an api is, the data formats that api's typically use, and how to consume a web api using Ruby.

What is an API?

A web api is a programmatic interface to request and deliver data using HTTP. Typically api data is JSON or XML. Most modern web API's use JSON, but plenty of XML api's are still in use. There isn't much difference between an api and the applications we've been making so far, except the responses aren't in HTML and usually the request is not coming from a browser. A few example api's are:

Weather API

http://openweathermap.org/API is used for current weather data, forecasting, searching, and weather maps.

Google Books API

The google books api is used to request and information about books.

Flickr API

Used to retrieve photos by album, collection, user, and search.