Cloud Natural Language API
Cloud Natural Language API
Google Cloud Natural Language API provides text analysis — entity recognition, sentiment analysis, syntax parsing, content classification (multi-language).
Multi-language support (10+ major languages including English and Chinese)
Generic model — may miss industry-specific terminology
POST /v1/documents:analyzeSentiment for sentiment; analyzeEntities for entities; classifyText for content classification.
Uptime · 30-day window
About this API
Cloud Natural Language API is GCP's long-standing NLP service offering 5 core capabilities: sentiment (sentence and entity-level scoring), entity (people/places/orgs + knowledge-graph linking), syntax (dependency parsing + POS tagging), classification (700+ categories), moderation (inappropriate content detection). In the LLM era this API's positioning is awkward — many tasks can be done via GPT/Gemini prompts, often with higher quality. But Cloud Natural Language still has value in specific scenarios: bulk-task cost (per-character pricing much cheaper than LLMs), low latency (specialized model vs generic LLM), and predictable output (structured JSON vs LLM output variability).
What you can build
- 1Sentiment scoring for user reviews
- 2Auto-categorize news articles
- 3Extract entities (people, places, organizations)
- 4Keyword extraction for content recommendation
Strengths & limitations
Strengths
- Multi-language support (10+ major languages including English and Chinese)
- Multiple analyses in a single API call
- High-quality pre-training from Google large models
Limitations
- Generic model — may miss industry-specific terminology
- Cannot perform generative tasks (use Vertex AI / Gemini)
Example request
curl https://google.com/<endpoint>Getting started
POST /v1/documents:analyzeSentiment for sentiment; analyzeEntities for entities; classifyText for content classification.
FAQ
Is Chinese sentiment analysis accurate?+
Decent for everyday text (reviews, social media). For professional domains (finance, healthcare), recommend custom training.
How does it compare to Gemini?+
High volume + simple task + cost-sensitive: Language API. Complex understanding, context, generation: Gemini.
Technical details
- Auth type
- unknown
- Pricing
- unknown
- Protocols
- REST
- SDKs
- python, javascript, go, java, csharp
- Response time
- 43 ms
- Last health check
- 5/12/2026, 7:37:31 AM
More from Google
Google Workspace Admin SDK API programmatically manages Workspace organizations — users, groups, devices, domains, audit logs, organizational units.
Retrieve AdMob accounts, apps, ad units, ad sources, and generate mediation or network reports.
Work with AdSense Host accounts, ad clients, ad units, reports, and ad code generation from one API surface.
Programmatically manage Apigee organizations, API proxy deployments, attributes, certificates, and hybrid operations.
Google BigQuery API is the REST interface to GCP's flagship data warehouse — execute SQL queries, manage datasets/tables, stream inserts, and use built-in ML.
Control Binary Authorization attestors and policy checks for container images deployed to GKE and Anthos.
Fetch Business Profile location metrics, daily time series, and monthly search keyword impressions.
Google Calendar API lets apps create, read, and update calendar events programmatically — the go-to integration for scheduling apps.