AI Sentiment Analysis API
Pricing
from $0.01 / 1,000 results
AI Sentiment Analysis API
Analyze text sentiment with AI. Emotion detection, key phrase extraction. Supports OpenAI GPT-4, Claude. Webhook Integration for Zapier, Make, n8n, or custom webhook.
Pricing
from $0.01 / 1,000 results
Rating
0.0
(0)
Developer
The Howlers
Maintained by CommunityActor stats
0
Bookmarked
9
Total users
1
Monthly active users
18 days ago
Last modified
Categories
Share
Sentiment Analysis API - AI-Powered Text Analysis
Analyze text sentiment using AI. Detect positive, negative, neutral tones with emotion detection, confidence scores, and key phrase extraction.
BYOK (Bring Your Own Key) -- you provide your own API credentials.
Before You Start
This actor requires your own API credentials to fetch real data.
Where to get your key: Your OpenAI API key for AI-powered sentiment analysis. If not provided, uses rule-based analysis.
Quick Start
Run with real data
{"texts": ["I love this product! It's amazing.","This service was terrible. Never again.","The weather is nice today."],"includeEmotions": true,"includeKeyPhrases": true,"includeTopics": false,"language": "auto","openaiApiKey": "YOUR_API_KEY_HERE","anthropicApiKey": "YOUR_API_KEY_HERE","model": "auto"}
Input Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
texts | array | - | No | Array of texts to analyze for sentiment. Each text will be analyzed separately. |
text | string | - | No | Single text to analyze (use this OR texts array, not both) |
includeEmotions | boolean | true | No | Detect specific emotions (joy, anger, sadness, fear, surprise, disgust) |
includeKeyPhrases | boolean | true | No | Extract key phrases that influenced the sentiment |
includeTopics | boolean | false | No | Detect topics/subjects mentioned in the text |
language | string | "auto" | No | Language of the input text (auto-detect if not specified) |
openaiApiKey | string | - | Yes* | Your OpenAI API key for AI-powered sentiment analysis. If not provided, uses rule-based analysis. |
anthropicApiKey | string | - | Yes* | Your Anthropic API key for Claude-powered sentiment analysis. Used if OpenAI key not provided. |
model | string | "auto" | No | Which AI model to use for analysis |
webhookUrl | string | - | No | URL to receive a POST request when analysis is complete |
Pricing
This actor uses pay-per-event billing:
| Event | Description | Price |
|---|---|---|
| Text Analyzed | Each text analyzed for sentiment | $0.02 |
Troubleshooting
"API key is required"
- Add your API key in the input
"API error 403" or "Unauthorized"
Your API key is invalid, expired, or doesn't have access to this specific API endpoint. Double-check your key and account permissions.
"API error 429" or "Rate limit"
Too many requests. Wait a minute and try again, or reduce the number of items per run.
No results or empty dataset
Check the run log for error messages. Common causes:
- Invalid input format (check the examples above)
- API key without proper permissions
- The target data doesn't exist or is too small to track
How do I test without an API key?
Built by John Rippy | Actor Arsenal
