Find hub memories
Return the most connected memories in your graph.
GET
/api/v1/graph/hubsQuery Parameters
limitnumberNumber of hub nodes to return
Max length: 10
API Key
Stored locally, never sent to servers
Find hub memories
const options = { method: 'GET', headers: {'X-API-Key': 'mb_live_xxx'},};fetch('https://api.mem-brain.io/api/v1/graph/hubs', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));{ "hubs": [ { "id": "mem_001", "content": "Core architecture decisions", "connections": 15 }, { "id": "mem_002", "content": "User preferences", "connections": 12 } ]}