API & SDK
OmniSocial offers powerful ways to interact with the protocol and user data — whether you're building an app, bot, extension, or analytics dashboard.
🔍 GraphQL API
https://api.thegraph.com/subgraphs/name/omnisocial/omnitopiaExample Query – Fetch All Personas
query AllPersonas {
personas(first: 5) {
id
handle
label
createdAt
}
}Example Query – Posts by Persona
query PostsByPersona($personaId: String!) {
posts(where: { persona: $personaId }, orderBy: timestamp, orderDirection: desc) {
id
content
timestamp
tipAmount
}
}Use any GraphQL client such as Apollo, urql, or plain fetch:
fetch:🧪 Planned SDK Modules
@omni/query
@omni/query@omni/wallet
@omni/wallet🧰 Tools & External Integration
🧑💻 Contributing or Extending
Last updated
Was this helpful?
