A decentralized music tracking and discovery platform built on AT Protocol 馃幍 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
at main 11 lines 353 B view raw
1import { ROCKSKY_API_URL } from "../consts"; 2import type { ProfileStats } from "../types/stats"; 3 4export default async function getProfileStats(handle: string) { 5 const res = await fetch( 6 `${ROCKSKY_API_URL}/xrpc/app.rocksky.stats.getStats?did=${handle}`, 7 ); 8 const stats = (await res.json()) as ProfileStats; 9 10 return { stats, ok: res.ok }; 11}