# Zenrows API reference

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

Source: https://osinttools.io/apis/zenrows/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/zenrows/

- Base URL: https://api.zenrows.com/v1
- Authentication: API key in the `apikey` query parameter. Get a key: https://www.zenrows.com/ Pass the key as the apikey query parameter
- Rate limits: 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.
- Vendor docs: https://docs.zenrows.com/first-steps/welcome
- OpenAPI spec: https://www.zenrows.com/openapi.json

## Overview

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.

## Errors

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

## Fetch

### Fetch a page, optionally rendered, as HTML, Markdown, JSON, PDF or a screenshot.

`GET /`

- Takes: URL
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | Target page, http or https only Example: https://example.com/ |
| `mode` | query | string | no | Adaptive Stealth Mode; manages js_render and premium_proxy Example: auto |
| `js_render` | query | boolean | no | Render in a headless browser; not allowed with mode=auto Example: true |
| `premium_proxy` | query | boolean | no | Use residential IPs; not allowed with mode=auto Example: true |
| `proxy_country` | query | string | no | Two-letter exit country; needs premium_proxy=true or mode=auto Example: us |
| `wait_for` | query | string | no | CSS selector to wait for; needs js_render Example: #content |
| `response_type` | query | string | no | Output format Example: markdown One of: markdown, plaintext, pdf |
| `extract` | query | string | no | Structured JSON without writing selectors Example: auto One of: auto, native, standard |
| `css_extractor` | query | string | no | JSON object mapping output keys to CSS selectors Example: {"title":"h1"} |
| `outputs` | query | string | no | Comma-separated data types to extract from the HTML; not allowed with response_type Example: emails,phone_numbers |
| `screenshot` | query | boolean | no | Above-the-fold screenshot; needs js_render or mode=auto Example: true |
| `original_status` | query | boolean | no | Return the target's status code instead of Zenrows' Example: true |

Response fields:

- `(body)` (string): Page content in the requested format; with response_type=markdown, the page as Markdown

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

Example response (200):

```
# Example Domain

This domain is for use in illustrative examples.
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
