71trust / 100
Social Data
by xhagents.xyz in News & content
x402 APIPassing, checked 3 h ago
Pulls one X/Twitter post by URL or id (text, author, metrics, language) and/or a public LinkedIn company page (industry, size, headquarters, specialties, followers) as structured JSON.
POST https://xhagents.xyz/api/social-data
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 1.4 s typical, 1.9 s 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 POST "https://xhagents.xyz/api/social-data" \
-H "content-type: application/json" \
-d '{"x_tweet":"https://x.com/jack/status/20"}'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%2Fxhagents.xyz%2Fapi%2Fsocial-data
const res = await pay("https://xhagents.xyz/api/social-data", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"x_tweet":"https://x.com/jack/status/20"}),
});
console.log(await res.json());Example input
{
"x_tweet": "https://x.com/jack/status/20"
}Example output
{
"linkedin": {
"company_size": "1,001-5,000 employees",
"followers": 1489428,
"headquarters": "Remote First",
"industry": "Financial Services",
"name": "Coinbase"
},
"x_tweet": {
"author": {
"name": "jack",
"screen_name": "jack"
},
"created_at": "2006-03-21T20:50:14.000Z",
"id": "20",
"lang": "en",
"metrics": {
"likes": 308968
},
"text": "just setting up my twttr"
}
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 1.6 s | $0.05 |
| 7 h ago | Passed | 402 | 1.3 s | $0.05 |
| 10 h ago | Passed | 402 | 1.9 s | $0.05 |
| 14 h ago | Passed | 402 | 1.9 s | $0.05 |
| 17 h ago | Passed | 402 | 1.4 s | $0.05 |
| 21 h ago | Passed | 402 | 1.4 s | $0.05 |
| 25 h ago | Passed | 402 | 1.4 s | $0.05 |
| 28 h ago | Passed | 402 | 1.4 s | $0.05 |
| 32 h ago | Passed | 402 | 1.9 s | $0.05 |
| 36 h ago | Passed | 402 | 1.9 s | $0.05 |
| 39 h ago | Passed | 402 | 1.2 s | $0.05 |
| 44 h ago | Passed | 402 | 1.3 s | $0.05 |