Although possible, it is unlikely in today's web application environment that you will only provide data inside your own application. Chances are high that you will include data from other sources as well. This means you have to implement strategies so that your application will not suffer from downtime of other applications. Though you are dependent on other data, you should make sure your actual live system is not, or at least it has the capability to function without the data provided.
The first recipe will show a practical example of integrating an API into your application. It will use the nice Google Chart API. In order to draw such graphs, the templating system will be extended with several new tags.
Another quick example will show you how to include a Twitter search in your own page, where you have to deal with problems other than the one with the chart API example.
The last two examples provide some tips on what to do when you are being a data provider yourself, and how...