skillfed

zyte-api

Python interface to Zyte API

zyte-api v0.11.0 200.3K downloads/30d#9,695 on PyPI30
Permissive 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) Active released

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-api

uv

uv add zyte-api

poetry

poetry add zyte-api

Installing 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

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

zyte api clientweb scraping apiasync http clientcommand line scraperpython zyte integrationdata extraction apihttp response body extraction
web-scrapingasync-httpcli-tool

More WWW/HTTP packages