This section presents a set of sample applications and 'recipe' examples that demonstrate how to translate an intended Slides action into an API request.


The Slides Codelab teaches you how to use Google Slides API as a custom presentation tool for an analysis of the most common software licenses.

You’ll learn how to query all open source code on GitHub using BigQuery and create a slide deck using Slides API to present your results.

Sample applications

The Markdown to Slides command line tool lets you generate slide decks from markdown files.

You can use this to explore the slides API, or fork the repository and modify the code to provide Google Slides output to your JavaScript application.


The examples listed in this section demonstrate how to express common actions in Google Slides as Slides API requests.

These examples are presented in the form of HTTP requests to be language neutral. The Create a Slide, Merge Data into Slides, Add Text and Shapes, Add Charts, and the Style Text guides show examples of implementing Slide API request protocols in specific languages using the Google API client libraries.

Recipes in this section are divided into the following categories:

  • Basic Reading — Recipes that show common ways of reading information from a presentation.
  • Basic Writing — Recipes that show common ways of writing to a presentation.
  • Element Operations — Recipes that show common page element creation and editing tasks.
  • Presentation Operations — Recipes that show how to create and manipulate a presentation.
  • Slide Operations — Recipes that show how to create, move, and delete slides in a presentation.
  • Table Operations — Recipes that show how to create and edit tables within a slide.
  • Transform Operations — Recipes that show how to alter the size and positioning of elements within a slide.

There's often more than one way to complete a given task with the API. Use the batch method presentations.batchUpdate wherever possible to bundle multiple update requests into a single method call. This reduces client HTTP overhead, reduces the number of queries, minimizes the number of revisions on the presentation, and makes all the changes together atomically.

To further improve performance, use field masks when reading and updating presentations, pages, and page elements.

Send feedback about...