liveBook · Manning

Requests

Requests is a Python library that provides a high-level interface for sending HTTP requests and handling responses.

How 7 Manning books explain it

Build Python Web Apps with Streamlit

requests is a Python library that provides a user-friendly interface for sending HTTP requests and handling their responses.

How it is used
Connects Python apps to external HTTP services for features such as jokes and movie search.
How deep it goes
Demonstrates GET requests, headers, query parameters, and response handling, while deferring further library details to documentation.
Examples
Uses a missing-key error, an authenticated joke request, and a movie search to demonstrate API interaction.
What you can do after
Apply it via requests to send GET requests with headers or parameters and inspect response bodies.

Read how Build Python Web Apps with Streamlit explains requests →

Effective Data Analysis

Requests is a Python library for making HTTP requests to web services and retrieving their responses.

How it is used
Supports repeatable retrieval of current external data for analysis and stakeholder refreshes.
How deep it goes
Explains requests through response codes, JSON inspection, dataframe conversion, cleaning, aggregation, and operational guardrails.
Examples
Uses a New York City weather forecast and a Books to Scrape exercise involving HTML metadata and pandas.
What you can do after
Apply it via the requests library to retrieve API data, inspect JSON responses, and prepare records for pandas analysis.

Read how Effective Data Analysis explains requests →

Learn AI Data Engineering

Requests is a Python library for sending HTTP requests and handling their responses.

How it is used
Fetches API data and web pages as the retrieval step in Python data and scraping pipelines.
How deep it goes
Demonstrates status checks, JSON parsing, logging, timeouts, retries, sessions, headers, and HTTP error surfacing without covering library internals.
Examples
Uses NumbersAPI trivia records and a product-page scraping lab with CSV input, browser-like headers, and variant-price handling.
What you can do after
Apply it via requests and requests.Session to retrieve JSON or HTML with failure handling suitable for notebooks and pipelines.

Read how Learn AI Data Engineering explains requests →

The Quick Python Book, Fourth Edition

Requests is a Python library that provides a high-level interface for making HTTP requests.

How it is used
Fetches HTTP and HTTPS files and API data from Python for immediate or later processing.
How deep it goes
Demonstrates GET requests, response access and query quoting, then processes JSON into CSV; does not examine library internals.
Examples
Uses Heathrow temperature records, Chicago weather and crime APIs, and a historical weather-to-CSV exercise.
What you can do after
Apply it via requests to retrieve files and API responses, inspect their contents, and process JSON into CSV.

Read how The Quick Python Book, Fourth Edition explains requests →

Coding with AI

Requests is a Python library for sending HTTP requests and receiving responses from web services.

How it is used
Uses Python’s requests library to structure an API GET task and guide implementation through targeted prompts.
How deep it goes
Explains decomposition, prompt design, and iterative evaluation, without detailing the library’s internal implementation.
Examples
Demonstrates decomposition and focused prompts for initializing requests, displaying responses, and handling errors.
What you can do after
Apply it via Python’s requests library by decomposing an API task and refining prompts for implementation guidance.

Read how Coding with AI explains requests →

Python Concurrency with asyncio

Requests is a Python library for making HTTP requests synchronously.

How it is used
Handles synchronous HTTP requests and adapts existing blocking HTTP work for asyncio applications through threads.
How deep it goes
Explains installation, GET requests, status codes, sessions, event-loop blocking, and thread-based integration without detailing thread-pool implementation.
Examples
Demonstrates repeated example.com status-code requests and three asyncio tasks that execute blocking calls serially.
What you can do after
Apply it to make synchronous HTTP requests and run those calls concurrently through asyncio-managed threads.

Read how Python Concurrency with asyncio explains requests →

Snowflake Data Engineering

Requests is a Python library for sending HTTP requests and receiving HTTP responses.

How it is used
Calls an external API from a Python Snowpark UDF to retrieve customer reviews for pipeline enrichment.
How deep it goes
Defines package registration, imports, secret retrieval, URL construction, authentication, request execution, and JSON return, but defers response flattening.
Examples
Uses Yelp's reviews endpoint, business aliases, bearer-token authorization, and a GET_CUSTOMER_REVIEWS SQL call.
What you can do after
Apply it via requests by registering the package in a Python UDF and returning an authenticated API response as JSON.

Read how Snowflake Data Engineering explains requests →

Also covered in

What to know first

Related concepts

Questions about requests

What is requests?

Requests is a Python library that provides a high-level interface for sending HTTP requests and handling responses.

Which Manning books explain requests?

Build Python Web Apps with Streamlit, Effective Data Analysis, Learn AI Data Engineering, The Quick Python Book, Fourth Edition, Coding with AI, Python Concurrency with asyncio and Snowflake Data Engineering.

What should I know before learning requests?

Manning books that teach requests usually introduce Python, HTTP, JSON and CSV first.

What is the difference between requests and aiohttp?

Requests is a Python library that provides a high-level interface for sending HTTP requests and handling responses. aiohttp is a Python library for asynchronous HTTP client and server applications built on asyncio.

What is requests a kind of?

Requests is a kind of library. A software library is a reusable collection of code or components that provides functionality for other programs to incorporate or invoke.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.