Entity and Sentiment Analysis with the Natural Language API | Qwiklabs

The Cloud Natural Language API lets you extract entities from text, perform sentiment and syntactic analysis, and classify text into categories.

In this lab, you learn how to use the Natural Language API to analyze entities, sentiment, and syntax.

What you'll learn

What you'll need

Create an API Key

Since you use curl to send a request to the Natural Language API, you must generate an API key to pass in your request URL.

To create an API key, in the Cloud Console, select Navigation menu > APIs & Services > Credentials.

https://cdn.qwiklabs.com/gKXW0dOf4CjxRQvqyeMPx7RzwYjvHJw3kolFap4rI2Y%3D

Click Create credentials and select API key:

https://cdn.qwiklabs.com/eHce11mfAlx01W6e0WnhzLWXRZXq0duS6ZZi2EsCr7g%3D

Copy the generated API key and click Close.