Text Analytics API

Detect sentiment, key phrases and language from your text

Extract information from your text

Use the demo below to experiment with the Text Analytics API. Pick one of our examples or provide your own. Identify the language, sentiment and key phrases of your text by clicking "Analyse".

See it in action

  1. Analysed text
  2. JSON
Languages: English (confidence: 100%)
Key phrases: wonderful experience, staff, rooms
96 %
  "languageDetection": {
    "documents": [
        "id": "5ccd81f8-f14c-432e-9715-6e1f1ff3aaf2",
        "detectedLanguages": [
            "name": "English",
            "iso6391Name": "en",
            "score": 1.0
    "errors": []
  "keyPhrases": {
    "documents": [
        "id": "5ccd81f8-f14c-432e-9715-6e1f1ff3aaf2",
        "keyPhrases": [
          "wonderful experience",
    "errors": []
  "sentiment": {
    "documents": [
        "id": "5ccd81f8-f14c-432e-9715-6e1f1ff3aaf2",
        "score": 0.9552919864654541
    "errors": []

By uploading data for this demo, you agree that Microsoft may store it and use it to improve Microsoft services, including this API. To help protect your privacy, we take steps to de-identify your data and keep it secure. We shall not publish your data or let other people use it.

Want to build this?

Sentiment analysis

The API returns a numeric score between 0 and 1. Scores close to 1 indicate positive sentiment and scores close to 0 indicate negative sentiment. Sentiment score is generated using classification techniques. The input features of the classifier include n-grams, features generated from part-of-speech tags and word embeddings. It is supported in a variety of languages.

Learn more

Key phrase extraction

The API returns a list of strings denoting the key talking points in the input text.

We employ techniques from Microsoft Office's sophisticated Natural Language Processing toolkit. English, German, Spanish and Japanese text are supported.

Learn More

Language detection

The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported.

Learn more
Prism Skylabs

"We found Cognitive Services to be the missing piece in the equation, the one that we needed to bring this solution to market and really revolutionise the way people look at video"

Katie McCann: Vice President of Product and Engineering | Prism Skylabs

Explore the Cognitive Services APIs

Computer Vision API

Distill actionable information from images

Face API

Detect, identify, analyze, organise, and tag faces in photos

Content Moderator

Automated image, text and video moderation


Personalise user experiences with emotion recognition

Custom Vision Service PREVIEW

Easily customize your own state-of-the-art computer vision models for your unique use case

Video Indexer PREVIEW

Unlock video insights

Language Understanding (LUIS)

Teach your apps to understand commands from your users

Text Analytics API

Easily evaluate sentiment and topics to understand what users want

Bing Spell Check API

Detect and correct spelling mistakes in your app

Translator Text API

Easily conduct machine translation with a simple REST API call

Web Language Model API PREVIEW

Use the power of predictive language models trained on web-scale data

Linguistic Analysis API PREVIEW

Simplify complex language concepts and parse text with the Linguistic Analysis API

Translator Speech API

Easily conduct real-time speech translation with a simple REST API call

Speaker Recognition API PREVIEW

Use speech to identify and authenticate individual speakers

Bing Speech API

Convert speech to text and back again to understand user intent

Custom Speech Service PREVIEW

Overcome speech recognition barriers like speaking style, background noise and vocabulary

QnA Maker API

Distill information into conversational, easy-to-navigate answers

Knowledge Exploration Service

Enable interactive search experiences over structured data via natural language inputs

Custom Decision Service

A cloud-based, contextual decision-making API that sharpens with experience

Academic Knowledge API

Tap into the wealth of academic content in the Microsoft Academic Graph

Entity Linking Intelligence Service API

Power your app's data links with named entity recognition and disambiguation

Project Gesture

Gesture based controls

Project Knowledge Exploration

Previously called Knowledge Exploration Service API

Project Event Tracking

Event associated with Wikipedia entries

Project Academic Knowledge

Previously called Academic Knowledge

Project Local Insights

Location insights

Project Entity Linking

Previously called Entity Linking Intelligence Service API

Ready to supercharge your app?