Client Libraries

This page lists the client libraries that you can use to access the Google Cloud Datastore API in different languages.

The Datastore API is built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.

However, instead of creating HTTP requests and parsing responses manually, you may want to use the Google APIs client libraries. The client libraries provide better language integration and support for making calls that require user authorization.

The following table lists the Google API client libraries that you can use to access the Datastore API.

If your application is not hosted on Google App Engine

The recommended way to integrate Google Cloud services, including Cloud Datastore, with your application is to use the Google Cloud Client Libraries. They are built specifically for the Google Cloud Platform to provide an idiomatic API surface, and they are designed for ease of use.

Language Library
Go Google Cloud Client Library for Go
Java Google Cloud Client Library for Java
Node.js Google Cloud Client Library for Node.js
Python Google Cloud Client Library for Python
Ruby Google Cloud Client Library for Ruby

If your application is hosted on Google App Engine

Integrate Cloud Datastore with your App Engine applications by using the App Engine client libraries.

Language Library
Go Google App Engine SDK for Go
Java Google App Engine SDK for Java
Python Google Datastore NDB Client Library

Third-party Datastore API client libraries

In addition to the Google-supported client libraries listed in the tables above, a set of third-party libraries are available.

Language Library
Java Objectify
Java Twig
PHP Datastore Library for PHP

Other ways to access the API

You can access the Datastore API using APIs Explorer, which is an interactive tool that lets you easily try out Google APIs right from your browser.