NotebookLM API Guide to Notebooks, Sources and Audio Overviews
Create a Gemini Notebook from code, add a source and see which Google API can generate an Audio Overview for a personal or business workflow.
Published
- GGemini Notebook

Yes, there is an official NotebookLM API. Google renamed the product Gemini Notebook on July 16, 2026. Developers with personal Google Accounts can create notebooks and add sources through the public preview. For a script that also generates an Audio Overview, use the Enterprise API on Google Cloud.
Which NotebookLM API fits your account?
Choose by who owns the notebook and what your code must deliver. A researcher collecting papers in a personal notebook can automate the whole filing job. A training manager who needs a spoken briefing from company documents needs a licensed business notebook. The two requests go to different Google services.
Does NotebookLM have an API for personal accounts?
Yes. Google's developer page, updated November 19, 2026, identifies the REST API as a public preview. REST means your program can send an ordinary HTTP request to create a notebook or add material to it. The page confirms the preview was available by that date and gives no separate launch date. The account and feature details below were verified against Google's public documentation on November 26, 2026. Google’s API overview and examples
Google also hosts a remote Model Context Protocol (MCP) server. MCP lets a coding agent call tools on your behalf. For an agent that files research links as you work, configure its client with https://notebook.googleapis.com/mcp and authorize your personal account. For a scheduled import with a fixed list of sources, the REST request below gives your script direct control. Both routes use the permissions you grant. Google’s MCP setup guide
The consumer API is free during public preview subject to usage limits, and Google lists the standalone business subscription at $9 per license per month, with a 15-license minimum.
Create a personal notebook from code
A good first job is to file one public page in a new notebook and confirm that Google has finished reading it. You need a personal Google Account, a Google Cloud project and the Google Cloud command-line tool, gcloud. A Google AI Studio key serves a different workflow, explained in our guide to Google AI Studio.
Sign in to Gemini Notebook once in the browser with the personal account you'll use for the script. Google's quickstart identifies two failures worth distinguishing. A Workspace account gets 403 PERMISSION_DENIED with WORKSPACE_ACCOUNT_NOT_SUPPORTED. A personal account that has never opened the product can get 404 NOT_FOUND with “Account not found for user.” Changing the notebook title fixes neither. Google’s account prerequisites and quickstart
Authorize your project. Set PROJECT_ID to your Cloud project ID in the shell below. Application Default Credentials let the CLI request an access token with the notebook permission, called an OAuth scope. A token minted by the ordinary gcloud auth print-access-token command lacks that scope in the consumer quickstart.
export PROJECT_ID="YOUR_PROJECT_ID"
# Enable the Gemini Notebook API in your Google Cloud project
gcloud services enable notebook.googleapis.com --project="$PROJECT_ID"
# Authenticate with Application Default Credentials and the Gemini Notebook API scope
gcloud auth application-default login \
--scopes="https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/notebook"
export ACCESS_TOKEN=$(gcloud auth application-default print-access-token)Create the notebook. This first request is copied from Google's REST example. The bearer token identifies the authorized user, the project header identifies the Cloud project and the JSON body supplies the title.
NOTEBOOK=$(curl -s -X POST "https://notebook.googleapis.com/v1/notebooks" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "x-goog-user-project: $PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{"display_name": "My Research"}')
Add a source. Think of the notebook title as the label on a folder and the returned name as its filing address. Google's example extracts that address and appends /sources to it. Run this in the same shell after the create request succeeds.
NOTEBOOK_NAME=$(echo "$NOTEBOOK" | python3 -c "import sys, json; print(json.load(sys.stdin)['name'])")
# 2. Add a source
curl -s -X POST "https://notebook.googleapis.com/v1/${NOTEBOOK_NAME}/sources" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "x-goog-user-project: $PROJECT_ID" \
-H "Content-Type: application/json" \
-d '{
"display_name": "Gemini API Guide",
"web_content": {"url": "https://ai.google.dev/gemini-api/docs"}
}'Creating a source starts processing it. Save the source's own name from the second response and use it with GetSource until the state reads ACTIVE or FAILED. For a weekly reading list, mark a paper as imported only at ACTIVE. If a colleague will read and question the resulting collection in the browser, the notebook workflow picks up there.
Generate an Audio Overview on Google Cloud
The consumer API accepts audio files as sources. Creating an Audio Overview is the reverse operation. The notebook uses sources to produce a recording. Google lists artifact generation and retrieving information from a notebook on the consumer API roadmap. A successful import therefore gives you a populated notebook, but neither a generated episode nor a chat answer from the preview API.

For a company briefing, ask your Cloud administrator to set up Gemini Notebook for business, assign your user a license and grant the Cloud NotebookLM User role (roles/discoveryengine.notebookLmUser). Authenticate the CLI as that licensed user with gcloud auth login. Cloud's notebook requests use the Discovery Engine endpoint and include your project number and location in the path. Keep the notebook ID you receive. Google Cloud’s Enterprise notebook instructions
Add the briefing documents using the Enterprise source methods. Then call notebooks.audioOverviews.create for that notebook. For a product launch briefing, you could select the release notes and customer FAQ with sourceIds, then use episodeFocus to ask for the changes support staff should know. Omitting the IDs includes every source in the notebook.
The create response reports AUDIO_OVERVIEW_STATUS_IN_PROGRESS. It doesn't contain a playable file. Google's documented verification step is to open the notebook's Studio and click Load. You can download the recording there. Each notebook holds one Audio Overview at a time, so decide whether to retain the old briefing before requesting its replacement. Creation succeeds only when there is no existing overview. Google Cloud’s audio creation and verification guide
If you already have a narration script and want those exact words spoken, Google AI Studio text to speech is the closer fit. If the deliverable is a conversation with a person about their sources, the notebook and ChatGPT comparison covers that choice.
When an unofficial Python library makes sense
Python can call Google's documented REST interface directly. Installing an unofficial library is a separate decision, usually prompted by a feature the consumer API hasn't exposed.
teng-lin/notebooklm-py is a community Python library whose maintainers list Audio Overview generation among its features. Its default web backend relies on undocumented Google interfaces. jacob-bd/gemini-notebook-mcp-cli is a separate community Python project offering a command-line client and an MCP server. Its maintainer documents internal calls and browser-cookie authentication. A cookie can carry the authority of a signed-in session, and a fully expired login can require someone to sign in again.
For a personal experiment, you can decide that repairing a broken script is an acceptable cost. For a Monday briefing promised to customers, a change to Google's web interface could stop the job even if your code hasn't changed. Choose the documented Enterprise method for that commitment. If a licensed business deployment is out of reach, compare alternatives by the job you need them to do.
- Published
- Category
- Build







