Apache Livy · Schema

Statement

A code statement executed in a session

Big DataInteractive ComputingOpen-SourceRESTSpark

Properties

Name Type Description
id integer Statement identifier
code string The code that was executed
state string Statement execution state
output object Statement output
View JSON Schema on GitHub

JSON Schema

rest-api-statement-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-livy/refs/heads/main/json-schema/rest-api-statement-schema.json",
  "title": "Statement",
  "description": "A code statement executed in a session",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Statement identifier",
      "example": 0
    },
    "code": {
      "type": "string",
      "description": "The code that was executed",
      "example": "sc.parallelize([1,2,3]).count()"
    },
    "state": {
      "type": "string",
      "description": "Statement execution state",
      "enum": [
        "waiting",
        "running",
        "available",
        "error",
        "cancelling",
        "cancelled"
      ],
      "example": "available"
    },
    "output": {
      "type": "object",
      "description": "Statement output",
      "properties": {
        "status": {
          "type": "string",
          "example": "ok"
        },
        "execution_count": {
          "type": "integer",
          "example": 0
        },
        "data": {
          "type": "object"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/rest-api-statement"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.