Any screen size
Capture the same page as a desktop, a tablet or a phone.
The screenshot API takes a URL, opens the page in a real browser and returns a public link to a PNG of it, the visible screen or the whole scrollable page. Cookie banners and popups are cleared first. A screenshot costs 5 credits, and a repeat within a week is served from the stored copy.

{
"url": "https://linear.app",
"status": 200,
"screenshotType": "viewport",
"width": 1280,
"height": 800,
"cached": false
}
{
"url": "https://stripe.com",
"status": 200,
"screenshotType": "viewport",
"width": 1280,
"height": 800,
"cached": false
}
{
"url": "https://vercel.com",
"status": 200,
"screenshotType": "viewport",
"width": 1280,
"height": 800,
"cached": false
}01Options
curl https://api.hydrafetch.com/v1/web/screenshot \
-H "X-API-Key: $HYDRAFETCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://linear.app",
"viewport": "laptop",
"fullPage": false
}'{
"data": {
"url": "https://linear.app",
"status": 200,
"screenshot": "https://media.hydrafetch.com/…png",
"screenshotType": "viewport",
"width": 1280,
"height": 800,
"cached": false
}
}02Handled
Capture the same page as a desktop, a tablet or a phone.
Cookie banners and popups are cleared before the capture.
The PNG is hosted for you, at a stable public address.
Ask again and the stored capture comes back at once.
03Connect
For agents
One MCP server. Every endpoint is a tool.
Add Hydrafetch from your terminal.
claude mcp add --scope user --transport http hydrafetch https://api.hydrafetch.com/mcpStart Claude Code, run /mcp, choose hydrafetch and then Authenticate. Your browser opens: sign in, pick a workspace and approve.
Open Hydrafetch in Claude's connector directory and choose Connect.
Open in ClaudeSign in to Hydrafetch and approve in the window that opens.
Open Hydrafetch in ChatGPT's apps and choose Connect.
Open in ChatGPTSign in to Hydrafetch and approve.
Add Hydrafetch to ~/.cursor/mcp.json. Create the file if it does not exist.
{
"mcpServers": {
"hydrafetch": { "url": "https://api.hydrafetch.com/mcp" }
}
}Open Cursor Settings, then MCP. Hydrafetch asks you to sign in: choose Connect and approve in your browser.
Add Hydrafetch to .vscode/mcp.json in your workspace.
{
"servers": {
"hydrafetch": { "type": "http", "url": "https://api.hydrafetch.com/mcp" }
}
}Choose Start above the server in that file, then sign in and approve when VS Code asks.
Add Hydrafetch from your terminal.
codex mcp add hydrafetch --url https://api.hydrafetch.com/mcpStart Codex. The first time it uses Hydrafetch, your browser opens to sign in.
Add Hydrafetch from your terminal.
gemini mcp add hydrafetch --url https://api.hydrafetch.com/mcp --scope userStart Gemini CLI. The first time it uses Hydrafetch, your browser opens to sign in.
Open the MCP Servers panel and choose Configure to open the settings file.
Add Hydrafetch to it. Replace hf_your_key with a key from the API keys page.
{
"mcpServers": {
"hydrafetch": {
"type": "streamableHttp",
"url": "https://api.hydrafetch.com/mcp",
"headers": { "Authorization": "Bearer hf_your_key" },
"disabled": false,
"autoApprove": []
}
}
}Add Hydrafetch to your global OpenCode config.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"hydrafetch": { "type": "remote", "url": "https://api.hydrafetch.com/mcp", "enabled": true }
}
}Start OpenCode. It sees that Hydrafetch needs a sign-in and opens your browser.
For your code
An official client in 6 languages, or plain HTTP.
curl https://api.hydrafetch.com/v1/web/screenshot \
-H "X-API-Key: $HYDRAFETCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://linear.app", "fullPage": true}'import { Hydrafetch } from "@hydrafetch/node-sdk";
const hf = new Hydrafetch(process.env.HYDRAFETCH_API_KEY);
const shot = await hf.screenshot("https://linear.app", {
fullPage: true,
});
console.log(shot.screenshot);from hydrafetch import Hydrafetch
hf = Hydrafetch()
shot = hf.screenshot("https://linear.app", fullPage=True)
print(shot["screenshot"])Working in a coding agent? Hand it this.
04Price
05Questions
A public link to a PNG of the page, with its width and height, the HTTP status of the page and whether the capture covers the screen or the whole page.
5 credits a screenshot. A page we cannot capture costs nothing.
Yes. Set fullPage and the capture runs from the top of the page to the bottom, at the width you chose.
Not by default. Consent banners and popups are cleared before the capture. Set dismissCookies or dismissPopups to false if you want them in.
Yes, with the scrape API. A screenshot shows how a page looks, and a scrape returns what it says as clean markdown.