Skip to main content
Hosted fetch lets you call registered Hermai endpoints through the hosted API when they are available for hosted execution. Send a 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

Response:

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:
Pull the full package when you need URL templates, request details, and the full parameter contract:
You can also use the catalog API when you want your own agent or server to call upstream sites directly.

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:
Common error codes include:

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

Use GET /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.