# notebooklm-py | Teng Lin | Knowledge Base | Instagit

Unofficial Python API for Google NotebookLM

GitHub Stars: 4k

Repository: https://github.com/teng-lin/notebooklm-py

---

## Articles

### [NotebookLM Report Template Customization: How to Use Custom Prompts](/teng-lin/notebooklm-py/how-do-i-use-report-template-customization-with-custom-prompts)

Unlock NotebookLM report template customization using custom prompts. Override default formatting and control output with your specific instructions for tailored reports.

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Export Slide Decks as Editable PPTX Files Using notebooklm-py](/teng-lin/notebooklm-py/how-do-i-export-slide-decks-as-editable-pptx-files)

Easily export editable PPTX slide decks from NotebookLM using the CLI or Python library. Download your presentations in a fully editable PowerPoint format.

- Tags: how-to-guide
- Published: 2026-03-09

### [NotebookLM Fast Research vs Deep Research: Understanding the Two Query Modes](/teng-lin/notebooklm-py/what-is-the-difference-between-fast-research-and-deep-research-modes)

Understand NotebookLM fast research vs deep research. Fast mode offers quick scans with URLs, while deep mode provides exhaustive web crawls and richer summaries. Choose the right mode for your research needs.

- Tags: deep-dive
- Published: 2026-03-09

### [How to Extract Fulltext Content from Indexed Sources in NotebookLM](/teng-lin/notebooklm-py/how-do-i-extract-fulltext-content-from-indexed-sources)

Easily extract fulltext content from indexed sources in NotebookLM using the Python client. Get complete text, title, URL, and character count with client.sources.get_fulltext().

- Tags: how-to-guide
- Published: 2026-03-09

### [VideoStyle Options for Video Generation in NotebookLM: Complete Guide](/teng-lin/notebooklm-py/what-are-the-supported-videostyle-options-for-video-generation)

Explore NotebookLM's 10 VideoStyle options for video generation. This guide details each aesthetic from AUTO_SELECT to PAPER_CRAFT to enhance your creations.

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Handle Source Freshness Checking and Refresh Operations in NotebookLM-Py](/teng-lin/notebooklm-py/how-do-i-handle-source-freshness-checking-and-refresh-operations)

Learn how to manage source freshness checking and refresh operations in NotebookLM-Py. Use check_freshness() and refresh() to keep your data up-to-date.

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Integrate notebooklm-py with Claude Code Agent Skills](/teng-lin/notebooklm-py/how-do-i-integrate-notebooklm-py-with-claude-code-agent-skills)

Learn to integrate notebooklm-py with Claude Code Agent skills. Install the notebooklm skill using a simple command for autonomous NotebookLM operations. Get started now.

- Tags: how-to-guide
- Published: 2026-03-09

### [NotebookLM RPC Method IDs for Notebook Operations: Create, Rename, and Delete](/teng-lin/notebooklm-py/what-rpc-method-ids-are-used-for-notebook-operations)

Discover the specific NotebookLM RPC method IDs CCqFvf, s0tc2d, and WWINqb used for notebook create, rename, and delete operations in the teng-lin/notebooklm-py client.

- Tags: api-reference
- Published: 2026-03-09

### [How the Async Context Manager Pattern Works with NotebookLMClient](/teng-lin/notebooklm-py/how-does-async-context-manager-pattern-work-with-notebooklmclient)

Discover how NotebookLMClient uses the async context manager pattern. Ensure automatic connection management and transparent authentication refreshes with async with blocks, preventing resource leaks.

- Tags: deep-dive
- Published: 2026-03-09

### [generate_mind_map() JSON Export vs. Web UI Visualization in notebooklm-py](/teng-lin/notebooklm-py/difference-between-generate-mind-map-json-export-and-web-ui)

Explore the `generate_mind_map()` JSON export and Web UI visualization in notebooklm-py. Understand how JSON data translates to interactive diagrams for your projects.

- Tags: deep-dive
- Published: 2026-03-09

### [How to Set Notebook Sharing to Public or Restricted via the SharingAPI](/teng-lin/notebooklm-py/how-do-i-set-notebook-sharing-to-public-or-restricted)

