Cloud Natural Language API
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations,…
AI & machine learning#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.
Endpoints 5
documents
- POSTFinds named entities (currently proper names and common nouns) in the text along with entity types, probability,…
/v2/documents:analyzeEntitiesFinds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties. - POSTAnalyzes the sentiment of the provided text.
/v2/documents:analyzeSentimentAnalyzes the sentiment of the provided text. - POSTA convenience method that provides all features in one call.
/v2/documents:annotateTextA convenience method that provides all features in one call. - POSTClassifies a document into categories.
/v2/documents:classifyTextClassifies a document into categories. - POSTModerates a document for harmful and sensitive categories.
/v2/documents:moderateTextModerates a document for harmful and sensitive categories.
API details
- Base URL
https://language.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 5 operations on 5 pathsPOST 5
- Main resources
- documents 5
- Response formats
application/json- Description format
- Google API Discovery, API version
v2 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Cloud Natural Language API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Cloud Natural Language API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Finds named entities (currently proper names and common nouns) in the text along with entity types, probability,…” (POST /v2/documents:analyzeEntities), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Cloud Natural Language API?
Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations,… It is listed under AI & machine learning and has 5 endpoints.
Who publishes the Cloud Natural Language API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Cloud Natural Language API?
Requests go to https://language.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Cloud Natural Language API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Cloud Natural Language API have?
5 operations on 5 paths (5 POST). The largest groups are documents.
Is forking the Cloud Natural Language API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.