78trust / 100

Tiktok Profiles

by SocialFetch in News & content

x402 APIPassing, checked 3 h ago

Get a TikTok profile by handle.

GET https://api.socialfetch.dev/v1/tiktok/profiles/:handle

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
184 ms typical, 261 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.socialfetch.dev/v1/tiktok/profiles/:handle"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.socialfetch.dev%2Fv1%2Ftiktok%2Fprofiles%2F%3Ahandle
const res = await pay("https://api.socialfetch.dev/v1/tiktok/profiles/:handle");
console.log(await res.json());

Example input

{}

Example output

{
  "data": {
    "lookupStatus": "found",
    "metrics": {
      "diggs": 0,
      "followers": 127352270,
      "following": 351,
      "friends": 284,
      "likes": 1301821757,
      "posts": 459
    },
    "profile": {
      "_truncated": true,
      "accountCreatedAt": "2018-10-20T19:26:16.000Z",
      "avatarUrl": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/1e2348ca19d394037718e3b1d3fc2958~tplv-tiktokx-cropcent…",
      "avatarUrls": {
        "large": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/1e2348ca19d394037718e3b1d3fc2958~tplv-tiktokx-cropcent…",
        "medium": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/1e2348ca19d394037718e3b1d3fc2958~tplv-tiktokx-cropcent…",
        "thumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/1e2348ca19d394037718e3b1d3fc2958~tplv-tiktokx-cropcent…"
      },
      "bio": "Watch my latest video! 👇",
      "displayName": "MrBeast",
      "handle": "mrbeast",
      "platform": "tiktok",
      "platformUserId": "6614519312189947909",
      "privateAccount": false,
      "profileUrl": "https://www.tiktok.com/@mrbeast",
      "secUid": "MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG",
      "verified": true
    }
  },
  "meta": {
    "creditsCharged": 1,
    "requestId": "req_f05c55ed-d134-4f26-9c23-8a49df4810ba",
    "version": "v1"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402158 ms$0.014
6 h agoPassed402214 ms$0.014
10 h agoPassed402240 ms$0.014
13 h agoPassed402180 ms$0.014
17 h agoPassed402184 ms$0.014
21 h agoPassed402261 ms$0.014
24 h agoPassed402181 ms$0.014
30 h agoPassed402306 ms$0.014