Text Analytics API

Detect sentiment, key phrases, topics, 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 "Analyze!".

See it in action
  1. Analyzed text
  2. JSON
Languages: English (confidence: 100 %)
Key phrases: staff, wonderful experience, rooms
Sentiment:
100 %
{
  "LanguageDetection": {
    "Documents": [
      {
        "Id": "1f2c3483-3c7a-471f-9c0e-23128db6ec67",
        "DetectedLanguages": [
          {
            "Name": "English",
            "Iso6391Name": "en",
            "Score": 1.0
          }
        ]
      }
    ],
    "Errors": []
  },
  "KeyPhrases": {
    "Documents": [
      {
        "Id": "1f2c3483-3c7a-471f-9c0e-23128db6ec67",
        "KeyPhrases": [
          "staff",
          "wonderful experience",
          "rooms"
        ]
      }
    ],
    "Errors": []
  },
  "Sentiment": {
    "Documents": [
      {
        "Id": "1f2c3483-3c7a-471f-9c0e-23128db6ec67",
        "Score": 0.994207643467917
      }
    ],
    "Errors": []
  }
}

By uploading data for this demo you agree that Microsoft may store it and use it to improve Microsoft services, such as making this API better. To help protect your privacy, we take steps to de-identify your data and keep it secure. We won’t 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. English, French, Spanish, and Portuguese text are supported, with 11 additional languages in preview.

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

Topic detection

This is a newly released API that returns the detected topics for a list of submitted text records. A topic is identified with a key phrase, which can be one or more related words. This API requires a minimum of 100 text records to be submitted, but is designed to detect topics across hundreds to thousands of records. Note that this API charges 1 transaction per text record submitted. The API is designed to work well for short, human-written text such as reviews and user feedback.

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 revolutionize the way people look at video"

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

Check out the other Cognitive Services APIs

Computer Vision API

Distill actionable information from images

Content Moderator

Automated image, text, and video moderation

Video API PREVIEW

Intelligent video processing

Video Indexer PREVIEW

Unlock video insights

Face API

Detect, analyze, organize, and tag faces in photos

Emotion API PREVIEW

Personalize 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.

Language Understanding Intelligent Service PREVIEW

Teach your apps to understand commands from your users

Bing Spell Check API

Detect and correct spelling mistakes in your app

Web Language Model API PREVIEW

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

Text Analytics API PREVIEW

Easily evaluate sentiment and topics to understand what users want

Translator Text API

Easily conduct machine translation with a simple REST API call

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

Bing Speech API

Convert speech to text and back again to understand user intent

Speaker Recognition API PREVIEW

Use speech to identify and authenticate individual speakers

Custom Speech Service PREVIEW

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

Recommendations API PREVIEW

Predict and recommend items your customers want

Knowledge Exploration Service PREVIEW

Enable interactive search experiences over structured data via natural language inputs

Entity Linking Intelligence Service API PREVIEW

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

Academic Knowledge API PREVIEW

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

QnA Maker API PREVIEW

Distill information into conversational, easy-to-navigate answers.

Custom Decision Service PREVIEW

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

Project Prague

Gesture based controls

Project Nanjing

Isochrones calculations

Project Johannesburg

Route logistics

Project Cuzco

Event associated with Wikipedia entries

Project Abu Dhabi

Distance matrix

Project Wollongong

Location insights

Ready to supercharge your app?