Skip to main content
Loading page…
Python Mastery
Chapter 27
Lesson 2 of 4
Consuming REST APIs & Auth
Contents
Notes
Tutor
Concept
REST API Basics
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
26 min
9 activities
0 of 9 done
In this lesson
1
REST API Basics
2
API Authentication: Keys and Bearer Tokens
3
Danger: Leaked API Keys
4
Calling the GitHub REST API
5
Pagination: Getting All Results
6
Pagination Check
7
Practice: Paginate Through Posts
8
Secret Management
9
Pro Tip: Use httpx for Async APIs
Objectives
Learner can read API documentation and translate it into working Python code
Learner can authenticate with API keys and Bearer tokens
Learner can page through paginated API results
Learner can avoid committing secrets by using environment variables
Chapter 27 · APIs, HTTP & Databases
HTTP & the requests Library
Consuming REST APIs & Auth
SQL & SQLite
ORMs (SQLAlchemy) & PostgreSQL
Previous: HTTP & the requests Library
Next: SQL & SQLite