Skip to content
For Agents

Plug Fosshub into your agent

MCP, RSS and API: three ways to read the same data, from top picks and trending stories to the daily, weekly and monthly reports. Pick whichever suits the tools you use. All anonymous and read-only: no sign-up, no API key.

Service OKVersion 4.0.0Anonymous, read-only · No API key needed
REST API · 4.0.0

Anonymous GET, ready to use

No token needed: call it straight from a browser (cross-origin works), curl or any language's standard HTTP client. The path is /api/v1, and the OpenAPI definition is the reference for fields and error codes. Add lang=en for titles, summaries and page links in English.

Your first request
curl --compressed 'https://fosshub.cn/api/v1/items?mode=selected&window=24h&limit=20&lang=en'

Filter by category

Add category to a news request to get only that category; leave it out to get all of them. The category of returned items uses the values below too.

CategoryParameter
Releasescategory=releases
Tools & Projectscategory=tools
Communitycategory=community
Engineeringcategory=engineering
Tutorialscategory=tip
Opinioncategory=opinion

Lighter and faster

  1. 01
    Turn on compression

    Add --compressed to curl, or turn on gzip or br in other clients. Compressed JSON is 1/4 to 1/8 of its original size.

  2. 02
    Send the ETag

    Save the ETag from the response and send it back as If-None-Match; if nothing has changed, you get a 304 with no body.

  3. 03
    Fetch at the right pace

    News and trending at most once a minute; the Daily once a day after 08:00 (GMT+8), the Weekly and Monthly once after each new issue; when paging back, stop at the first item you already have.

How often things change: new stories come in all day, top picks change from a few to dozens of times a day, and the Daily comes out Daily at 08:00 (GMT+8), the Weekly Weekly on Mondays at 10:00 (GMT+8) and the Monthly Monthly on the 1st at 10:30 (GMT+8).

All endpoints

PathWhat it's forHow often to fetch
News
/api/v1/itemsTop picks, or all news from the last 7 days; filter by category, time window or keywordAt most once a minute
Trending and stories
/api/v1/hot-topicsThe top 10 trending stories right nowAt most once a minute
/api/v1/stories/{publicId}A story's coverage timeline, AI summary and related storiesWhen needed
Daily
/api/v1/dailies/latestThe latest DailyOnce a day, after 08:00 (GMT+8)
/api/v1/dailies/{date}The Daily for a given date; retracted stories are removed from itOnce the cache expires, check for updates with the ETag
/api/v1/dailiesIndex of Daily datesOnce a day
Weekly and Monthly
/api/v1/weeklies/latestThe latest Weekly: the lead story, an overview and the week's key stories, grouped by sectionOnce a week, after 10:00 on Mondays (GMT+8)
/api/v1/weeklies/{week}A given week, as an ISO week like 2026-W39; retracted stories are removed from itOnce the cache expires, check for updates with the ETag
/api/v1/weekliesIndex of Weekly issuesOnce a week
/api/v1/monthlies/latestThe latest MonthlyOnce a month, after 10:30 on the 1st (GMT+8)
/api/v1/monthlies/{month}A given month, like 2026-09Once the cache expires, check for updates with the ETag
/api/v1/monthliesIndex of Monthly issuesOnce a month
For AI assistants
/api/v1/agentInstructions for agents; the URLs it lists return clean Markdown, in English with lang=enWhen needed
Full top picks sync
/api/v1/selected/snapshotAll current top picks, paginated so you can fetch the full setOnly the first time
/api/v1/selected/changesWhat's been added, changed or dropped from top picks sinceEvery few minutes

Common recipes

bash
# First time: save the ETag from the response headers
curl --compressed -i 'https://fosshub.cn/api/v1/items?mode=selected&window=24h&limit=20&lang=en'
# After that, at most once a minute, with the ETag; a 304 means nothing changed
curl --compressed -i -H 'If-None-Match: <last ETag>' 'https://fosshub.cn/api/v1/items?mode=selected&window=24h&limit=20&lang=en'

To page back, pass page.nextCursor back as cursor and stop at the first item you already have. Don't page through all 7 days every time.

When something goes wrong

400
Bad parameters: fix them using the OpenAPI definition and the returned code, and don't automatically switch to a broader query. An invalid or expired cursor (outside the time window) returns invalid_cursor—start again from the first page.
409
snapshot_required: incremental sync can't safely continue from here. Fetch a full snapshot again.
429
Too many requests: wait as Retry-After says, and don't retry in parallel.
5xx
Back off exponentially and use your last good result in the meantime; the public service comes with no SLA.

Calling it anonymously doesn't mean every use is allowed. See Terms.