Static JSON endpoints for weekly trend analysis, source coverage, and daily stats.
GET https://tagtaly.com/api/v1/
| Path | Description | Response |
|---|---|---|
| /stats-YYYY-MM-DD.json | Daily stats (sources, topics, sentiment) | Object |
| /stats-daily.json | Latest daily stats | Object |
| /articles-topic-*.json | Top articles for a topic | List |
| /articles-source-*.json | Top articles for a source | List |
| /articles-recent.json | Recent articles across all sources | List |
| /trends-1d.json | Topic trends for 1 day | List |
| /trends-7d.json | Topic trends for 7 days | List |
| /trends-14d.json | Topic trends for 14 days | List |
| /trends-30d.json | Topic trends for 30 days | List |
| /index.json | API index and metadata | Object |
fetch('https://tagtaly.com/api/v1/stats-daily.json')
.then(res => res.json())
.then(data => console.log(data));
{
"metadata": { "api_version": "v1", "generated_at": "2025-12-08T12:00:00Z" },
"date": "2025-12-08",
"article_count": 120,
"sources": [ { "source": "BBC", "count": 32 } ],
"topics": [ { "topic": "Politics", "count": 18, "avg_sentiment": 0.12 } ],
"sentiment": { "positive": 42.5, "neutral": 38.3, "negative": 19.2 }
}
{
"metadata": { "api_version": "v1", "generated_at": "2025-12-08T12:00:00Z" },
"topic": "Politics",
"article_count": 50,
"articles": [
{ "headline": "Example headline", "source": "BBC", "viral_score": 12.4 }
]
}
{
"metadata": { "api_version": "v1", "generated_at": "2025-12-08T12:00:00Z" },
"period_days": 7,
"topics": [
{ "topic": "Politics", "current_count": 82, "previous_count": 60, "percent_change": 36.7 }
]
}
No API key is required. Endpoints are read-only and public.
CORS is enabled for all origins. You can call the API directly from browser-based apps.
API responses are versioned by URL path. We maintain backward compatibility for /api/v1/ with additive-only changes. Breaking changes will ship on a new major version (e.g. /api/v2/) with a 12-month deprecation notice.
Daily stats files cover the last 30 days and are regenerated daily. Historical data is retained indefinitely in the database. Trend endpoints provide analysis windows of 1 day, 7 days, 14 days, and 30 days as separate files.
Standard access: 60 requests per minute. Contact us for higher limits.
Free for non-commercial projects.
Custom pricing for newsroom and enterprise use.
Dedicated SLAs and custom datasets.