API & Tracking Reference

The Aevum News Developer Platform provides programmatic access to our real-time news feed, audience analytics, event tracking, and conversion APIs. Integrate seamlessly with your CMS, ad tech stack, or internal data pipelines.

BASE URL
https://api.aevumnews.com/v2
All API requests must use HTTPS. Legacy v1 endpoints are deprecated as of 2025-06-01.

Core Capabilities

  • Real-time news content delivery with regional/localized filtering
  • Audience event tracking (views, scrolls, shares, dwell time)
  • Server-to-server conversion & attribution reporting
  • Webhook delivery for live content updates and analytics events
  • Rate-limited public endpoints and authenticated commercial tiers

Authentication

All authenticated endpoints require a Bearer token issued via your developer dashboard. Tokens are scoped to specific keys and cannot be shared publicly.

AUTH
POST /v2/auth/token

Exchange your API Key & Secret for a short-lived Bearer token (15min TTL).

curl -X POST https://api.aevumnews.com/v2/auth/token \
  -H "Content-Type: application/json" \
  -d '{"api_key": "ak_live_x8f9s...", "api_secret": "sk_live_9d2k..."}'
const response = await fetch('https://api.aevumnews.com/v2/auth/token', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    api_key: 'ak_live_x8f9s...',
    api_secret: 'sk_live_9d2k...'
  })
});
const { access_token, expires_in } = await response.json();

Note: Store tokens server-side only. Client-side exposure violates our security policy and will result in immediate key revocation.

Event Tracking API

Track reader behavior across web and mobile environments. Events are processed in real-time and available via dashboard and webhooks.

POST
/v2/events
Batch or single event submission. Supports web, mobile, and server-side SDKs.

Request Body Schema

FieldTypeRequiredDescription
event_namestringYesCanonical event identifier (e.g., article_view, share_click)
user_idstringOptionalAuthenticated user identifier. Falls back to session_id if missing
session_idstringYesUUID generated on page load
propertiesobjectOptionalKey-value metadata (article_id, category, referrer, etc.)
timestampISO 8601YesUTC timestamp of event occurrence
curl -X POST https://api.aevumnews.com/v2/events \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{
    "event_name": "article_view",
    "session_id": "sess_7f8a9b",
    "timestamp": "2025-07-14T08:23:11Z",
    "properties": { "article_id": "aev_9921", "category": "technology", "read_duration_sec": 142 }
  }'
fetch('https://api.aevumnews.com/v2/events', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + TOKEN,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    event_name: 'article_view',
    session_id: 'sess_7f8a9b',
    timestamp: new Date().toISOString(),
    properties: { article_id: 'aev_9921', category: 'technology', read_duration_sec: 142 }
  })
});

Content Feed API

Retrieve curated news articles with filtering by region, category, publication time, and freshness. Supports pagination and etag caching.

GET
/v2/content/feed
Returns paginated article objects optimized for programmatic consumption.

Query Parameters

ParamTypeDescription
regionstringISO 3166-1 alpha-2 code (e.g., US, EU, APAC)
categorystringFilter by slug: politics, tech, business, science, culture
limitintegerMax results per page (default: 20, max: 100)
cursorstringPagination cursor from previous response
etagstringIf-None-Match header for cache validation

Response Schema

FieldTypeDescription
idstringUnique article identifier
headlinestringHTML-safe title string
slugstringSEO-friendly URL path
summarystringExecutive paragraph (max 280 chars)
published_atISO 8601UTC publication timestamp
authorobjectAuthor name, avatar, and bio_url
categorystringPrimary classification slug

Tracking & Pixel Integration

Deploy Aevum News tracking across your properties using the JavaScript SDK or server-side pixel. Enables cross-domain attribution, audience segmentation, and real-time analytics.

Privacy Compliance: All tracking respects GDPR, CCPA, and IAB TCF 2.0. Configure consent modes via the dashboard before deployment.

JavaScript SDK Setup

<script src="https://cdn.aevumnews.com/tracking/v2/aevum-track.min.js"></script>
<script>
  AevumTrack.init({
    publisher_id: 'pub_aev_8821',
    region: 'global',
    consent_mode: 'granted',
    debug: false
  });
  AevumTrack.identify({ uid: 'user_1293', email_hash: 'sha256(...)' });
</script>
// Track custom actions
AevumTrack.track('newsletter_signup', {
  source: 'article_footer',
  tier: 'premium'
});

// Page view (auto-tracked, but can override)
AevumTrack.pageView({
  article_id: 'aev_9921',
  dwell_time_ms: 42000,
  scroll_depth: 0.85
});

Webhooks & Delivery

Receive real-time payloads for content publication, tracking events, and system alerts. Configure endpoints in your developer dashboard.

POST
/v2/webhooks
Register or update your delivery endpoint URL.

Event Types

EventTriggerPayload Keys
content.publishedNew article goes livearticle_id, headline, category, published_at
tracking.conversionGoal completionuser_id, session_id, goal_slug, value
tracking.alertAnomaly or threshold breachmetric, current_value, threshold, region
system.statusAPI maintenance/rollouttype, message, effective_from, resolved_at

Webhook Signature Verification

Aevum signs all webhook payloads using HMAC-SHA256. Verify using the X-Aevum-Signature header and your webhook secret.

const crypto = require('crypto');
const sig = req.headers['x-aevum-signature'];
const payload = JSON.stringify(req.body);
const expected = crypto.createHmac('sha256', WEBHOOK_SECRET).update(payload).digest('hex');
if (sig !== expected) throw new Error('Invalid signature');

Session Tracking

Aevum automatically generates anonymous session identifiers via first-party cookies or URL parameter fallback. Sessions persist across subdomains within your configured domain scope.

  • Auto-captured: page_load, scroll_depth, back_button, share_click
  • Custom properties merged via AevumTrack.setSessionProperties()
  • Session TTL: 30 minutes of inactivity

Conversion API

Server-to-server conversion tracking for offline or high-value actions. Bypasses browser restrictions and improves attribution accuracy.

POST
/v2/conversions
Push matchable event data with hashed PII for secure matching.

Matchable Fields

FieldEncodingRequired
emailSHA-256 hexOptional
phoneE.164 formatOptional
first_namelowercase trimOptional
last_namelowercase trimOptional
conversion_valuefloatYes
currencyISO 4217Yes

SDKs & Libraries

Official client libraries for rapid integration. Community wrappers available on npm, pypi, and go modules.

JavaScript
v2.4.1
Python
v1.8.0
Go
v0.9.3
Swift
v1.2.0

Rate Limits

API tiers enforce request throttling to ensure platform stability. Exceeded limits return 429 Too Many Requests with Retry-After header.

TierRequests/minBatch MaxRetention
Free6010 events7 days
Developer30050 events30 days
Enterprise1,200Unbounded90 days

API Status

Uptime (30d)
99.98%
Avg Latency
42ms
Active Regions
6
Incidents (24h)
0

Monitor live status and historical incidents at status.aevumnews.com

Developer Support

Need integration help, custom endpoints, or enterprise SLAs? Our API team reviews submissions within 24 business hours.

© 2025 Aevum News. API documentation v2.4. All rights reserved. Usage subject to Developer Terms and Data Processing Agreement.