73trust / 100

Tools Get User Id

by ReadX in News & content

x402 APIPassing, checked 2 h ago

Resolve an @handle to its numeric user id. Example: GET /api/tools/get_user_id?username=jack

GET https://readx.sh/api/tools/get_user_id

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
1.2 s typical, 1.7 s slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://readx.sh/api/tools/get_user_id?username=jack"
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%2Freadx.sh%2Fapi%2Ftools%2Fget_user_id
const res = await pay("https://readx.sh/api/tools/get_user_id?username=jack");
console.log(await res.json());

Example input

{
  "username": "jack"
}

Example output

{
  "code": 0,
  "data": {
    "id": "12"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed4021.4 s$0.01
6 h agoPassed4021.1 s$0.01
9 h agoPassed4021.2 s$0.01
13 h agoPassed402175 ms$0.01
17 h agoPassed4021.2 s$0.01
20 h agoPassed4021.3 s$0.01
24 h agoPassed40257 ms$0.01
27 h agoPassed4021.2 s$0.01
32 h agoPassed40241 ms$0.01
35 h agoPassed4021.3 s$0.01
38 h agoPassed4021.8 s$0.01
43 h agoPassed4021.7 s$0.01