Use this file to discover all available pages before exploring further.
Enhance your social media data with AI-powered analysis. ML enrichment can be applied to any content-fetching endpoint or used directly via the /ml/analyze endpoint.
Use the /ml/analyze endpoint for standalone text analysis:
curl -X POST "https://data-api.deepdiveplatform.com/api/v1/ml/analyze" \ -H "X-API-Key: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "texts": [ "I love this product! Best purchase ever!", "This is terrible. Want a refund.", "How do I contact support?" ], "analyses": ["sentiment", "intent"] }'
Response:
{ "success": true, "data": { "results": [ { "text": "I love this product! Best purchase ever!", "sentiment": "positive", "sentiment_score": 0.95, "intent": "praise" }, { "text": "This is terrible. Want a refund.", "sentiment": "negative", "sentiment_score": 0.12, "intent": "complaint" }, { "text": "How do I contact support?", "sentiment": "neutral", "sentiment_score": 0.48, "intent": "question" } ] }, "metadata": { "credits_used": 6, "enrichments": ["sentiment", "intent"] }}