osrs-data-hub

Overview

How other software reads data from the hub - keys, categories and limits.

Everything outside the web app reads the hub through its read-only REST API. The API is pull-only: poll /snapshot for current state and follow the /events cursor for new events. There are no webhooks.

Which key?

Personal keyIntegration (service) key
Created byany member, on API keysan admin, on Admin → Integrations
Readswhat its creator can seewhat the guild audience sees
Stops workingwhen revoked or expired, or when its creator leavesonly when revoked or expired
Requests per minute120600 by default (1–6000)
Accounts per bulk request1050
account_hashnoyes
/members/{discord_id}no (404)yes
Good foryour own scripts, your own Home Assistanta live map or bot the whole guild uses

Both look like ohub_<prefix>_<secret> and go in the Authorization: Bearer header. See API keys and Integration keys.

Categories

Give a key only the categories its integration needs.

CategoryCovers
statsskills, XP history, gains, levels
eventsloot, level-ups, deaths, collection log, diaries, combat tasks, superiors, slayer tasks
activityonline status, world, sessions and playtime, HP, prayer, spellbook, the slayer task (slayer on /accounts/{id} and /snapshot), run energy, special attack, poison and running effects (status on the same two; the wilderness level only with location_live)
location_livecurrent coordinates (for a live map)
location_historythe 30-day trail
equipmentcurrent gear and its change log
inventorycurrent inventory and wealth history
hiscoresranks, boss kill counts, clues and minigames from the official hiscores

A key can't see what the account's owner doesn't share. With a service key, that means only categories shared with the whole guild. New accounts share every category with the guild by default; on accounts from before hub 1.2, equipment, inventory and location history stay private until their owner shares them.

Suggested keys

IntegrationEndpointsCategories
Live map/snapshot?since=, /events (the feed, and from/to for the events along a trail), /leaderboards/loot, /xp, /locations, /members/{discord_id}activity, location_live, plus stats, equipment, inventory, events, location_history for profiles and trails
Discord bot/events?cursor=, /leaderboards/gains, /accounts?online=trueevents, stats, activity
Home Assistant/snapshot with If-None-Match, /events?cursor=stats, events, activity, optionally location_live
AI assistant/mcpstats, events, activity, location_history, equipment, inventory, hiscores

On this page