Python for Data · Lesson 5 of 6 · 14 min

Calling APIs safely

Real APIs fail, time out and limit you. Write code that retries politely instead of crashing.

Much of the data engineers load comes from APIs: a web address that returns data, usually as JSON. Real APIs are unreliable: they time out, return errors, or tell you to slow down. A good loader expects that.

JSON in Python

← Previous: Cleaning and joining