Zyte API usage documentation#
Initial setup#
How would you prefer to use Zyte API?
Scrapy
Use scrapy-zyte-api (tutorial).
Python
Use python-zyte-api.
HTTP clients
Use any HTTP client library or program.
POST
to https://api.zyte.com/v1/extract
with your API key and parameters:
curl \
--user YOUR_API_KEY: \
--header 'Content-Type: application/json' \
--data '{"url": "https://toscrape.com", "httpResponseBody": true}' \
--compressed \
https://api.zyte.com/v1/extract
Proxy mode
Use Zyte API as a proxy.
Use https://api.zyte.com:8011
as your proxy endpoint, with your API key and proxy headers:
curl \
--proxy api.zyte.com:8011 \
--proxy-user YOUR_API_KEY: \
--compressed \
https://toscrape.com
Warning
The proxy mode cannot make use of all Zyte API features. See Limitations.
Tip
Got an SSL error? Install our CA certificate.
Basic usage#
What do you want to do with Zyte API?
Additional features#
Customize your Zyte API requests further to get what you want: