How to Access API
- Call the API url: https://api.kenzyai.com/?key=[api_key]&text=[text_string]
$key = "a366ab4cew1a819737ddb3f3c012efc6a35e90e4";
$text = "It is very helpful. Thank you for that.";
$url = "https://api.kenzyai.com/?key=" . $key . "&text=" . rawurlencode($text);
- This will give you the following JSON response:
{ "sentiment":"positive", "positivity":"100", "negativity":"0" }
- The API can support thousands of characters within a single API call. Our free API imposes a rate limit of 1,000 calls per day.
Results Explanation
- Sentiment: Overall sentiment of the analyzed text
- Positivity: Percentage of positive sentiment
- Negativity: Percentage of negative sentiment