site, an endpoint, and optional params; Hermai runs the request and returns the structured result.
Use hosted fetch when you want production execution through Hermai instead of downloading a schema and calling the upstream site yourself.
Basic request
Credit cost
credits_used reflects the weighted cost of the call:
- A standard request costs 1 credit.
- Some higher cost sites, such as large consumer marketplaces and certain listing or travel portals, cost 5 credits.
- Endpoints that return multiple results (such as a comparison set) bill per result.
- Only successful requests are billed. Failed requests are free.
- Each response reports the exact credits it used (
meta.credits_used).
Request body
Finding endpoints
Browse public schema cards without an API key:Citation metadata examples
Hosted fetch is useful for publication and repository metadata workflows. Common registered routes include:
For publisher pages such as ScienceDirect or Nature, use DOI metadata routes. Hermai does not need to scrape protected article pages to return citation metadata.
Errors
Errors use the standard API envelope:Running out of credits
When a workspace is out of credits,POST /v1/fetch returns 402 and the error carries a structured upgrade path so an agent can act on it without parsing the message. upgrade_to names the target plan or add-on and upgrade_url links to checkout:
When to use catalog instead
UseGET /v1/catalog/{domain} or GET /v1/schemas/{site}/package when you want the schema recipe and plan to execute requests yourself.
Use POST /v1/fetch when you want Hermai to execute a supported registered endpoint and return the result.