Fork me on GitHub

API Integration

The majority of production Python web applications rely on several externally hosted application programming interfaces (APIs). APIs are also commonly referred to as third party services or external platforms. Examples include Twilio for messaging and voice services, Stripe for payment processing, and Disqus for embedded webpage comments.

There are many articles about proper API design but best practices for integrating APIs is less commonly written about. However, this subject continuously grows in importance because APIs provide critical functionality across many implementation areas.

Hosted API services

  • Runscope is a service specifically designed for APIs that assists developers with automated testing and traffic inspection.

  • Apiary provides a blueprint for creating APIs so they are easier to test and generate clean documentation.

API Integration Resources

What's next after integrating APIs into your app?

How can I invoke APIs outside the HTTP request-response cycle?

How do I use logging with my app?

Where can I learn about web application security?


Interested in a complete Full Stack Python book with detailed tutorials and example code? Sign up here and you'll get an alert email if a book is created. No other emails will be sent other than sign up confirmation.