FREE Sentiment Analysis ✌🏼 REST API for the community 🙏🏻

sharadcodes

Sharad Raj (He/Him)

Posted on April 30, 2020

FREE Sentiment Analysis ✌🏼 REST API for the community 🙏🏻

I've created a sentiment analysis REST API for the community ... Have a look

Link : https://sentim-api.herokuapp.com

How to use

Just send a POST request to

https://sentim-api.herokuapp.com/api/v1/
Enter fullscreen mode Exit fullscreen mode

with headers of

Accept: "application/json", 
"Content-Type": "application/json"
Enter fullscreen mode Exit fullscreen mode

and body

{ 
    "text": "Your text here"
}
Enter fullscreen mode Exit fullscreen mode

And you'll get response like this:

{
  "result": {
    "polarity": 0.11,
    "type": "positive"
  },
  "sentences": [
    {
      "sentence": "We have been through much darker times than these, and somehow each generation of Americans carried us through to the other side,\" he said.",
      "sentiment": {
        "polarity": 0.04,
        "type": "positive"
      }
    },
    {
      "sentence": "\"Not by sitting around and waiting for something to happen, not by leaving it to others to do something, but by leading that movement for change themselves.",
      "sentiment": {
        "polarity": 0,
        "type": "neutral"
      }
    },
    {
      "sentence": "And if you do that, if you get involved, and you get engaged, and you knock on some doors, and you talk with your friends, and you argue with your family members, and you change some minds, and you vote, something powerful happens.",
      "sentiment": {
        "polarity": 0.3,
        "type": "positive"
      }
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Enjoy 😎😎😎😎

💖 💪 🙅 🚩
sharadcodes
Sharad Raj (He/Him)

Posted on April 30, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related