78trust / 100
Twitter Profiles
by SocialFetch in News & content
x402 APIPassing, checked 1 h ago
Get an X (Twitter) profile by handle or numeric user id.
GET https://api.socialfetch.dev/v1/twitter/profiles/:handle
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 233 ms typical, 342 ms slowest 5%
- Last check
- 1 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/twitter/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%2Ftwitter%2Fprofiles%2F%3Ahandle
const res = await pay("https://api.socialfetch.dev/v1/twitter/profiles/:handle");
console.log(await res.json());Example input
{}Example output
{
"data": {
"lookupStatus": "found",
"metrics": {
"favourites": 16987,
"followers": 92390102,
"following": 117,
"listedCount": 96930,
"mediaCount": 28139,
"tweets": 74284
},
"profile": {
"_truncated": true,
"accountCreatedAt": "2007-12-19T20:20:32.000Z",
"avatarUrl": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
"bannerUrl": "https://pbs.twimg.com/profile_banners/11348282/1788992290/1500x500",
"bio": "Making the seemingly impossible, possible. ✨",
"blueVerified": true,
"displayName": "NASA",
"handle": "NASA",
"platform": "twitter",
"platformUserId": "11348282",
"privateAccount": false,
"profileUrl": "https://x.com/NASA",
"verified": false
}
},
"meta": {
"creditsCharged": 1,
"requestId": "req_example_twitter_profile",
"version": "v1"
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 351 ms | $0.014 |
| 5 h ago | Passed | 402 | 342 ms | $0.014 |
| 9 h ago | Passed | 402 | 320 ms | $0.014 |
| 12 h ago | Passed | 402 | 240 ms | $0.014 |
| 16 h ago | Passed | 402 | 233 ms | $0.014 |
| 20 h ago | Passed | 402 | 171 ms | $0.014 |
| 23 h ago | Passed | 402 | 146 ms | $0.014 |
| 28 h ago | Passed | 402 | 177 ms | $0.014 |