From 5bdd55f59304be54ff5ca36f2e9a43ac063c36b7 Mon Sep 17 00:00:00 2001 From: Elias Date: Sun, 24 May 2026 21:24:01 +0200 Subject: [PATCH] use socialcounts-api.falchus.com for tiktok --- src/lib/counts.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/counts.ts b/src/lib/counts.ts index c02b9cf..2c110d1 100644 --- a/src/lib/counts.ts +++ b/src/lib/counts.ts @@ -346,20 +346,20 @@ export const counts: Count[] = [ return data.items.map((item: any) => ({ name: item.title, avatar: item.pfp, - id: item.id, + id: item.uid, username: "@" + item.uid, })); }, getInfo: async (id: string) => { try { const res = await fetch( - `https://api.subscriberwars.space/tiktok/channel/${id}` + `https://socialcounts-api.falchus.com/tiktok/user/${id}` ); const data = await res.json(); return { - name: data.nickname ?? data.username, - username: "@" + data.username, - avatar: data.pfp, + name: data.name ?? data.id, + username: "@" + data.id, + avatar: data.picture, }; } catch { return null; @@ -367,10 +367,10 @@ export const counts: Count[] = [ }, getCounts: async (id: string) => { const res = await fetch( - `https://api.subscriberwars.space/tiktok/channel/${id}` + `https://socialcounts-api.falchus.com/tiktok/user/${id}` ); const data = await res.json(); - return [data.followers, data.following, data.likes]; + return [data.statistics.subs, data.statistics.videos, data.statistics.likes]; }, counts: [ { @@ -378,8 +378,8 @@ export const counts: Count[] = [ icon: Users, }, { - name: "Following", - icon: Users, + name: "Videos", + icon: Camera, }, { name: "Likes",