Drupal is a registered trademark of Dries Buytaert
drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)!

This module provides the ability to Read Data from a google Spreadsheet.

Requirements:

If you don't use composer to install this module you will need to manually install the google api client.

composer require google/apiclient:^2.0

To use this module you need to enable the private file system

Configuration

Please follow the steps described in the "Set up your environment" section of
https://developers.google.com/sheets/api/quickstart/js to enable the api

Then create a Service Account and a key. Upload the created json file in:
/admin/config/spreadsheets/spreadsheetscredentials

Set up the sheet_id, range and sheet from wich you want to extract the data in:
/admin/config/services/googlesheets

After this you can retrieve the data with:
Drupal::service('spreadsheets_sheets.base')->getData();

there is also the possibility to programatically changing this configurations with the methods:
setSheetId(string $id), setRange(string $range) and setSheetName(string $name)

Usages

This module is useful if you have the necessity to extract values from googelsheets. If you have a large file that is constantly changing it has two major advantages to uploading the file and parsing it after.

  • There wont be malformed files since you can define all the rules on the sheet itself wich ensures more integrity
  • The googlesheet will track all the changes for you in the revisions

One example could be a products sheet with prices and descriptions that can be used to create any kind of entities or nodes.

Activity

Total releases
1
First release
May 2026
Latest release
19 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.5 Stable May 29, 2026