Prerequisites
- An AnyAPI account — sign up at getanyapi.com.
- A terminal with
curl(or any HTTP client).
Get started
Create an API key
In the dashboard, open API Keys and create a new
key. Copy it somewhere safe — it’s shown only once.New accounts get a one-time $1 credit, so you can make your first calls before
topping up.
Make your first call
Every API is a single
POST to /v1/run/{sku}. Pass your key with the
X-API-Key header (or Authorization: Bearer) and the SKU’s normalized input
as the JSON body.Building an agent?
/v1/run/{sku} accepts optional query parameters that
shrink the response so a large result doesn’t flood your context window:
fields (keep only these keys), max_items (cap the rows), and summary
(outline only). They trim what’s returned, never what you’re billed. See the
MCP server page for details.Read the response
You get a normalized envelope.
output is the result, costUsd is what this
call cost you in real dollars, and items is the number of results you were
charged for (on per-result APIs).A legitimate “not found” is a success:
output is { "found": false, "data": null }.
You’re only charged when a call succeeds — failed calls cost nothing.