Connect
REST API
Everything the MCP server can do is also a plain HTTPS API, so you can build dashboards, bots and backfills without an MCP client.
Base URL https://data.stalkchain.com/api/v1 · Auth Authorization: Bearer sc_your_key (API key from the dashboard) or an OAuth access token.
Call a tool
Code
GET works too, with inputs as query parameters (numbers and booleans are coerced):
Code
Response shape
Code
x-credits-remaining is also sent as a response header.
Other endpoints
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/tools | List every tool with its JSON-schema inputs |
| GET | /api/v1/me | Your balance, calls left and usage by tool |
| GET | /api/v1/openapi.json | OpenAPI 3.1 document (also rendered under API Reference) |
Errors
All errors are { "error": { "code", "message" } }.
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request | Inputs failed validation; issues lists what |
| 401 | unauthorized | Missing or revoked key / token |
| 402 | out_of_credits | Buy a pack; the next call works immediately |
| 404 | not_found | Unknown tool or route |
| 429 | rate_limited | Slow down (only for unauthenticated calls) |
| 502 | tool_error | The tool ran but the upstream failed; details has the tool's own message |
See Errors and retries for what to do on each.
Last modified on