🦀 InfoClaw API

Single-domain Discord presence REST + WebSocket API. Users opt in with /claw join and can opt out using /claw leave.

Try the API

Ready.

GET /v1/users/:id

Returns {success:true,data:{discord_user,discord_status,activities,spotify,kv,...}} for an opted-in server member.

GET /health

Returns {ready:boolean} indicating Discord readiness.

WS /socket?user_id=ID

Connect for INIT_STATE and PRESENCE_UPDATE JSON messages. Text ping gets pong.

Discord commands

/claw join enables public presence. /claw leave deletes it. /claw set key value adds public metadata.

Example

const r = await fetch(location.origin + '/v1/users/123456789012345678');
console.log(await r.json());