Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/teng-lin/notebooklm-py/llms.txt

Use this file to discover all available pages before exploring further.

notebooklm-py gives you complete programmatic control over Google NotebookLM. You can create and manage notebooks, add sources from URLs, YouTube videos, PDFs, and Google Drive, chat with your content, run web and Drive research queries, and generate a full suite of AI content—all from Python code, the command line, or an AI agent. The library also includes a built-in skill file for Claude Code, Codex, and other LLM agents that speak the open skills protocol.
notebooklm-py is not affiliated with Google. It uses undocumented internal APIs that can change without notice, and rate limits apply to heavy usage. It is best suited for prototypes, research automation, and personal projects.

Three ways to use notebooklm-py

You can drive the same underlying API from three distinct entry points, depending on your use case.

Python API

An async Python client for application integration, custom pipelines, and automated workflows.

CLI

Shell commands for scripting, quick one-off tasks, and CI/CD automation without writing Python.

Agent integration

A bundled skill for Claude Code, Codex, and any agent that uses the open skills protocol.

Feature coverage

The table below shows the categories of operations the library supports.
CategoryCapabilities
NotebooksCreate, list, rename, delete
SourcesURLs, YouTube, files (PDF, text, Markdown, Word, audio, video, images), Google Drive, pasted text; refresh; get guide and fulltext
ChatQuestions, conversation history, custom personas
ResearchWeb and Drive research agents (fast and deep modes) with auto-import
SharingPublic and private links, user permissions (viewer, editor), view level control
Content generationAudio Overview, Video Overview, Slide Deck, Infographic, Quiz, Flashcards, Report, Data Table, Mind Map
DownloadsMP3, MP4, PDF, PPTX, PNG, CSV, JSON, Markdown
ExportGoogle Docs and Google Sheets

Content generation options

Every NotebookLM Studio type is supported, with format and style control.
TypeOptionsDownload format
Audio Overview4 formats (deep-dive, brief, critique, debate), 3 lengths, 50+ languagesMP3, MP4
Video Overview3 formats (explainer, brief, cinematic), 9 visual stylesMP4
Slide DeckDetailed or presenter format, adjustable length, per-slide revisionPDF, PPTX
Infographic3 orientations, 3 detail levelsPNG
QuizConfigurable quantity and difficultyJSON, Markdown, HTML
FlashcardsConfigurable quantity and difficultyJSON, Markdown, HTML
ReportBriefing doc, study guide, blog post, or custom promptMarkdown
Data TableCustom structure via natural languageCSV
Mind MapInteractive hierarchical visualizationJSON

Features beyond the web UI

The following capabilities are available via notebooklm-py but are not exposed in the NotebookLM web interface:
  • Batch downloads — download all artifacts of a type at once
  • Quiz and flashcard export — get structured JSON, Markdown, or HTML instead of only the interactive view
  • Mind map JSON extraction — export the hierarchical tree for visualization tools
  • Data table CSV export — download structured tables as spreadsheets
  • Slide deck as PPTX — download editable PowerPoint files (the web UI only offers PDF)
  • Slide revision — modify individual slides with natural-language prompts
  • Report template customization — append extra instructions to built-in format templates
  • Save chat to notes — save answers or conversation history as notebook notes
  • Source fulltext access — retrieve the indexed text content of any source
  • Programmatic sharing — manage notebook permissions without the UI

Platform support

PlatformStatusNotes
macOSSupportedPrimary development platform
LinuxSupportedFully tested in CI
WindowsSupportedTested in CI

Python version requirements

notebooklm-py requires Python 3.10 or later. It is tested against Python 3.10, 3.11, 3.12, 3.13, and 3.14.

Next steps

Install notebooklm-py

Install from PyPI and set up browser login.

Quickstart

Create a notebook, add sources, and generate a podcast in minutes.

Build docs developers (and LLMs) love