75trust / 100

Pay Agent X402 Twit Sh

by api.aidress.ai in News & content

x402 APIPassing, checked 4 h ago

Look up a Twitter/X user profile by their screen name. Returns full profile data including id, name, username, bio, follower count, following count, tweet count, verification status, and profile image URL. Query param: username (string, required) - Twitter screen name without @, e.g. GET /users/by/username?username=elonmusk. Returns X v2 API-compatible JSON.

GET https://api.aidress.ai/pay/agent_x402_twit_sh

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.aidress.ai/pay/agent_x402_twit_sh?username=elonmusk"
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.aidress.ai%2Fpay%2Fagent_x402_twit_sh
const res = await pay("https://api.aidress.ai/pay/agent_x402_twit_sh?username=elonmusk");
console.log(await res.json());

Example input

{
  "username": "elonmusk"
}

Example output

{
  "data": {
    "description": "Running bitcoin.",
    "id": "9253672",
    "name": "Hal Finney",
    "public_metrics": {
      "followers_count": 134000,
      "following_count": 200,
      "like_count": 300,
      "tweet_count": 600
    },
    "username": "halfin",
    "verified": false
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402664 ms$0.005
7 h agoPassed402611 ms$0.005
11 h agoPassed402634 ms$0.005
14 h agoPassed402969 ms$0.005
18 h agoPassed402524 ms$0.005
22 h agoPassed402677 ms$0.005
25 h agoPassed402692 ms$0.005
29 h agoPassed402708 ms$0.005
33 h agoPassed402629 ms$0.005
36 h agoPassed402772 ms$0.005
41 h agoPassed402569 ms$0.005