Jupyter Notebooks · Schema

Jupyter Notebook (nbformat 4)

Schema for a Jupyter notebook document (.ipynb) at nbformat major version 4.

Data ScienceInteractive ComputingJupyterNotebooksPython

Properties

Name Type Description
nbformat integer
nbformat_minor integer
metadata object
cells array
View JSON Schema on GitHub

JSON Schema

jupyter-notebook-format-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jupyter-notebooks/main/json-schema/jupyter-notebook-format-schema.json",
  "title": "Jupyter Notebook (nbformat 4)",
  "description": "Schema for a Jupyter notebook document (.ipynb) at nbformat major version 4.",
  "type": "object",
  "required": ["nbformat", "nbformat_minor", "metadata", "cells"],
  "properties": {
    "nbformat": { "type": "integer", "const": 4 },
    "nbformat_minor": { "type": "integer", "minimum": 0 },
    "metadata": {
      "type": "object",
      "properties": {
        "kernelspec": {
          "type": "object",
          "properties": {
            "name": { "type": "string" },
            "display_name": { "type": "string" },
            "language": { "type": "string" }
          }
        },
        "language_info": {
          "type": "object",
          "properties": {
            "name": { "type": "string" },
            "version": { "type": "string" },
            "mimetype": { "type": "string" },
            "file_extension": { "type": "string" }
          }
        },
        "title": { "type": "string" },
        "authors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": { "name": { "type": "string" } }
          }
        }
      }
    },
    "cells": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "required": ["cell_type", "source"],
            "properties": {
              "cell_type": { "const": "markdown" },
              "metadata": { "type": "object" },
              "source": { "type": ["string", "array"] },
              "attachments": { "type": "object" }
            }
          },
          {
            "type": "object",
            "required": ["cell_type", "source"],
            "properties": {
              "cell_type": { "const": "raw" },
              "metadata": { "type": "object" },
              "source": { "type": ["string", "array"] }
            }
          },
          {
            "type": "object",
            "required": ["cell_type", "source", "outputs", "execution_count"],
            "properties": {
              "cell_type": { "const": "code" },
              "metadata": { "type": "object" },
              "source": { "type": ["string", "array"] },
              "execution_count": { "type": ["integer", "null"] },
              "outputs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": ["output_type"],
                  "properties": {
                    "output_type": {
                      "type": "string",
                      "enum": ["stream", "display_data", "execute_result", "error"]
                    }
                  }
                }
              }
            }
          }
        ]
      }
    }
  }
}

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/jupyter-notebook-format"
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.