The Google Sheets API is built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.
However, the Google API client libraries provide better language integration, improved security, and support for making calls that require user authorization. The client libraries are available in several programming languages; by using them you can avoid the need to manually set up HTTP requests and parse the responses.
To get started, select the programming language that you're using for development.
Go
Get the latest Google Sheets API client library for Go (alpha). Read the client library's developer's guide.
Java
This page contains information about getting started with the Google Sheets API by using
the Google API Client Library for Java. For more information, see the following documentation: Select your build environment (Maven or Gradle) from the following tabs:
Add the following to your Add the following to your Add the client library to your project
pom.xml
file:build.gradle
file:
JavaScript
Read the client library's developer's guide.
.NET
This page contains information about getting started with the Google Sheets API by using
the Google API Client Library for .NET. For more information, see the following documentation: Install the NuGet package:
Google.Apis.Downloading the library
Node.js
Get the latest Google Sheets API client library for Node.js. Read the client library's developer's guide.
Obj-C
Get the latest Google Sheets API client library for Objective-C. Read the client library's developer's guide.
PHP
Get the latest Google Sheets API client library for PHP. Read the client library's developer's guide.
Python
This page contains information about getting started with the Google Sheets API by using
the Google API Client Library for Python. For more information, see the following documentation: You can either use a package manager or manually download and install the Python client library: Use pip or setuptools to manage your installation. You might
need to run Because the Python client libraries aren't installed in the
App Engine Python runtime environment,
you must
copy them into your application just like third-party libraries.System requirements
Install the client library
Managed install
sudo
first.
pip install --upgrade google-api-python-client
easy_install --upgrade google-api-python-client
Manual install
python setup.py install
App Engine
Ruby
This page contains information about getting started with the Google Sheets API by using
the Google API Client Library for Ruby. For more information, see the following documentation:
Depending on your system, you might need to prepend these commands with
If you haven't installed the Google API Client Library for Ruby before, install by using Install the
google-api-client
gemsudo
.
RubyGems
:
gem install google-api-client
If you already have the gem installed, update to the latest version:
gem update -y google-api-client
Get started with the Google API Client Library for Ruby
To learn how to make your first request, see the Get started guide.