for osmike friends
The open API
Everything on this site is available as JSON, no key needed, CORS open. Base URL https://socialmediatrends-api.osmike.com. Interactive docs at /docs.
Endpoints
| GET | Returns |
|---|---|
/v1/hot?window=12h&category=space&limit=20 | start here: the hottest ready trends, compact fields (English title, summary, why, category, importance, links). Filters: category, section, platform, region, q |
/v1/board?window=2h®ion=SE | the front page: cross-platform hits + top trends per platform |
/v1/trends?window=&platform=®ion=§ion=&category=&q=&tone=&limit=&offset= | ranked trends inside a window |
/v1/trends/{id}?window=7d | one trend: summary, rank timeline, evidence posts, the same term on other platforms |
/v1/everywhere?window= | terms trending on two or more platforms |
/v1/search?q=&window= | full-text search over trends and repos |
/v1/repos?window=7d&language=&q= ยท /v1/repos/{owner}/{name} | the AI page: repos people talk about, explained |
/v1/platforms ยท /v1/sections ยท /v1/categories ยท /v1/regions ยท /v1/windows | the catalogues |
/v1/feed.json ยท /v1/feed.rss | feeds of the current window |
/v1/status ยท /health | pipeline health |
Windows: 30m, 2h, 6h, 12h, 1d, 3d, 7d, 14d, 30d. Every list answer says which window it used.
Every response is {"ok": true, ...}; errors are {"ok": false, "error": "..."} with a real status code.
Examples
curl -s "https://trends-api.osmike.com/v1/hot?window=12h&category=space" | jq '.items[] | [.title, .why]'
curl -s "https://trends-api.osmike.com/v1/hot?window=1d§ion=war&limit=5" | jq '.items[].summary'
curl -s "https://socialmediatrends-api.osmike.com/v1/trends?window=6h§ion=technology&limit=10" | jq '.trends[] | [.platform, .title, .why]'
curl -s "https://socialmediatrends-api.osmike.com/v1/search?q=openai&window=3d" | jq '.trends | length'
curl -s "https://socialmediatrends-api.osmike.com/v1/repos?window=7d&limit=5" | jq '.repos[] | {name: .full_name, why: .why}'
What a /v1/hot item looks like
| field | meaning |
|---|---|
id, page | our id and the page for it on this site |
title, original_title | English headline (written by AI), and the source's original title |
summary, why | our 40-90 word news summary, and one sentence on why it is trending now |
section, category | slugs from the catalogues below, same taxonomy as news.osmike.com |
importance | 0 to 3: none, niche, national or one field, major international story |
newsworthy | 0 to 1: probability a news editor would run it; everything here is ≥ 0.35 |
tone, entities | neutral, positive, negative or mixed; up to five people, organisations, places or products |
platform, region, source_url, last_seen | where it was seen, the link out, and when we last saw it (UTC) |
Categories you can filter by
world ยท politics ยท us_politics ยท eu_politics ยท elections ยท diplomacy ยท united_nations ยท immigration ยท human_rights ยท crime ยท law_crime ยท defense ยท religion ยท war ยท ukraine ยท middle_east ยท sudan ยท terrorism ยท nuclear ยท business ยท markets ยท finance ยท economy ยท personal_finance ยท startups ยท crypto ยท real_estate ยท retail ยท banking ยท labor ยท technology ยท ai ยท cybersecurity ยท gadgets ยท software ยท internet ยท mobile ยท robotics ยท semiconductors ยท science ยท space ยท physics ยท biology ยท space_policy ยท environment ยท climate ยท energy ยท wildlife ยท weather ยท oceans ยท health ยท medicine ยท mental_health ยท nutrition ยท fitness ยท pandemics ยท sports ยท football ยท soccer ยท basketball ยท baseball ยท tennis ยท cricket ยท golf ยท motorsport ยท olympics ยท entertainment ยท film ยท television ยท music ยท gaming ยท art ยท books ยท celebrity ยท theatre ยท food ยท travel ยท fashion ยท autos ยท home_garden ยท parenting ยท education
Sections: world ยท war ยท business ยท technology ยท science ยท environment ยท health ยท sport ยท culture ยท life. Platforms: x reddit hn bluesky mastodon google github youtube news. Regions are ISO country codes or global; see /v1/regions for what has data.
Pushing trends in
Partners with a logged-in door to a platform can push items: POST /v1/ingest/{platform} with Authorization: Bearer <token> and body {"region": "SE", "items": [{"title": "...", "rank": 1, "volume": 12000, "url": "...", "posts": [...]}]}. Ask for a token.
What we store and show
The name of a trend, where and when it trended, its rank over time, a short attributed snippet of a post or headline with a link back, and our own AI-written summary. Never a full post, never an article body. Same rule as MikeNews.