Samples

This section presents a set of sample applications and utilities that demonstrate how to translate an intended Docs action into an API request.

  • Output document contents as JSON: Outputs a JSON dump of the complete contents of a document—this can help you understand the structure of Google Docs files or troubleshoot issues.
  • Extract the text from a Document: Extracts only the text from a document—this is especially useful for passing the text to another service.
  • Mail merge: Mail merge documents from a template with data from a Google Sheet or plain text.

Codelabs