# notebooklm-py

> Unofficial Python API and agentic skill for Google Gemini Notebook. Full programmatic access to Gemini Notebook's features—including capabilities the web UI doesn't…

- Type: agent or tool
- Field: Research & Search
- Repository: https://github.com/teng-lin/notebooklm-py
- GitHub stars: 20365
- Licence: MIT
- Language: Python
- Last push: 2026-11-24
- Page: https://imutechz.in/agents/notebooklm-py

## What it is
notebooklm-py is an unofficial Python API, CLI and agent skill for Google Gemini Notebook (formerly NotebookLM). It gives programmatic access to notebook features such as adding sources, asking questions, and generating or downloading artifacts. It is aimed at developers, researchers and AI agent users who want to script NotebookLM workflows. It works by calling undocumented Google APIs, so it is not affiliated with Google.

## Features
- Python API, CLI and agent skill in one package
- Bulk-import sources from URLs, PDFs, YouTube and Google Drive
- Generate audio overviews, videos, slides, quizzes, flashcards, mind maps and study guides
- Download artifacts as MP3, MP4, PDF, PNG, CSV, JSON or Markdown
- Export to Google Docs and Sheets
- MCP server and skill install support for Claude Code and Codex

## Best for
- Automating research pipelines over document collections
- Giving AI coding agents grounded memory from internal docs
- Generating and batch-downloading study or content artifacts
- Prototyping with NotebookLM from Python scripts

## Pros
- Exposes capabilities the web UI does not offer, such as batch downloads and mind map JSON extraction
- Ships with a skill file and install support for agent tools
- Supports many output formats and Google Docs/Sheets export

## Cons
- Uses undocumented Google APIs that can change without notice
- Not affiliated with Google; APIs may break at any time
- Rate limits apply and heavy usage may be throttled

## Usage
```
source add-research "your topic" --mode deep
```

Tags: notebooklm, gemini-notebook, python-api, cli, ai-agents, research-automation, unofficial, content-generation
