# Browser API — UnifAPI

> Markdown, HTML, screenshots, links. Render any URL in a headless browser with JavaScript and get clean Markdown, full HTML, a screenshot or the page's links.

- Category: Browser
- API base URL: https://api.unifapi.com
- Auth: `Authorization: Bearer <UnifAPI API key>` (OAuth recommended for MCP clients)
- MCP server: https://mcp.unifapi.com
- Developer docs: https://docs.unifapi.com/api/browser
- OpenAPI spec: https://unifapi.com/openapi.json
- HTML page: https://unifapi.com/apis/browser
- Full catalog: https://unifapi.com/apis.md

## Endpoints (4)

Every endpoint returns the UnifAPI JSON envelope (`request_id`, `data`, `pagination` on lists, `billing`) and bills max(records × credits per record, minimum) in credits.

### Render a page to HTML

`POST /browser/html`

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.

- Price: 1 credit per record, minimum 10 credits ($0.01) per call
- Details: https://unifapi.com/apis/browser/html/post
- Docs: https://docs.unifapi.com/api/browser/html/post

### Extract links from a page

`POST /browser/links`

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.

- Price: 1 credit per record, minimum 10 credits ($0.01) per call
- Details: https://unifapi.com/apis/browser/links/post
- Docs: https://docs.unifapi.com/api/browser/links/post

### Render a page to Markdown

`POST /browser/markdown`

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.

- Price: 1 credit per record, minimum 10 credits ($0.01) per call
- Details: https://unifapi.com/apis/browser/markdown/post
- Docs: https://docs.unifapi.com/api/browser/markdown/post

### Capture a page screenshot

`POST /browser/screenshot`

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.

- Price: 1 credit per record, minimum 10 credits ($0.01) per call
- Details: https://unifapi.com/apis/browser/screenshot/post
- Docs: https://docs.unifapi.com/api/browser/screenshot/post

## Guides

- [Browser API for agent web reading](https://unifapi.com/blog/browser-api-for-agent-web-reading) — Render JavaScript-heavy pages into Markdown, HTML, screenshots, and links for Agents.
- [SEO, GEO, and Browser visibility stack](https://unifapi.com/blog/seo-geo-browser-visibility-stack) — Use rendered pages as the bridge between search rankings and AI-answer citations.
- [Competitive Intelligence Agent public signals](https://unifapi.com/blog/competitive-intelligence-agent-public-signals) — Use Browser records to inspect competitor pages, launches, positioning, and links.

## Related APIs

- [SEO API](https://unifapi.com/apis/seo/index.md) — Keyword volume, SERP checks, backlinks, domain rank
- [GEO API](https://unifapi.com/apis/geo/index.md) — AI answer visibility, LLM mentions, AI search volume
- [GitHub API](https://unifapi.com/apis/github/index.md) — Users, repositories, contributions, trending
- [Email API](https://unifapi.com/apis/email/index.md) — Free email filter: business vs. personal addresses
