Ready to filter
Width and height come with each image, so icons are easy to drop.
The images API takes a URL and returns every image on the page, each with its address, its alt text and its width and height when the page states them. A page costs 1 credit.
65 images
3 of 7 shown have alt text
{
"url": "https://stripe.com",
"images": [
{
"src": "https://…/enterprise-accordion-urbn.png",
"alt": "Exterior view of a clothing boutique",
"width": 2460
},
{
"src": "https://…/enterprise-accordion-instacart.png",
"alt": "Overhead view of a door stoop",
"width": 2460
}
]
}13 images
6 of 8 shown have alt text
{
"url": "https://en.wikipedia.org/wiki/Web_scraping",
"images": [
{
"src": "https://…/wikimedia.svg",
"alt": "Wikimedia Foundation",
"width": 25
},
{
"src": "https://…/mediawiki_compact.svg",
"alt": "Powered by MediaWiki",
"width": 25
}
]
}01Handled
Width and height come with each image, so icons are easy to drop.
What the site says each image shows, when it says it.
A recent read of the page is reused unless you ask otherwise.
Run it over a list and build a gallery for a whole site.
02Connect
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/images \
-H "X-API-Key: $HYDRAFETCH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://stripe.com"}'import { Hydrafetch } from "@hydrafetch/node-sdk";
const hf = new Hydrafetch(process.env.HYDRAFETCH_API_KEY);
const { images } = await hf.images("https://stripe.com");
console.log(images.length, images[0]?.src);from hydrafetch import Hydrafetch
hf = Hydrafetch()
images = hf.images("https://stripe.com")["images"]
print(len(images), images[0]["src"])Working in a coding agent? Hand it this.
03Price
04Questions
Every image found on the page, each with its address, its alt text, and its width and height when the page states them.
1 credit a page, however many images the page has. A page we cannot read costs nothing.
No. It returns the address of each image. Fetch the ones you want from there.
Filter on width and height. Logos, icons and tracking pixels are small, so a minimum size removes most of them.
Use the screenshot API. It captures the page as a visitor sees it and returns a link to a PNG.