hydrafetch

Any web page as clean markdown.

The scrape API takes a URL and returns the page's main content as clean markdown, plus its links, its own structured data or JSON in your schema when you ask. A page costs 1 credit, and a page we cannot read costs nothing.

Get API key
POSTlinear.app/pricingoverreacted.io/a-complete-guide-to-useeffecthono.dev/docs

# Pricing

$0

Free for everyone

- Unlimited members

- 2 teams

- 250 issues

- Agent platform

### Basic

$10 per user/month

Billed yearly

- All Free features +

- 5 teams

- Unlimited issues

- Unlimited file uploads

- Admin roles

### Business

$16 per user/month

42 internal4 external

  • linear.app/customers
  • linear.app/docs
  • linear.app/contact/sales
  • linear.app/docs/ai-credits
  • linear.app/integrations
  • linear.app/changelog
  • linear.app/security
  • linearstatus.com/
  • github.com/linear
{
  "jsonLd": [
    {
      "@type": "SoftwareApplication",
      "name": "Linear",
      "applicationCategory": "BusinessApplication",
      "offers": [
        {
          "@type": "Offer",
          "name": "Free",
          "price": 0,
          "priceCurrency": "USD"
        },
        {
          "@type": "Offer",
          "name": "Basic",
          "price": 10,
          "priceCurrency": "USD"
        },
        {
          "@type": "Offer",
          "name": "Business",
          "price": 16,
          "priceCurrency": "USD"
        }
      ]
    }
  ]
}
{
  "plans": [
    {
      "name": "Free",
      "price": "$0",
      "teams": "2 teams"
    },
    {
      "name": "Basic",
      "price": "$10 per user/month",
      "teams": "5 teams"
    },
    {
      "name": "Business",
      "price": "$16 per user/month",
      "teams": "Unlimited teams"
    },
    {
      "name": "Enterprise",
      "price": "Custom",
      "teams": "Unlimited"
    }
  ]
}

# A Complete Guide to useEffect

March 9, 2019

You wrote a few components with Hooks. Maybe even a small app. You’re mostly satisfied. You’re comfortable with the API and picked up a few tricks along the way.

But sometimes when you `useEffect`, the pieces don’t quite fit together. You find yourself asking questions like:

- How do I replicate `componentDidMount` with `useEffect`?

- How do I correctly fetch data inside `useEffect`? What is `[]`?

- Why do I sometimes get an infinite refetching loop?

6 internal31 external

  • overreacted.io/react-as-a-ui-runtime/
  • overreacted.io/why-do-hooks-rely-on-call-order/
  • overreacted.io/the-bug-o-notation/
  • reactjs.org/docs/hooks-effect.html
  • reactjs.org/docs/hooks-faq.html
  • github.com/facebook/react/issues/14920
  • www.robinwieruch.de/react-hooks-fetch-data/
  • codesandbox.io/s/w2wxl3yo0l
  • reactjs.org/docs/thinking-in-react.html
{
  "opengraph": [
    {
      "og:description": "Effects are a part of your data flow.",
      "og:image:type": "image/png",
      "og:image:width": "1200",
      "og:image:height": "630"
    }
  ]
}
{
  "published": "March 9, 2019",
  "questionsAnswered": [
    "How do I replicate componentDidMount with useEffect?",
    "How do I correctly fetch data inside useEffect? What is []?",
    "Why do I sometimes get an infinite refetching loop?"
  ]
}

## Features

- **Ultrafast** - The router `RegExpRouter` is really fast. Not using linear loops. Fast.

- **Lightweight** - The `hono/tiny` preset is under 14kB. Hono has zero dependencies and uses only the Web Standards.

- **Multi-runtime** - Works on Cloudflare Workers, Fastly Compute, Deno, Bun, AWS Lambda, or Node.js. The same code runs on all platforms.

- **Batteries Included** - Hono has built-in middleware, custom middleware, third-party middleware, and helpers.

- **Delightful DX** - Super clean APIs. First-class TypeScript support.

94 internal22 external

  • hono.dev/docs/concepts/routers
  • hono.dev/docs/getting-started/cloudflare-workers
  • hono.dev/docs/getting-started/bun
  • hono.dev/docs/api/routing
  • hono.dev/docs/guides/middleware
  • hono.dev/docs/guides/validation
  • hono.dev/docs/helpers/streaming
  • hono.dev/llms.txt
  • github.com/honojs
{
  "opengraph": [
    {
      "@type": "website",
      "og:image": "https://hono.dev/images/hono-title.png"
    }
  ],
  "entities": [
    {
      "type": "website",
      "source": "opengraph",
      "properties": {
        "og:image": "https://hono.dev/images/hono-title.png"
      }
    }
  ]
}
{
  "name": "Hono",
  "install": "npm create hono@latest",
  "runtimes": [
    "Cloudflare Workers",
    "Fastly Compute",
    "Deno",
    "Bun",
    "Vercel",
    "Node.js"
  ],
  "features": [
    "Ultrafast router (RegExpRouter)",
    "First-class TypeScript support"
  ]
}
complete · 631 wordscomplete · 7,628 wordscomplete · 965 words1 credit1 credit1 credit

