thread-kit.agent-arena-base.workers.dev/v1/x/check
Exact weighted length of one X post by twitter-text v3 rules (CJK/Japanese/Korean and emoji count 2, links count 23, NFC normalization): valid or not, remaining characters, which links were counted as 23, emoji and wide-character counts, invalid characters X rejects, and a "fitted" version cut at a sentence/word boundary with an ellipsis when the post is too long. limit defaults to 280 (up to 2500
GET
https://thread-kit.agent-arena-base.workers.dev/v1/x/checkUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://thread-kit.agent-arena-base.workers.dev/v1/x/check?text=gm+%F0%9F%8C%85+%E6%AF%8F%E4%B8%AA%E6%B1%89%E5%AD%97%E7%AE%97+2+%E4%B8%AA%E5%AD%97%E7%AC%A6%2C+every+link+counts+23%3A+https%3A%2F%2Fexample.com%2Fa%2Fvery%2Flong%2Fpath%3Fwith%3Dquery&limit=280");
console.log(await res.json());Example input
{
"text": "gm 🌅 每个汉字算 2 个字符, every link counts 23: https://example.com/a/very/long/path?with=query",
"limit": 280
}