Get Community Subgraph
Return the actual subgraph for a community.
Cross-space; reads the global graph regardless of active space lens (Louvain ids are global). Returns the entities in this community plus their RELATES_TO edges to each other, and optionally the highest-mentioned memories that touch any of these entities, so the Library wiki community panel can render the cluster's true shape — not a 30-node live-preview sample.
Output shape matches GraphData (nodes carry node_type and
metadata; edges carry edge_type) so the same MiniGraph
component used in the Feed Timeline can render it without an
extra adapter.
Path Parameters
community_id*Community Id
Query Parameters
max_entities?Max Entities
Default
80Range
10 <= value <= 200include_top_memories?Include Top Memories
Default
12Range
0 <= value <= 40Response Body
application/json
application/json
curl -X GET "http://127.0.0.1:14242/library/community/0/subgraph"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}