Google Colab · Schema

Google Colab Notebook

Schema for a Google Colab notebook file in Jupyter notebook format (.ipynb), containing code cells, text cells, metadata, and execution outputs.

CollaborationData ScienceGoogle CloudJupyterMachine LearningNotebooksPython

Properties

Name Type Description
nbformat integer Notebook format major version
nbformat_minor integer Notebook format minor version
metadata object
cells array The cells in the notebook
View JSON Schema on GitHub

JSON Schema

google-colab-notebook-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://colab.research.google.com/schemas/notebook.json",
  "title": "Google Colab Notebook",
  "description": "Schema for a Google Colab notebook file in Jupyter notebook format (.ipynb), containing code cells, text cells, metadata, and execution outputs.",
  "type": "object",
  "required": ["nbformat", "nbformat_minor", "metadata", "cells"],
  "properties": {
    "nbformat": {
      "type": "integer",
      "description": "Notebook format major version",
      "const": 4
    },
    "nbformat_minor": {
      "type": "integer",
      "description": "Notebook format minor version",
      "minimum": 0
    },
    "metadata": {
      "$ref": "#/$defs/NotebookMetadata"
    },
    "cells": {
      "type": "array",
      "description": "The cells in the notebook",
      "items": {
        "$ref": "#/$defs/Cell"
      }
    }
  },
  "$defs": {
    "NotebookMetadata": {
      "type": "object",
      "description": "Notebook-level metadata including Colab-specific settings",
      "properties": {
        "colab": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "The notebook name displayed in Colab"
            },
            "provenance": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "collapsed_sections": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "toc_visible": {
              "type": "boolean"
            }
          }
        },
        "kernelspec": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "default": "python3"
            },
            "display_name": {
              "type": "string",
              "default": "Python 3"
            }
          }
        },
        "language_info": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "default": "python"
            }
          }
        },
        "accelerator": {
          "type": "string",
          "description": "Hardware accelerator type",
          "enum": ["GPU", "TPU", "NONE"]
        }
      }
    },
    "Cell": {
      "type": "object",
      "required": ["cell_type", "source", "metadata"],
      "properties": {
        "cell_type": {
          "type": "string",
          "enum": ["code", "markdown", "raw"],
          "description": "The type of cell"
        },
        "source": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The source content of the cell as an array of lines"
        },
        "metadata": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "colab_type": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "execution_count": {
          "type": ["integer", "null"],
          "description": "Execution count for code cells"
        },
        "outputs": {
          "type": "array",
          "description": "Outputs from code cell execution",
          "items": {
            "$ref": "#/$defs/Output"
          }
        }
      }
    },
    "Output": {
      "type": "object",
      "description": "An output from a code cell execution",
      "properties": {
        "output_type": {
          "type": "string",
          "enum": ["stream", "display_data", "execute_result", "error"]
        },
        "text": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "data": {
          "type": "object",
          "additionalProperties": true
        },
        "name": {
          "type": "string",
          "enum": ["stdout", "stderr"]
        },
        "ename": {
          "type": "string"
        },
        "evalue": {
          "type": "string"
        },
        "traceback": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}

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/google-colab-notebook"
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.