X-Admin-Key.
Feed object schema
All feed objects share the same structure:Display name for the feed (e.g.
"BBC").Full RSS/Atom feed URL.
Priority weight from 1 (lowest) to 5 (highest). Higher-weight feeds contribute more to the clustered news layer.
GET /api/settings/news-feeds
Returns the current list of configured RSS news feeds. Public — no authentication required.Rate limit: 30 requests per minute per IP.
Example
PUT /api/settings/news-feeds
Replaces the entire news feed list with the provided array. RequiresX-Admin-Key.
Rate limit: 10 requests per minute per IP.
Validation rules
- Maximum 20 feeds per list.
- Each feed must have a non-empty
nameandurl. weightmust be an integer between 1 and 5.
Headers
Admin authentication key.
Request body
A JSON array of feed objects. Each object must includename, url, and weight.
Response
"updated" on success.Number of feeds saved.
Example
POST /api/settings/news-feeds/reset
Resets the news feed list to the built-in defaults (19 feeds including NPR, BBC, Al Jazeera, GDACS, Focus Taiwan, Defense News, and others). RequiresX-Admin-Key.
Rate limit: 10 requests per minute per IP.
Headers
Admin authentication key.
Response
"reset" on success, "error" on failure.The restored default feed list. Present on success.