\chapter{\label{WAPI}Web Application Programming Interfaces}
See \url{https://en.wikipedia.org/wiki/Application_programming_interface#Web_APIs} for a detailed explanation of the term.

An extensive list of the quickly growing Web APIs can be found at \url{http://www.programmableweb.com/apis/directory}.

\section{CKEditor}
A fantastic and well documented web text editor can be found 
at \url{http://ckeditor.com}. The only drawback is that it does not yet work on Android.

A simple usage example:
\noindent\url{\ftcked CKEditor1.html} \\
{\scriptsize\inputminted[tabsize=2, linenos=true]{html}{API/CKEDITOR/CKEditor1.html}}

\section{Google Charts}
You can find detailed documentation and examples at \url{https://google-developers.appspot.com/chart}.

Here is a simple example:

\noindent\url{\ftgc chart1.html}
{\scriptsize\inputminted[tabsize=2, linenos=true]{html}{API/GoogleCharts/chart1.html}}

\section{Google Feed}
The main page is at \url{https://developers.google.com/feed} and the API developer's guide at \url{https://developers.google.com/feed/v1/devguide#load_the_javascript_api_and_ajax_search_module} makes it very easy to get up and running.

\noindent\url{\ftgf feed1.html}
{\scriptsize\inputminted[tabsize=2, linenos=true]{html}{API/GoogleFeed/feed1.html}}

Unfortunately, this API is now deprecated, meaning it is likely to disappear in the future.

\section{pdfmake}
Generate PDFs in pure JS: \url{http://pdfmake.org}


\section{Facebook}
Go to \url{https://developers.facebook.com} and register as a Facebook developer. Then create a FB app id for your application.

\section{Yahoo Query Language (YQL)}
This service allows us to access Internet data with SQL-like commands (cf. \url{https://developer.yahoo.com/yql}).

\section{Finance}
\subsection{Quandl}
Quandl (\url{https://www.quandl.com}) is a data platform covering over 10 million datasets from 500 sources accessible via a simple API (\url{https://www.quandl.com/help/api}).

Here is an example illustrating the retrieval of stock data from Quandl and candlestick charting with Google Charts:

\noindent\includegraphics[width=\linewidth]{quandl1}

\noindent\url{\ftapi Finance/Quandl/quandl1.html}
{\scriptsize\inputminted[tabsize=2, linenos=true]{html}{API/Finance/Quandl/quandl1.html}}

\subsection{Federal Reserve Bank of St. Louis}
FRED is the place for economic research on the US (\url{https://research.stlouisfed.org}). The FRED API (\url{https://api.stlouisfed.org/docs/fred}) allows us programmatic access to the whole DB.

\noindent\includegraphics[width=\linewidth]{FRED1}

\noindent\url{\ftapi Finance/FRED/FRED1.html}
{\scriptsize\inputminted[tabsize=2, linenos=true]{html}{API/Finance/FRED/FRED1.html}}

\noindent\url{\ftapi Finance/FRED/FRED_functions.php}
{\scriptsize\inputminted[tabsize=2, linenos=true]{html+php}{API/Finance/FRED/FRED_functions.php}}

\subsection{World Bank}

\subsection{Eurostat}

\subsection{Yahoo! Finance}
This API allows us to download current and historical price and other information, charts and RSS news feeds for financial instruments.

\section{Shodan}
\url{https://developer.shodan.io/api}