# Kaggle notebook details API

Get Kaggle Notebook Details via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including notebook reference, notebook language, notebook version, referenced input resources, and published run metadata to inspect dependencies, and discover published outputs, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/kaggle/kaggle-notebook-details-api/5f2d3408-72d9-4399-8687-40dbb21d9f5a/
API ID: 5f2d3408-72d9-4399-8687-40dbb21d9f5a
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/kaggle/v1/notebook
Page update time: 2026-12-03T02:44:00.062Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:57.936Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Kaggle Notebook Details API

id accepts author/slug or a Kaggle code link. run and output\_files describe published notebook information; file URLs are references rather than embedded file bytes.

## What You Can Build

- **Inspect dependencies**: Keep data\_sources with notebook version.
- **Discover published outputs**: Read output\_files before accessing a resource separately.

## Returned Data

| Field | Meaning |
| --- | --- |
| `ref` | Notebook reference |
| `language` | Notebook language |
| `version` | Notebook version |
| `data_sources` | Referenced input resources |
| `run` | Published run metadata |
| `output_files[].name` | Output file name |
| `output_files[].download_url` | Output download reference |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Kaggle notebook details API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "author/slug, or a kaggle.com/code/... link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "author": {
      "type": "object",
      "properties": {
        "avatar": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "tier": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "username": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "comments_url": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "data_sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "download_all_url": {
      "type": "string"
    },
    "forks": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "language": {
      "type": "string"
    },
    "medal": {
      "type": "string"
    },
    "output_files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "download_url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "size_bytes": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "ref": {
      "type": "string"
    },
    "rendered_output_url": {
      "type": "string"
    },
    "run": {
      "type": "object",
      "properties": {
        "accelerator": {
          "type": "null"
        },
        "created_at": {
          "type": "string"
        },
        "evaluated_at": {
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "run_seconds": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "title": {
      "type": "string"
    },
    "topic_id": {
      "type": "integer"
    },
    "updated_at": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    },
    "versions": {
      "type": "integer"
    },
    "views": {
      "type": "integer"
    },
    "votes": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/kaggle/v1/notebook?id=alexisbcook%2Ftitanic-tutorial&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "author": {
    "avatar": "https://storage.googleapis.com/kaggle-avatars/thumbnails/2603295-kg.jpg",
    "id": 2603295,
    "name": "Alexis Cook",
    "tier": "GRANDMASTER",
    "url": "https://www.kaggle.com/alexisbcook",
    "username": "alexisbcook"
  },
  "cached": false,
  "comments_url": "https://www.kaggle.com/code/alexisbcook/titanic-tutorial/comments",
  "credits_used": 1,
  "data_sources": [
    {
      "id": 3136,
      "name": "Titanic - Machine Learning from Disaster",
      "thumbnail": "https://storage.googleapis.com/kaggle-competitions/kaggle/3136/logos/thumb76_76.png?GoogleAccessId=name@example.com&Expires=1793891780&Signa…",
      "url": "https://www.kaggle.com/competitions/titanic"
    }
  ],
  "download_all_url": "https://www.kaggle.com/code/svzip/99170538",
  "forks": 53108,
  "id": 5660537,
  "language": "IPython Notebook HTML",
  "medal": "GOLD",
  "output_files": [
    {
      "download_url": "https://www.kaggleusercontent.com/kf/99170538/eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..EpRNSNe1N6ftDZjGyje8HQ.9z3ukENZETOZWf2T1fG-Yn…",
      "name": "submission.csv",
      "size_bytes": 2839,
      "type": ".csv"
    }
  ],
  "ref": "alexisbcook/titanic-tutorial",
  "rendered_output_url": "https://www.kaggleusercontent.com/kf/99170538/eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..SgHVyzH1CeMJfCgEjDmQqQ.BX0S4Ur9CBnfPy72nJgScH…",
  "run": {
    "accelerator": null,
    "created_at": "2022-06-24T00:25:13.820Z",
    "evaluated_at": "2022-06-24T00:25:16.107Z",
    "id": 99170538,
    "run_seconds": 1050,
    "status": "COMPLETE"
  },
  "title": "Titanic Tutorial",
  "topic_id": 111053,
  "updated_at": "2022-06-24T00:25:16.106666700Z",
  "url": "https://www.kaggle.com/code/alexisbcook/titanic-tutorial",
  "version": 22,
  "versions": 22,
  "views": 3353274,
  "votes": 61876
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What identifier is supported?
author/slug or a kaggle.com/code URL.

### Does this execute notebook code?
No. It reads metadata and published references.

### Are output file bytes embedded?
No. output_files contains metadata and links.

### How do I find discussions for the notebook?
Use its topic_id and comments_url where available.

### Can versions and output availability differ?
Yes. Retain the returned version and run context with output references.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or use output=json.

## Available implementations
- apish: https://openany.si/kaggle/kaggle-notebook-details-api/5f2d3408-72d9-4399-8687-40dbb21d9f5a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
