Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Reference Zen Rows API
version: 1.0.0
servers:
- url: https://api.nativeport.ai
description: NativePort production
- url: http://localhost:8787
description: Local development (wrangler dev)
tags:
- name: zenRows
paths:
/zenrows:
get:
operationId: zenRows_scrape
summary: Scrape a page with ZenRows
description: 'Relays to `https://api.zenrows.com/v1/`, placing the secret `apikey` at the front of the
query string and dropping `Authorization`. Controls belong in the query string.'
tags:
- zenRows
parameters:
- name: url
in: query
description: URL of the page to scrape.
required: true
schema:
type: string
format: uri
- name: js_render
in: query
description: Have JavaScript rendered before the page comes back (ZenRows control).
required: false
schema:
type: boolean
responses:
'200':
description: 'The upstream''s answer, relayed as-is. Typically the scraped page as HTML, raw bytes, or
JSON under a structured/parsed mode. The upstream defines the exact shape.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- bearerAuth: []
post:
operationId: zenRows_post
summary: Scrape a POST target with ZenRows
description: 'The `GET` scrape''s behavior, with a `POST` delivered to the target instead. Controls go in
the query string.'
tags:
- zenRows
parameters:
- name: url
in: query
description: The URL being targeted.
required: true
schema:
type: string
format: uri
responses:
'200':
description: 'The upstream''s answer, relayed as-is. Typically the scraped page as HTML, raw bytes, or
JSON under a structured/parsed mode. The upstream defines the exact shape.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'401':
description: 'The bearer token was missing, unknown, or revoked. The reply body is the JSON `{ "error": "Unauthorized." }`.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: 'No route matched the path, or the matched route disallows that method (an unlisted
`/serper/<endpoint>`, for instance). The body lists every mounted route, verbatim as the
gateway sends it. A path on one of the four model-inference routes also `404`s this way when
the specific endpoint or model isn''t on that provider''s allowlist; an unsupported model
addressed through `/inference` gets that endpoint''s own `400` instead (see the Inference tag).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
security:
- bearerAuth: []
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: Explanatory message meant for humans.
required:
- error
title: Error
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Your per-client bearer token — the API key the gateway issued to you. Present it in
`Authorization: Bearer <token>` form. A token that is missing, unknown, or revoked draws a
`401`. Before the call is sent upstream the token is removed (stripped, or swapped for the
upstream''s own credential); it never makes it past the gateway.
'