Important: There is a newer version of this product and documentation. You are currently viewing the v1beta1 Recommendations Engine API documentation, which remains available but will no longer be updated.

See Migrating to the Retail API from beta in the new documentation.

Recommendations AI client libraries

Stay organized with collections Save and categorize content based on your preferences.

This page shows how to get started with the Cloud Client Libraries for the Recommendations AI API. Read more about the client libraries for Cloud APIs, including the older Google API Client Libraries, in Client Libraries Explained.

Install the client library

Java

For more information, see Setting Up a Java Development Environment.

See the GitHub README for details about this client library's requirements and install dependencies.

PHP

For more information, see Using PHP on Google Cloud.

See the GitHub README for details about this client library's requirements and install dependencies.

Python

For more information, see Setting Up a Python Development Environment.

See the GitHub README for details about this client library's requirements and install dependencies.

Set up authentication

When you use client libraries, you use Application Default Credentials (ADC) to authenticate. For information about setting up ADC, see Provide credentials for Application Default Credentials. For information about using ADC with client libraries, see Authenticate using client libraries.

Additional resources