> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zenrows.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The Zenrows HTTP API serves Fetch and Extract (extract=auto) at https://api.zenrows.com/v1/, Crawl at https://api.zenrows.com/v1/crawls, and Batch at https://async.api.zenrows.com/v1. Fetch, Extract, Crawl and Batch are described in OpenAPI 3.1 at https://www.zenrows.com/openapi.json and listed in the RFC 9727 API catalog at https://www.zenrows.com/.well-known/api-catalog. Every endpoint also has its own page under /api-reference with its schema. Use the spec for exact parameter names and types. Crawl's endpoints, parameters and errors are also at https://docs.zenrows.com/crawl/endpoints.md. To call Zenrows from an agent, connect the MCP server at https://mcp.zenrows.com/mcp. To search these docs from an agent, connect the docs MCP server at https://docs.zenrows.com/mcp. Agent skills for Zenrows are published at https://github.com/ZenRows/cli and install with `npx skills add ZenRows/cli`.

# Introduction to the Python SDK

> Official Zenrows Python SDK for Fetch. Handles authentication, retries, and concurrency so you can scrape with less boilerplate.

The [Zenrows Python SDK](https://pypi.org/project/zenrows/) is a lightweight client for [Fetch](https://docs.zenrows.com/fetch/setup.md). It wraps the same HTTP endpoint you'd call directly with `requests`, but adds a few conveniences developers ask for on every scraping project: automatic retries, built-in concurrency control, and `async`/`await` support.

> [!NOTE]
>
> If you're already comfortable making requests with Python's `requests` library, the SDK will feel familiar. Every call still returns a standard `requests.Response` object, so nothing about how you read the response changes.

## What the SDK handles for you

* **Authentication** – your API key is set once in the client constructor, not repeated on every call.
* **Retries** – optionally retry failed requests (`429`, `500`, `502`, `503`, `504`, `422`, and connections that failed before the request was sent) with randomized backoff, without writing retry logic yourself. Off by default; turn them on with the `retries` option.
* **Concurrency** – cap how many requests run in parallel to match your Zenrows plan's concurrency limit.
* **Async support** – `get_async`, `post_async`, and `put_async` methods for running many requests concurrently with `asyncio`.

## What you'll need

> [card] Python 3.6+
>
> Any Python version from 3.6 onward works.

> [card] [API key](https://app.zenrows.com/register?p=free)
>
> Create a free account to get yours, no credit card required.

> [!NOTE]
>
> The SDK only covers Fetch's GET, POST, and PUT modes. For the full list of request parameters (`js_render`, `premium_proxy`, `css_extractor`, and so on), see the [Fetch setup guide](https://docs.zenrows.com/fetch/setup.md). Every parameter documented there works the same way through the SDK's `params` argument.

> [!TIP]
>
> Looking for a different language? Zenrows also maintains a [Node.js SDK](https://www.npmjs.com/package/zenrows).

## Explore the Python SDK

> [card] [Installation](https://docs.zenrows.com/fetch/sdk/python/installation.md)
>
> Install the package and get your API key.

> [card] [Quickstart](https://docs.zenrows.com/fetch/sdk/python/quickstart.md)
>
> Make your first request in a few lines of code.

> [card] [POST and PUT Requests](https://docs.zenrows.com/fetch/sdk/python/post-put-requests.md)
>
> Submit forms or data payloads.

> [card] [Async Requests and Concurrency](https://docs.zenrows.com/fetch/sdk/python/async-concurrency.md)
>
> Scrape many URLs in parallel with `asyncio`.

> [card] [Error Handling and Retries](https://docs.zenrows.com/fetch/sdk/python/error-handling-and-retries.md)
>
> Configure automatic retries and handle failures.

> [card] [The Response Object](https://docs.zenrows.com/fetch/sdk/python/response-object.md)
>
> What you get back from every request.

> [card] [Custom Headers](https://docs.zenrows.com/fetch/sdk/python/custom-headers.md)
>
> Forward specific headers to the target site.

> [card] [FAQ](https://docs.zenrows.com/fetch/sdk/python/faq.md)
>
> Answers to common questions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.