Fetch JSON from a saved PulpMiner API
pulpminer_fetch_api_dataRetrieve JSON from a saved PulpMiner API by numeric ID; supply variables for dynamic endpoints via POST.
Instructions
Call a saved PulpMiner API and return its JSON (GET /external/{apiId}, or POST with variables for dynamic APIs). Uses the PulpMiner API key (PULPMINER_API_KEY locally, or Authorization: Bearer <key> on the hosted server). Costs 0.4 credits (+0.1 if the API renders JS); cached APIs return fast.
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": {
"apiId": "<apiId>"
},
"name": "pulpminer_fetch_api_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiId | Yes | Numeric API id, the value after /external/ in the API URL (e.g. 566). | |
| variables | No | Only for dynamic APIs: values for every {{ variable }} in its dynamic URL, e.g. {"query": "laptops"}. |