# Enable the API

This page explains how to enable the Recommender API. Enabling the API
is required in order to view and manage recommendations and insights using the
[`gcloud`](https://docs.cloud.google.com/sdk/gcloud/reference/recommender) and
[REST](https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.recommenders.recommendations.md.txt)
interfaces.

To enable the Recommender API:

### gcloud

1. If you don't already have a Google Cloud project, [create one](https://docs.cloud.google.com/resource-manager/docs/creating-managing-projects.md.txt#creating_a_project)
   now.

2. Set the default project, where <var translate="no">PROJECT_ID</var> is the ID of your
   project:

   ```
   gcloud config set project PROJECT_ID
   ```
3. Enable the required APIs:

   ```
   gcloud services enable recommender.googleapis.com
   ```

### console


<br />