01Formats

One call. Every format you need.

Endpoint reference
  • markdownThe main content, clean. The default.
  • htmlThe same content as cleaned HTML.
  • rawHtmlThe page exactly as it was served.
  • linksEvery link, internal and external.
  • structuredThe page's own data, as the site published it.
  • +1 creditsummaryA short summary of the page.
  • +4 creditsjsonFields in your schema, or from a prompt.
  • +5 creditsbrandThe site's name, logo, colours and fonts.
Request
curl https://api.hydrafetch.com/v1/web/scrape \
  -H "X-API-Key: $HYDRAFETCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://linear.app/pricing",
    "formats": ["markdown", "links", "structured"]
  }'
Response
{
  "data": {
    "metadata": { "title": "Pricing – Linear", "wordCount": 631 },
    "quality": { "confidence": 1, "complete": true, "blocked": false },
    "markdown": "# Pricing\n\n$0\n\nFree for everyone…",
    "links": { "internal": ["…42"], "external": ["…4"] },
    "structured": { "jsonLd": ["…2"], "entities": ["…3"] },
    "usage": { "creditsUsed": 1 }
  }
}

02Handled

The hard pages, handled for you.

Pages built by scripts

Read the way a browser shows them, at the same price.

Banners, popups and ads removed

You get the page, not what sits on top of it.

As fresh as you ask

A saved copy by default. The live page when it matters.

Wait for the part you need

Name an element and the page is read once it exists.

Read from another country

See the prices and language a local visitor sees.

As a phone sees it

For sites that serve phones a different page.

Many URLs, one request

Send a list and collect each page as it finishes.

03Quality

A bad page never passes as a good one.

A login wall saved as an article is quoted back as fact months later. Every response says how much to trust it, so the check is one line of your code.

  • completeFalse when the result looks thin or cut short.
  • blockedTrue when the page was a wall, not the page you asked for.
  • confidenceFrom 0 to 1, how far to trust what came back.

200overreacted.io/a-complete-guide-to-useeffect

"quality": {
  "confidence": 1,
  "complete": true,
  "blocked": false
}

Store it1 credit

200example.com/p/trail-runner

"quality": {
  "confidence": 0.31,
  "complete": false,
  "blocked": false
}

Looks thin. Check before you store it1 credit

422example.org/reviews/notion

"error": {
  "code": "UPSTREAM_UNREACHABLE",
  "message": "The origin did not respond…"
}

Not read. Nothing charged0 credits

04Measured

Less to read. Nothing lost.

Read the benchmark

Tokens your model reads

The raw pageWhat we return

  • en.wikipedia.org/wiki/Web_scraping59,769 to 6,831
    89% fewer
  • developer.mozilla.org/en-US/docs/Web/API/Window/fetch45,273 to 1,266
    97% fewer
  • react.dev/learn61,362 to 3,182
    95% fewer

How much of the page survives

84%match with what people marked as the content, across 1,497 labelled pages

  • article
    93%
  • documentation
    92%
  • product
    57%
  • forum
    70%
  • collection
    68%
  • listing
    71%
  • service
    83%

05Connect

Connected in one line.

All integrations

For agents

One MCP server. Every endpoint is a tool.

Claude CodeTerminal
  1. 1

    Add Hydrafetch from your terminal.

    claude mcp add --scope user --transport http hydrafetch https://api.hydrafetch.com/mcp
  2. 2

    Start Claude Code, run /mcp, choose hydrafetch and then Authenticate. Your browser opens: sign in, pick a workspace and approve.

For your code

An official client in 6 languages, or plain HTTP.

cURL
curl https://api.hydrafetch.com/v1/web/scrape \
  -H "X-API-Key: $HYDRAFETCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://en.wikipedia.org/wiki/Web_scraping"}'

Working in a coding agent? Hand it this.

Read https://hydrafetch.com/start.md and set Hydrafetch up in this project. If your fetch tool will not open it, use `curl -sL`.

06Price

One credit a page.

See plans
  • 1 creditA page read
  • 0 creditsA page we cannot read
  • +1 to +5 creditsSummary, JSON or brand on top
  • 30 to 240Requests a minute, by plan

07Questions

What people ask first.

The page's main content as clean markdown, with its title and metadata. Ask for more formats and the same call also returns the cleaned HTML, every link, the page's own structured data, a summary or JSON in your schema.

1 credit a page. A page we cannot read costs nothing, and a cached page you ask for again within its window is served from cache.

Yes. Pages that only show their content once their scripts run come back with that content, at the same price as any other page.

Every response carries a quality object: whether the content looks complete, whether the page was a wall instead of the page you asked for, and a confidence score. Check it before you store the page.

All three turn a URL into markdown. We publish our extraction quality, 0.838 word-level F1 on 1,497 human-labelled pages, charge one credit a page with nothing for a failed one, and answer in one response shape across every endpoint. Our comparison posts go through each in detail.

Clean web data is one call away.

Get API key