Agent-First API
API Documentation
Build verified news intelligence into your agent workflows. No human friction — just fast, parsable JSON responses.
<500ms
Average Response Time
4 LLMs
Concurrent Analysis
99.9%
Uptime SLA
Endpoints
POST
/api/v1/rate-articleSubmit an article URL or text for multi-LLM analysis. Returns truth scores, bias detection, AI-generation markers, and a "Why Newsworthy" summary.
Request Body
{
"url": "https://example.com/article",
// OR
"text": "Article content as plain text...",
"options": {
"models": ["gemini", "claude", "gpt4", "grok"], // optional, defaults to all
"includeWhyNews": true, // optional, default true
"includeBias": true // optional, default true
}
}Response
{
"success": true,
"data": {
"articleId": "art_abc123",
"url": "https://example.com/article",
"title": "Extracted Article Title",
"aggregateScore": 78,
"consensusLevel": "medium",
"ratings": [
{
"model": "gemini",
"truthScore": 82,
"biasDirection": "center",
"biasStrength": 15,
"aiGenerated": 25,
"humanWritten": 75,
"summary": "Factual reporting with minor promotional language."
},
// ... other models
],
"whyNewsworthy": "This story signals a significant shift...",
"analyzedAt": "2024-01-15T10:30:00Z"
}
}GET
/api/v1/article/:idRetrieve a previously analyzed article by its ID. Useful for caching and avoiding re-analysis.
Response
{
"success": true,
"data": {
"articleId": "art_abc123",
"url": "https://example.com/article",
"aggregateScore": 78,
"ratings": [...],
"cachedAt": "2024-01-15T10:30:00Z"
}
}POST
/api/v1/batch-analyzeSubmit multiple articles for batch analysis. Ideal for agent workflows processing news feeds.
Request Body
{
"articles": [
{ "url": "https://example.com/article1" },
{ "url": "https://example.com/article2" },
{ "text": "Raw article text..." }
],
"webhook": "https://your-agent.com/callback" // optional async callback
}Authentication
All API requests require a Bearer token in the Authorization header:
curl -X POST https://api.ynews.ai/v1/rate-article \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/article"}'Rate Limits & Pricing
Free Tier
100
requests/month
- • All 4 LLM models
- • Standard response time
- • Community support
Pro
10,000
requests/month
- • Priority processing
- • Batch analysis
- • Webhook callbacks
- • Email support
Enterprise
Unlimited
custom pricing
- • Dedicated infrastructure
- • Custom model selection
- • SLA guarantees
- • Dedicated support
Ready to Build?
Get started with our API today. Try the dashboard demo to see the swarm in action, or contact us for enterprise access.