UnifAPI Browser API
Headless browser rendering. Render any URL with JavaScript executed and get it back as Markdown, fully rendered HTML, a screenshot, or the page's link graph.
Headless browser rendering. Render any URL with JavaScript executed and get it back as Markdown, fully rendered HTML, a screenshot, or the page's link graph.
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/unifapi-com:unifapi-com-browser-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: Unifapi Com Browser API
version: 0.0.1
contact:
name: UnifAPI
url: https://unifapi.com
email: support@unifapi.com
license:
name: Proprietary
url: https://unifapi.com/legal/terms-of-service
x-api-version: '2026-07-01'
x-versioning-policy: https://unifapi.com/versioning.md
description: 'Operations tagged browser across 3 of this provider''s published API definitions: api-unifapi-com-openapi.yml, mcp-unifapi-com-openapi.yml, unifapi-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.unifapi.com
description: Production
security:
- bearerAuth: []
tags:
- name: browser
description: Headless browser rendering. Render any URL with JavaScript executed and get it back as Markdown, fully rendered HTML, a screenshot, or the page's link graph.
paths:
/browser/html:
post:
operationId: postBrowserHtml
summary: Render a page to HTML
description: Render a URL in a headless browser and return the fully rendered HTML after JavaScript execution — use it to read meta tags, structured data, and content that only appears after client-side rendering.
tags:
- browser
x-unifapi-billing:
mode: record_metered
credits_per_record: 1
minimum_credits: 10
security:
- bearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BrowserHtmlRequest'
responses:
'200':
description: OK
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
description: UnifAPI request id for support and ledger correlation.
data:
$ref: '#/components/schemas/BrowserHtmlResult'
billing:
$ref: '#/components/schemas/Billing'
required:
- request_id
- data
- billing
'400':
description: Validation or invalid-id error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Insufficient workspace credits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
Retry-After:
description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Source error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Source unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- $ref: '#/components/parameters/UnifapiVersion'
- $ref: '#/components/parameters/IdempotencyKey'
servers:
- url: https://api.unifapi.com
description: Production
/browser/links:
post:
operationId: postBrowserLinks
summary: Extract links from a page
description: Render a URL in a headless browser and return every link on the page as absolute URLs, including links injected by JavaScript. Optionally restrict to visible links or same-domain links for internal-link and broken-link audits.
tags:
- browser
x-unifapi-billing:
mode: record_metered
credits_per_record: 1
minimum_credits: 10
security:
- bearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BrowserLinksRequest'
responses:
'200':
description: OK
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
description: UnifAPI request id for support and ledger correlation.
data:
$ref: '#/components/schemas/BrowserLinksResult'
billing:
$ref: '#/components/schemas/Billing'
required:
- request_id
- data
- billing
'400':
description: Validation or invalid-id error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Insufficient workspace credits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
Retry-After:
description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Source error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Source unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- $ref: '#/components/parameters/UnifapiVersion'
- $ref: '#/components/parameters/IdempotencyKey'
servers:
- url: https://api.unifapi.com
description: Production
/browser/markdown:
post:
operationId: postBrowserMarkdown
summary: Render a page to Markdown
description: Render a URL in a headless browser (running JavaScript) and return the page as clean Markdown — ideal for content analysis, summarization, and feeding pages to language models.
tags:
- browser
x-unifapi-billing:
mode: record_metered
credits_per_record: 1
minimum_credits: 10
security:
- bearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BrowserMarkdownRequest'
responses:
'200':
description: OK
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
description: UnifAPI request id for support and ledger correlation.
data:
$ref: '#/components/schemas/BrowserMarkdownResult'
billing:
$ref: '#/components/schemas/Billing'
required:
- request_id
- data
- billing
'400':
description: Validation or invalid-id error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Insufficient workspace credits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
Retry-After:
description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Source error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Source unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- $ref: '#/components/parameters/UnifapiVersion'
- $ref: '#/components/parameters/IdempotencyKey'
servers:
- url: https://api.unifapi.com
description: Production
/browser/screenshot:
post:
operationId: postBrowserScreenshot
summary: Capture a page screenshot
description: Render a URL in a headless browser and capture a screenshot, returned as a base64-encoded image. Control the viewport, capture the full scrollable page, target a CSS selector, and choose png, jpeg, or webp output.
tags:
- browser
x-unifapi-billing:
mode: record_metered
credits_per_record: 1
minimum_credits: 10
security:
- bearerAuth: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BrowserScreenshotRequest'
responses:
'200':
description: OK
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
request_id:
type: string
description: UnifAPI request id for support and ledger correlation.
data:
$ref: '#/components/schemas/BrowserScreenshotResult'
billing:
$ref: '#/components/schemas/Billing'
required:
- request_id
- data
- billing
'400':
description: Validation or invalid-id error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'402':
description: Insufficient workspace credits
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited
headers:
RateLimit-Policy:
description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
schema:
type: string
RateLimit:
description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
schema:
type: string
RateLimit-Limit:
description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
schema:
type: integer
RateLimit-Remaining:
description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
schema:
type: integer
RateLimit-Reset:
description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
schema:
type: integer
Retry-After:
description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'502':
description: Source error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Source unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
- $ref: '#/components/parameters/UnifapiVersion'
- $ref: '#/components/parameters/IdempotencyKey'
servers:
- url: https://api.unifapi.com
description: Production
components:
schemas:
ErrorBilling:
type: object
properties:
credits_required:
type: integer
credits_charged:
type: integer
minimum: 0
records_charged:
type: integer
minimum: 0
balance_remaining:
type: integer
truncated_due_to_balance:
type: boolean
required:
- balance_remaining
description: Present when the error either exposes recovery metadata or charged usage.
BrowserMarkdownResult:
type: object
properties:
url:
type: string
description: The rendered URL.
markdown:
type: string
description: The page content rendered to Markdown.
required:
- url
- markdown
BrowserHtmlRequest:
type: object
properties:
url:
type: string
minLength: 1
description: Absolute http(s) URL of the page to render.
wait_until:
type: string
enum:
- load
- domcontentloaded
- networkidle0
- networkidle2
description: When navigation is considered complete. `networkidle0` waits for the network to go idle (best for JavaScript-heavy pages); `load` is fastest.
timeout_ms:
type: integer
minimum: 1000
maximum: 60000
description: Navigation timeout in milliseconds (1000–60000).
required:
- url
Billing:
type: object
properties:
credits_charged:
type: integer
minimum: 0
records_charged:
type: integer
minimum: 0
balance_remaining:
type: integer
minimum: 0
truncated_due_to_balance:
type: boolean
required:
- credits_charged
- records_charged
- balance_remaining
- truncated_due_to_balance
BrowserScreenshotRequest:
type: object
properties:
url:
type: string
minLength: 1
description: Absolute http(s) URL of the page to render.
wait_until:
type: string
enum:
- load
- domcontentloaded
- networkidle0
- networkidle2
description: When navigation is considered complete. `networkidle0` waits for the network to go idle (best for JavaScript-heavy pages); `load` is fastest.
timeout_ms:
type: integer
minimum: 1000
maximum: 60000
description: Navigation timeout in milliseconds (1000–60000).
viewport:
type: object
properties:
width:
type: integer
minimum: 1
maximum: 3840
description: Viewport width in CSS pixels.
height:
type: integer
minimum: 1
maximum: 3840
description: Viewport height in CSS pixels.
required:
- width
- height
description: Browser viewport. Defaults to a standard desktop size.
full_page:
type: boolean
description: Capture the full scrollable page instead of just the viewport.
format:
type: string
enum:
- png
- jpeg
- webp
default: png
description: Output image format.
quality:
type: integer
minimum: 0
maximum: 100
description: Compression quality (0–100). Only valid for `jpeg` and `webp`.
selector:
type: string
description: Capture only the first element matching this CSS selector.
omit_background:
type: boolean
description: Render a transparent background (ignored for `jpeg`).
required:
- url
BrowserLinksResult:
type: object
properties:
url:
type: string
description: The rendered URL.
links:
type: array
items:
type: string
description: Absolute URLs discovered on the page.
required:
- url
- links
BrowserHtmlResult:
type: object
properties:
url:
type: string
description: The rendered URL.
html:
type: string
description: The fully rendered HTML after JavaScript execution.
required:
- url
- html
Error:
type: object
properties:
type:
type: string
enum:
- validation_error
- invalid_id
- insufficient_credits
- unauthorized
- not_found
- rate_limited
- internal_error
- response_shape_error
- upstream_error
- upstream_unavailable
description: Closed vocabulary - see docs/adr/0003-error-model.md.
message:
type: string
request_id:
type: string
description: UnifAPI request id, e.g. `unif_<id>`. Source ids are not exposed.
issues:
type: array
items: {}
description: Present only when type=validation_error.
billing:
$ref: '#/components/schemas/ErrorBilling'
required:
- type
- message
BrowserMarkdownRequest:
type: object
properties:
url:
type: string
minLength: 1
description: Absolute http(s) URL of the page to render.
wait_until:
type: string
enum:
- load
- domcontentloaded
- networkidle0
- networkidle2
description: When navigation is considered complete. `networkidle0` waits for the network to go idle (best for JavaScript-heavy pages); `load` is fastest.
timeout_ms:
type: integer
minimum: 1000
maximum: 60000
description: Navigation timeout in milliseconds (1000–60000).
required:
- url
ErrorResponse:
type: object
properties:
error:
$ref: '#/components/schemas/Error'
required:
- error
description: Standard gateway error envelope (ADR 0003 and ADR 0008).
BrowserScreenshotResult:
type: object
properties:
url:
type: string
description: The rendered URL.
format:
type: string
enum:
- png
- jpeg
- webp
description: Output image format.
image_base64:
type: string
description: Base64-encoded image bytes.
size_bytes:
type: integer
description: Decoded image size in bytes.
required:
- url
- format
- image_base64
- size_bytes
BrowserLinksRequest:
type: object
properties:
url:
type: string
minLength: 1
description: Absolute http(s) URL of the page to render.
wait_until:
type: string
enum:
- load
- domcontentloaded
- networkidle0
- networkidle2
description: When navigation is considered complete. `networkidle0` waits for the network to go idle (best for JavaScript-heavy pages); `load` is fastest.
timeout_ms:
type: integer
minimum: 1000
maximum: 60000
description: Navigation timeout in milliseconds (1000–60000).
visible_links_only:
type: boolean
description: Only return links visible in the rendered viewport.
exclude_external_links:
type: boolean
description: Drop links that point to a different domain than the page.
required:
- url
parameters:
UnifapiVersion:
name: Unifapi-Version
in: header
required: false
description: 'Pin the API version an integration was built against (date-based, e.g. `2026-07-01`). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with `Deprecation` and `Sunset` response headers. The served version is echoed in every response''s `Unifapi-Version` header. Policy: https://unifapi.com/versioning.md'
schema:
type: string
default: '2026-07-01'
enum:
- '2026-07-01'
IdempotencyKey:
name: Idempotency-Key
in: header
required: false
description: 'Client-supplied unique key that makes a write request safe to retry. If a request with the same key was already processed, the original response is replayed (with `Idempotency-Replayed: true`) instead of executing — and billing — again. Send a fresh UUID per logical operation. Best-effort with a 24h window.'
schema:
type: string
maxLength: 255
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: UnifAPI API key. Provider credentials are managed by UnifAPI.
externalDocs:
url: https://docs.unifapi.com
description: UnifAPI developer documentation
x-refined-from:
- api-unifapi-com-openapi.yml
- mcp-unifapi-com-openapi.yml
# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/unifapi-com/openapi/unifapi-com-browser-api-openapi.yml