Trino Submit Statement Example
Trino Submit Statement Example is an example object payload from Trino, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
Example Payload
{
"request": {
"method": "POST",
"url": "http://localhost:8080/v1/statement",
"headers": {
"X-Trino-User": "alice",
"X-Trino-Catalog": "hive",
"X-Trino-Schema": "default",
"X-Trino-Source": "my-app",
"Content-Type": "text/plain"
},
"body": "SELECT node_id, http_uri, node_version, state FROM system.runtime.nodes"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"id": "20240515_143022_00001_xyz12",
"infoUri": "http://localhost:8080/ui/query.html?20240515_143022_00001_xyz12",
"nextUri": "http://localhost:8080/v1/statement/20240515_143022_00001_xyz12/1",
"columns": [
{ "name": "node_id", "type": "varchar" },
{ "name": "http_uri", "type": "varchar" },
{ "name": "node_version", "type": "varchar" },
{ "name": "state", "type": "varchar" }
],
"data": [
["trino-coordinator-0", "http://coordinator:8080", "480", "active"],
["trino-worker-1", "http://worker-1:8080", "480", "active"],
["trino-worker-2", "http://worker-2:8080", "480", "active"]
],
"stats": {
"state": "FINISHED",
"queued": false,
"scheduled": true,
"nodes": 3,
"totalSplits": 1,
"queuedSplits": 0,
"runningSplits": 0,
"completedSplits": 1,
"cpuTimeMillis": 12,
"wallTimeMillis": 48,
"queuedTimeMillis": 3,
"elapsedTimeMillis": 51,
"processedRows": 3,
"processedBytes": 1024,
"progressPercentage": 100
}
}
}
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/examples/trino-submit-statement-example"
curl "https://apis.io/api/v1/examples?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.