Skip to content
OSINTtools.io

Zenrows API

Fetch, extract, crawl and batch API: send URLs and get pages back as HTML, Markdown, text, PDF or structured JSON.

Base URL
https://api.zenrows.com/v1
Sign-in
API key
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from docs.zenrows.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Zenrows fetches web pages through a single HTTP endpoint, handling anti-bot protection and JavaScript rendering. It can return HTML, Markdown, plain text, PDF, a screenshot or structured JSON. Investigators can use it to retrieve a page that blocks ordinary requests.

Calls are GET requests to https://api.zenrows.com/v1/ with the target in url and the key in the apikey query parameter. Crawl (/v1/crawls) and Batch (https://async.api.zenrows.com/v1) services also exist and are not documented here; see the docs.

Zenrows fetches the target page itself, so the target is contacted.

Quick start

  1. Get a key

    Create an account with Zenrows and copy your api key. Where to get it

  2. Make your first request

    Fetch a page, optionally rendered, as HTML, Markdown, JSON, PDF or a screenshot.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.zenrows.com/v1/?url=https%3A%2F%2Fexample.com%2F&apikey=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    # Example Domain
    
    This domain is for use in illustrative examples.

Authentication

Send your API key in the apikey query parameter of every request.

Pass the key as the apikey query parameter

Get a key from Zenrows

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Concurrency-limited; responses carry Concurrency-Limit and Concurrency-Remaining headers. HTTP 429 means all concurrency slots are in use and no Retry-After is given.

Errors

StatusMeaning
400Malformed request or disallowed parameter combination
401API key missing or invalid
402Out of credits, or the plan lacks the capability
403Extract not prepared for the domain (not charged)
422Target could not be returned with this configuration, or extract found no data (not charged)
429All concurrency slots in use; back off exponentially

Fetch

  • Takes: URL
  • Active: contacts the target
  • Cost: Credits per request (see the X-Request-Cost header)

The body depends on the request: HTML by default; Markdown or plain text with response_type; JSON with extract, css_extractor or json_response; PDF or PNG for those options. The default mode is auto, which manages js_render and premium_proxy itself, so setting either alongside it returns 400.

Query parameters

urlstringrequiredtakes your url

Target page, http or https only

Example: https://example.com/
modestring

Adaptive Stealth Mode; manages js_render and premium_proxy

Example: autoDefault: auto
js_renderboolean

Render in a headless browser; not allowed with mode=auto

Example: trueDefault: false
premium_proxyboolean

Use residential IPs; not allowed with mode=auto

Example: trueDefault: false
proxy_countrystring

Two-letter exit country; needs premium_proxy=true or mode=auto

Example: us
wait_forstring

CSS selector to wait for; needs js_render

Example: #content
response_typestring

Output format

Example: markdownOne of: markdown, plaintext, pdf
extractstring

Structured JSON without writing selectors

Example: autoOne of: auto, native, standard
css_extractorstring

JSON object mapping output keys to CSS selectors

Example: {"title":"h1"}
outputsstring

Comma-separated data types to extract from the HTML; not allowed with response_type

Example: emails,phone_numbers
screenshotboolean

Above-the-fold screenshot; needs js_render or mode=auto

Example: trueDefault: false
original_statusboolean

Return the target's status code instead of Zenrows'

Example: trueDefault: false
Response fields · 1Show

(body)string

Page content in the requested format; with response_type=markdown, the page as Markdown

curl 'https://api.zenrows.com/v1/?url=https%3A%2F%2Fexample.com%2F&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
# Example Domain

This domain is for use in illustrative examples.