GitHot integrations
Available
REST API
Example request
curl 'https://githot.net/api/v1/items?mode=selected&window=24h&limit=20'| GET path | Content |
|---|---|
| /api/v1/items | Selected or public updates from the last 7 days |
| /api/v1/hot-topics | Trending stories |
| /api/v1/stories/{publicId} | Story timeline, overview and related stories |
| /api/v1/dailies | Daily index; /latest or /{YYYY-MM-DD} for an issue |
| /api/v1/weeklies | Weekly index; /latest or /{YYYY-Www} for an issue |
| /api/v1/monthlies | Monthly index; /latest or /{YYYY-MM} for an issue |
| /api/v1/selected/snapshot | All selected updates for initial synchronization |
| /api/v1/selected/changes | Additions, edits and removals since a cursor |
Anonymous GET with CORS. mode defaults to selected. items returns summaries and links without full text. See OpenAPI for fields and errors.
Synchronize selected updates
# Fetch all snapshot pages and save the snapshot cursor
curl 'https://githot.net/api/v1/selected/snapshot?fields=minimal&limit=500'
# Continue using nextPage while hasMore is true
curl 'https://githot.net/api/v1/selected/snapshot?fields=minimal&limit=500&page=<nextPage>'
# Then request changes using the saved cursor
curl 'https://githot.net/api/v1/selected/changes?cursor=<snapshot-cursor>&limit=100'Save each new cursor after applying the page. On 409 snapshot_required, fetch a fresh snapshot. Respect s-maxage, ETag and Retry-After on 429. Back off on 5xx and retain the last successful cache. Include requestId in error reports.