zyte-api
Python interface to Zyte API
What it is and what it does
zyte-api is a Python wrapper around Zyte's web scraping and data extraction API. It provides both synchronous and asynchronous client interfaces, plus a command-line tool, to send requests to Zyte's infrastructure for tasks like fetching HTTP response bodies, extracting structured data, and handling JavaScript-heavy pages. The library wraps eight runtime dependencies including aiohttp for async HTTP, tenacity for retry logic, and tqdm for progress reporting.
The package is in Alpha status but actively maintained. It targets modern Python versions (3.10–3.13) and is permissively licensed under BSD 3-Clause. Installation is straightforward with no compiled dependencies. You supply your API key via environment variable or constructor argument, then call either the sync `.get()` method or the async `.get()` coroutine to execute scraping jobs.
Use it for:
- Batch scrape a list of URLs from the command line, saving results to JSONL format.
- Build a Python script that fetches and parses HTTP response bodies from JavaScript-heavy websites.
- Integrate Zyte API into an asyncio-based web crawler or data pipeline.
- Extract structured data from web pages using Zyte's server-side rendering and parsing.
- Monitor and retry failed scraping requests with built-in retry logic via tenacity.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library and command-line tool for Zyte API, providing both synchronous and asynchronous interfaces to send web scraping and data extraction requests.
Yes, if you have a Zyte API account and need a Python client. Low install friction, active maintenance, no security vulnerabilities, and permissive licensing make it a straightforward choice. The async API is well-suited for concurrent scraping workloads. The Alpha status and small community (30 stars) mean you should verify it handles your specific use case before committing to production.
Install
zyte-api on PyPI
pip
pip install zyte-apiuv
uv add zyte-apipoetry
poetry add zyte-apiInstalling zyte-api
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a release 22 days ago; last commit on 2026-08-11. Requires Python 3.10+, which is enforced at install time.
License in practice
BSD 3-Clause license (permissive). You may use, modify, and distribute this code freely in commercial and private projects, provided you retain the copyright notice and disclaimer.
Quickstart
pip install zyte-api
from zyte_api import ZyteAPI
client = ZyteAPI(api_key="YOUR_API_KEY")
response = client.get({"url": "https://toscrape.com", "httpResponseBody": True})
Python 3.10+ is required. You must have a valid Zyte API account and API key.
Verify before relying
- Whether the async API handles connection pooling or rate-limiting automatically.
- Whether the command-line tool supports batch processing beyond reading from a text file.
- Performance characteristics and typical latency for API requests.
Package facts
| License | Copyright (c) Zyte Group Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1.… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — aiohttp, attrs, brotli, python-dotenv, runstats, tenacity, tqdm, w3lib |
| Maintenance | actively maintained — 22 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 200,289/month — #9,695 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zyte_api-0.11.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
scrapy-zyte-apiScrapy plugin that integrates Zyte API for web…
permissive · top 15,000 on PyPI
scrapinghubA Python client library for communicating with…
permissive · top 15,000 on PyPI
simple-rest-clientA lightweight HTTP client library for building…
unclear · top 15,000 on PyPI
linkup-sdkA Python client library for the Linkup API that…
permissive · top 15,000 on PyPI
pytest-httpxpytest-httpx provides a pytest fixture that…
permissive · top 1,000 on PyPI
ScrapyScrapy is a web scraping framework that…
permissive · top 5,000 on PyPI
oxylabsOfficial Python client for Oxylabs web scraping…
permissive · top 15,000 on PyPI
brightdata-sdkOfficial Python SDK for Bright Data APIs,…
permissive · top 15,000 on PyPI
simileA Python client library for interacting with…
permissive · top 15,000 on PyPI
Crawl4AICrawl4AI is an async web crawler and scraper…
permissive · top 5,000 on PyPI