Learn how to set notebook sharing to public or restricted using the SharingAPI in notebooklm-py. Control access easily with simple Python code examples provided.

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Configure Custom Personas in the NotebookLM Chat API](/teng-lin/notebooklm-py/how-do-i-configure-custom-personas-in-the-chatapi)

Configure custom personas in NotebookLM Chat API using NotebookLMClient.chat.configure() with ChatGoal.CUSTOM and a custom_prompt for persistent system personas. Learn more now!

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Download Artifacts in Batch from NotebookLM (MP3, MP4, PDF, PNG, CSV)](/teng-lin/notebooklm-py/how-do-i-download-artifacts-in-batch)

Easily download all MP3 MP4 PDF PNG CSV artifacts from NotebookLM in batch using the CLI or Python. Streamline your workflow and save time today.

- Tags: how-to-guide
- Published: 2026-03-09

### [Rate Limiting Considerations for Bulk Operations in notebooklm-py](/teng-lin/notebooklm-py/what-are-the-rate-limiting-considerations-for-bulk-operations)

Learn rate limiting for notebooklm-py bulk operations. Implement exponential backoff or catch RateLimitError to manage strict Google RPC quotas effectively.

- Tags: best-practices
- Published: 2026-03-09

### [How to Handle CSRF Token Expiration and Refresh Authentication in notebooklm-py](/teng-lin/notebooklm-py/how-do-i-handle-csrf-token-expiration)

Learn to handle CSRF token expiration and refresh authentication in notebooklm-py. The library automatically re-fetches tokens and updates headers for seamless recovery.

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Export Quizzes and Flashcards as Structured JSON or Markdown in notebooklm-py](/teng-lin/notebooklm-py/how-do-i-export-quizzes-and-flashcards)

Effortlessly export quizzes and flashcards from notebooklm-py as structured JSON or formatted Markdown. Unlock your learning data with this powerful Python library.

- Tags: how-to-guide
- Published: 2026-03-09

### [How to Use the Research API with Auto-Import for Web and Drive Sources in notebooklm-py](/teng-lin/notebooklm-py/how-do-i-use-the-research-api-with-auto-import)

Learn to use the Research API with auto-import for web and Drive sources in notebooklm-py. Start, poll, and import sources efficiently with simple Python code.

- Tags: how-to-guide
- Published: 2026-03-09

### [Understanding the Layered Architecture of notebooklm-py: CLI → Client → Core → RPC](/teng-lin/notebooklm-py/what-is-the-layered-architecture-of-notebooklm-py)

Explore the layered architecture of notebooklm-py CLI Client Core RPC. Understand how this Python library separates concerns for a robust Google NotebookLM interface. Learn more.

- Tags: architecture
- Published: 2026-03-09

### [How to Add YouTube Videos as Sources Using the NotebookLM SourcesAPI](/teng-lin/notebooklm-py/how-do-i-add-youtube-videos-as-sources-using-the-sourcesapi)

Easily add YouTube videos as sources in NotebookLM using the SourcesAPI. This guide shows you how to use add_url to integrate video content seamlessly into your projects.

- Tags: how-to-guide
- Published: 2026-03-09

### [How the batchexecute RPC Protocol Works with Obfuscated Method IDs in notebooklm-py](/teng-lin/notebooklm-py/how-does-the-batchexecute-rpc-protocol-work)

Discover how the batchexecute RPC protocol uses short obfuscated method IDs in notebooklm-py to access private API endpoints through triple-nested JSON and URL parameters.

- Tags: deep-dive
- Published: 2026-03-09

### [How to Generate Audio Overviews with Different Formats in NotebookLM-Py](/teng-lin/notebooklm-py/how-do-i-generate-audio-overviews-with-different-formats)

Generate audio overviews in NotebookLM-Py using the generate audio method. Explore deep-dive, brief, critique, and debate formats for custom podcast-style summaries. Learn how now.

- Tags: how-to-guide
- Published: 2026-03-09

### [Risk Factors When Using Undocumented Google RPC APIs: A Technical Analysis of notebooklm-py](/teng-lin/notebooklm-py/what-are-the-risk-factors-when-using-undocumented-google-rpc-apis)

Explore the risks of using undocumented Google RPC APIs like method-ID volatility and authentication churn with notebooklm-py. Understand the technical challenges and avoid sanctions.

- Tags: technical-analysis
- Published: 2026-03-09

