Skip to main content

Let your agent set it up

If you code with an agent, give it this prompt instead of reading on. It reads our endpoint list, looks at your project and makes the first call itself.
Prompt
Want to know where Hydrafetch fits in an existing codebase? Use this prompt instead. It reads the repository and lists the scraping code we would replace, with file paths and a credit estimate.

1. Get your API key

Sign up at app.hydrafetch.com and verify your email. Your workspace comes with a key ready to copy and 500 free credits for 30 days. The key starts with hf_. Treat it like a password.

2. Scrape your first page

Send a URL to /v1/web/scrape with your key in the X-API-Key header. You get clean Markdown back by default.
Prefer a library? There are SDKs for Node, Python, Go, Rust, Ruby and PHP.

3. Read the response

A scrape returns the page, what the page says about itself, how far to trust the result, and what the call cost:
  • markdown is the page’s content, cleaned of navigation and boilerplate.
  • metadata is what the page declares about itself. A field the page does not publish is null.
  • quality says how far to trust the result. See Extraction quality.
  • usage is what the call cost and what is left. freshness is cache when the page came from a recent copy, which costs the same.

4. Ask for more

Add formats to get more than Markdown in the same call:

Next steps

Authentication

Keys, workspaces and what happens when a key is wrong.

Formats

Markdown, structured data, links, summaries and more.

Crawl a whole site

Go from one page to every page.

API Reference

Every endpoint, with a live playground.