Call an ApiClay API (billed)
apiclay_call_apiCall /v1/api// through the ApiClay gateway with your account. Billing is the gateway's: the vendor's trial requests first, then your plan, then pay-as-you-go credits (calls through an ApiClay proxy never use trial or plan); failed calls are refunded. Returns status, content type, X-ApiClay-* headers and the body (parsed JSON, text up to 256 KB with a truncated flag, or base64 for binary; PNG/JPEG/GIF/WebP images also come as an image block). Use apiclay_describe_api first to get the parameters. vendor apiclay with path extract is ApiClay's own URL extraction (GET with query url and, in an X-Proxy-Config header, your own proxy or an ApiClay proxy choice, or POST with body {urls, output_mode, render_mode, ..., proxy} returning NDJSON; billed per extracted URL plus the browser and proxy fees it used).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vendor": "<vendor>",
"path": "<path>"
},
"name": "apiclay_call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT/PATCH/DELETE routes (the route's public body fields). | |
| path | Yes | Route path after the vendor (e.g. "search" or "/search"), or the table name for table APIs. No query string. | |
| query | No | Query parameters (the route's public query fields; page for tables). | |
| method | No | GET | |
| vendor | Yes | Vendor username, as returned by apiclay_search_apis. | |
| headers | No | Headers: the route's declared public headers and the X-ApiClay-* control headers (e.g. X-ApiClay-Html: markdown). X-Proxy-Config passes only on routes that use the buyer's proxy. Credentials and cookies are always dropped. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Parsed JSON, text, or base64 according to body_encoding. | |
| path | No | ||
| error | No | ||
| method | No | ||
| status | No | ||
| vendor | No | ||
| headers | No | ||
| body_note | No | ||
| truncated | No | ||
| body_bytes | No | ||
| request_id | No | ||
| content_type | No | ||
| body_encoding | No | ||
| dropped_headers | No |