Skip to main content

Enable the Google Cloud Natural Language API

It’s now time to start bringing in another Google Cloud product, Natural Language API, that will allow us to fetch the sentiment of the comments left on the cakes in the web app.

  1. The first thing you want to do is to enable the Natural Language API. Search for Natural Language API and select it from the list under Marketplace.

    Select project dropdown in Google Cloud
  2. Click the Enable button so you can start using it within our project.

  3. This will take you to the Natural Language API page for your project. You will need to generate an API key to use, so select Credentials from the left-hand menu.

    Select project dropdown in Google Cloud
  4. Click Create Credentials at the top of the browser window and select API Key from the dropdown box to generate a key.

  5. Copy the API key that has been generated for you. You will use it to authenticate our requests to the Natural Language API in the following section.