Calculate Rating from Review API
Follow on Github

Test API


Get Started

Call the API in your code by using API url, set a post variable named as review and set the review to this variable.

API URL

https://www.goprogs.com/api/reviews-to-rating/calculate-rating.php?action=calculate

Action "POST"

Parameter "review"

Example test of API in php

Input review="The quality of this product is excellent"

Output [{"Positive":10,"Negative":0}]


How it works?

Calculate rating form review algorithm is a simple web API algorithm which accept a rating string from post method by API call from any programming or scripting language and return the positive and negative points of the the review, if review does not contain any negative word then the negative points will be zero and similarly if it doesn't contain any positive word than the positive points will be zero the rating points are out of 10.