80trust / 100

Kr Law Query

by x402.pokt-agent.com in News & content

x402 APIPassing, checked 54 min ago

Korean law: ask about a Korean statute in Korean or English and get the matching law and article text from the National Law Information Center, with the official article number, effective date and source link.

POST https://x402.pokt-agent.com/kr-law/query

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
121 ms typical, 146 ms slowest 5%
Last check
54 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.pokt-agent.com/kr-law/query" \
  -H "content-type: application/json" \
  -d '{"question":"자본시장법 제178조 내용"}'
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%2Fx402.pokt-agent.com%2Fkr-law%2Fquery
const res = await pay("https://x402.pokt-agent.com/kr-law/query", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"question":"자본시장법 제178조 내용"}),
});
console.log(await res.json());

Example input

{
  "question": "자본시장법 제178조 내용"
}

Example output

{
  "article": "제178조",
  "law": "자본시장과 금융투자업에 관한 법률",
  "source": "law.go.kr",
  "text": "…"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
54 min agoPassed402193 ms$0.005
5 h agoPassed402121 ms$0.005
8 h agoPassed402146 ms$0.005
12 h agoPassed402133 ms$0.005
16 h agoPassed40235 ms$0.005
19 h agoPassed402118 ms$0.005
25 h agoPassed40243 ms$0.005