quality object so your code can decide, per page, whether to use the result, retry it, or route it for review.
confidence
A number from 0 to 1. Hydrafetch measures the page’s content in independent ways and compares the results: when the independent measurements corroborate each other on substantial content, confidence is high. When the page yields almost nothing, or the measurements disagree sharply (a sign one of them failed), confidence drops.
As a rule of thumb:
- ≥ 0.8 — trust it. The content was substantial and corroborated.
- 0.4 – 0.8 — usable, but worth a look if the page matters. Something about the page made it hard to read cleanly.
- < 0.4 — treat as unreliable. The result is thin, empty, or gated.
complete
true when the result captured the bulk of the content available on the page; false when the result looks thin or truncated relative to what the page holds. A request for the whole page (onlyMainContent: false) is complete by definition — you asked for everything and got it.
blocked
true when the page appeared to be behind a challenge or bot wall and no real content could be recovered. A blocked result always carries low confidence and complete: false, and is never cached — retrying later (or with different options) can succeed.
Low-quality results are not cached, so a retry always re-attempts the page rather than re-serving a bad capture.
Using it in a pipeline
Next: Credits
How usage is metered and what each operation costs.