Cloud Natural Language API

Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.

Service: language.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://language.googleapis.com

REST Resource: v2.documents

Methods
analyzeEntities POST /v2/documents:analyzeEntities
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
analyzeSentiment POST /v2/documents:analyzeSentiment
Analyzes the sentiment of the provided text.
annotateText POST /v2/documents:annotateText
A convenience method that provides all features in one call.
classifyText POST /v2/documents:classifyText
Classifies a document into categories.
moderateText POST /v2/documents:moderateText
Moderates a document for harmful and sensitive categories.

REST Resource: v1beta2.documents

Methods
analyzeEntities POST /v1beta2/documents:analyzeEntities
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
analyzeEntitySentiment POST /v1beta2/documents:analyzeEntitySentiment
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
analyzeSentiment POST /v1beta2/documents:analyzeSentiment
Analyzes the sentiment of the provided text.
analyzeSyntax POST /v1beta2/documents:analyzeSyntax
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
annotateText POST /v1beta2/documents:annotateText
A convenience method that provides all syntax, sentiment, entity, and classification features in one call.
classifyText POST /v1beta2/documents:classifyText
Classifies a document into categories.
moderateText POST /v1beta2/documents:moderateText
Moderates a document for harmful and sensitive categories.

REST Resource: v1.documents

Methods
analyzeEntities POST /v1/documents:analyzeEntities
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
analyzeEntitySentiment POST /v1/documents:analyzeEntitySentiment
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
analyzeSentiment POST /v1/documents:analyzeSentiment
Analyzes the sentiment of the provided text.
analyzeSyntax POST /v1/documents:analyzeSyntax
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
annotateText POST /v1/documents:annotateText
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
classifyText POST /v1/documents:classifyText
Classifies a document into categories.
moderateText POST /v1/documents:moderateText
Moderates a document for harmful and sensitive categories.