๐Ÿง  BriefSum API ยท v1

Programmatic access to AI news, GitHub trending, topics & your account.

OpenAPI 3.1 spec ยท Manage keys in Account page

๐Ÿ” Authentication

Use an API key created in your Account page.

Authorization: Bearer bsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
# or via query string (less secure):
GET /api/news/list?api_key=bsk_xxxxxxxx...&limit=20

Keys start with bsk_, are shown exactly once on create, and can be revoked at any time.

๐Ÿงพ Plans & Access

Compare plans โ†’


๐Ÿ“ฐ Content endpoints (free for all, rate-limited)

GET/api/news/list?page=1&limit=20&category=ai
GET/api/news/detail/{id}
GET/api/github-repos?page=1&language=python
GET/api/trending/topics
GET/api/trending/history
GET/api/feed/mixed?limit=40
GET/api/search/all?q=llama+4

๐Ÿ‘ค User endpoints (require API key + paid plan)

GET/api/user/quota
GET/api/user/favorites
POST/api/user/favorite { collect_type, target_id }
DEL/api/user/favorite?collect_type=news&target_id=42
GET/api/user/preferences
PUT/api/user/preferences { display_name, followed_topics, ... }
GET/api/user/usage-history?days=14
GET/api/keywords
PUT/api/keywords { keywords:[...], frequency:'daily' }

๐Ÿ”‘ API key management

GET/api/user/api-keysPremium
POST/api/user/api-keys { name, scope:'read' }Premium
DEL/api/user/api-keys?id=123Premium

๐Ÿ’ก cURL examples

# Fetch the latest AI news:
curl -H "Authorization: Bearer bsk_xxx" \
  https://briefsum.com/api/news/list?limit=10

# Save a news item to your favorites:
curl -X POST -H "Authorization: Bearer bsk_xxx" \
  -H "Content-Type: application/json" \
  -d '{"collect_type":"news","target_id":42}' \
  https://briefsum.com/api/user/favorite

# Check your plan + quota:
curl -H "Authorization: Bearer bsk_xxx" \
  https://briefsum.com/api/user/quota

๐Ÿ“˜ SDKs

There is no official SDK yet; just use fetch or any HTTP client with the Bearer header above.

Read the full API documentation ยท Subscribe for a key