Get started

Zyte Data API provides an interface to a Smart Browser, a browser rendering and anti-ban solution.

First steps

In this short tutorial you will set up the API and get HTML of a web page.

1. Sign up (or login)

To get started, you need to sign up for a Zyte Data API subscription. You can start your free 14-day trial here.

You will need a credit card to subscribe but you won’t be charged if you cancel in the first 14 days.

2. Get API Key

Once subscribed to the free trial, you can get your API key here: https://app.zyte.com/o/zyte-api/setup. Copy it.

3. Make a request

Zyte Data API is an HTTP API which speaks JSON. Send a JSON POST request to it, and get the result in the response.

In the examples below replace YOUR_API_KEY with your Zyte Data API key.

curl \
   --user YOUR_API_KEY: \
   --header 'Content-Type: application/json' \
   --data '{"url": "https://example.com/foo/bar", "browserHtml": true}' \
   https://api.zyte.com/v1/extract
# Python 3 example using requests library
import requests

API_URL = "https://api.zyte.com/v1/extract"
API_KEY = "YOUR_API_KEY"
response = requests.post(API_URL, auth=(API_KEY, ''), json={
    "url": "https://example.com/foo/bar",
    "browserHtml": True
})
data = response.json()
# data['browserHtml'] contains HTML of a web page

Reference documentation

See API Specification for the full API documentation.

Vision

Zyte Data API is a new API we’re building in Zyte. Our vision is to create a single API to solve all your web data extraction needs, such as

  • downloading

  • browser rendering

  • data extraction

  • crawling

  • screenshots

  • delivery to cloud storages

  • having an anti-ban solution

Stay tuned!