NativePort Browserless API
The browserless API from NativePort — 4 operation(s) for browserless.
The browserless API from NativePort — 4 operation(s) for browserless.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nativeport-ai:nativeport-ai-browserless-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference Browserless 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: browserless
paths:
/browserless/screenshot:
post:
operationId: browserless_screenshot
summary: Capture a screenshot with Browserless
description: 'Relays to `https://production-sfo.browserless.io/screenshot`, injecting the `token` query
parameter and forcing `timeout=30000`. Send `url` or `html` (not both); `options` carries
Puppeteer-style screenshot settings (`type`: `png`/`jpeg`/`webp`, `fullPage`, `quality`,
`clip`, and so on). See the Browserless tag description above for the full field policy.'
tags:
- browserless
responses:
'200':
description: 'The captured image — `image/png` by default, or `image/jpeg`/`image/webp` when
`options.type` requests it — relayed byte-for-byte.
'
content:
application/octet-stream:
schema:
type: string
format: binary
'400':
description: 'The gateway''s own closed field policy rejected the call before it reached Browserless — an
unrecognized query parameter, a disallowed body field (a cost-expanding, launch,
proxy/CAPTCHA, or cross-tenant `profile` control, or anything else outside the allow-set), or
a body that isn''t a valid JSON object. Plain gateway-shaped error, not Browserless''s own
envelope, since Browserless was never reached.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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: []
/browserless/pdf:
post:
operationId: browserless_pdf
summary: Render a PDF with Browserless
description: 'Relays to `https://production-sfo.browserless.io/pdf`, injecting the `token` query parameter
and forcing `timeout=30000`. Send `url` or `html` (not both); `options` mirrors Puppeteer''s
PDF settings (`format`, `printBackground`, `displayHeaderFooter`, `pageRanges`, and so on).'
tags:
- browserless
responses:
'200':
description: The rendered document as `application/pdf`, relayed byte-for-byte.
content:
application/octet-stream:
schema:
type: string
format: binary
'400':
description: 'The gateway''s own closed field policy rejected the call before it reached Browserless — an
unrecognized query parameter, a disallowed body field (a cost-expanding, launch,
proxy/CAPTCHA, or cross-tenant `profile` control, or anything else outside the allow-set), or
a body that isn''t a valid JSON object. Plain gateway-shaped error, not Browserless''s own
envelope, since Browserless was never reached.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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: []
/browserless/content:
post:
operationId: browserless_content
summary: Fetch fully rendered HTML
description: 'Relays to `https://production-sfo.browserless.io/content`, injecting the `token` query
parameter and forcing `timeout=30000`. Send `url` or `html` (not both); admits only the
common field set — no `options` or `elements` (see the Browserless tag description above).'
tags:
- browserless
responses:
'200':
description: The fully rendered page, JavaScript included, as `text/html`.
content:
application/json:
schema:
type: object
properties: {}
'400':
description: 'The gateway''s own closed field policy rejected the call before it reached Browserless — an
unrecognized query parameter, a disallowed body field (a cost-expanding, launch,
proxy/CAPTCHA, or cross-tenant `profile` control, or anything else outside the allow-set), or
a body that isn''t a valid JSON object. Plain gateway-shaped error, not Browserless''s own
envelope, since Browserless was never reached.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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: []
/browserless/scrape:
post:
operationId: browserless_scrape
summary: Extract structured data with CSS selectors
description: 'Relays to `https://production-sfo.browserless.io/scrape`, injecting the `token` query
parameter and forcing `timeout=30000`. `elements` — required, alongside `url` or `html` —
lists the CSS selectors to capture.'
tags:
- browserless
responses:
'200':
description: 'One result set per selector — `text`, `html`, `attributes`, and layout box — as
`application/json`.
'
content:
application/json:
schema:
type: object
additionalProperties:
description: Any type
'400':
description: 'The gateway''s own closed field policy rejected the call before it reached Browserless — an
unrecognized query parameter, a disallowed body field (a cost-expanding, launch,
proxy/CAPTCHA, or cross-tenant `profile` control, or anything else outside the allow-set), or
a body that isn''t a valid JSON object. Plain gateway-shaped error, not Browserless''s own
envelope, since Browserless was never reached.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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.
'