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 "Analyse!".

See it in action

  1. Analysed text
  2. JSON
Languages: English (confidence: 100%)
Key phrases: wonderful experience, staff, rooms
100 %
  "languageDetection": {
    "documents": [
        "id": "6d6c0ca9-1ba0-40b5-bc14-1234e572fc18",
        "detectedLanguages": [
            "name": "English",
            "iso6391Name": "en",
            "score": 1.0
    "errors": []
  "keyPhrases": {
    "documents": [
        "id": "6d6c0ca9-1ba0-40b5-bc14-1234e572fc18",
        "keyPhrases": [
          "wonderful experience",
    "errors": []
  "sentiment": {
    "documents": [
        "id": "6d6c0ca9-1ba0-40b5-bc14-1234e572fc18",
        "score": 0.99979335069656372
    "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. 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 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

Cost-effective moderation of text, image and video content


Personalise experiences with emotion recognition


Intelligent video processing produces stable video output, detects motion, creates intelligent thumbnails and detects and tracks faces

Custom Vision Service PREVIEW

A customisable web service that learns to recognise specific content in imagery

Video Indexer PREVIEW

Search, edit, analyse and learn from your videos

Language Understanding Intelligent Service PREVIEW

Teach your apps to understand commands from your users

Text Analytics API PREVIEW

Easily evaluate sentiment and topics to understand what users want

Bing Spell Check API

Help users correct spelling errors, recognise the difference among names, brand names and slang, as well as understand homophones as they are typing

Translator Text API

Easily conduct real-time text 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

Conduct real-time speech translations

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

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

Recommendations API PREVIEW

Predict and recommend items your customers want

Academic Knowledge API PREVIEW

Tap into academic content in the Microsoft Academic Graph

Knowledge Exploration Service PREVIEW

Enable interactive search experiences over structured data via natural language inputs.


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

Entity Linking Intelligence Service API PREVIEW

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

Custom Decision Service PREVIEW

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

Project Prague

Gesture based controls

Project Cuzco

Event associated with Wikipedia entries

Project Nanjing

Isochrones calculations

Project Abu Dhabi

Distance Matrix

Project Johannesburg

Route logistics

Project Wollongong

Location insights

Ready to supercharge your app?