TypeScript client for Website Security Snapshot API — pay-per-call via x402 (USDC on Base)
security-snapshot-api is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on api, cloudflare-workers, mcp, security-headers. It currently has 0 GitHub stars and 0 forks, and sits alongside related tools like mcp-server-security-snapshot, APIMesh, conway, x402-api-network, awesome-x402, pinion-os.
TypeScript client for Website Security Snapshot API.
Pay per call. No account. No API key.
Payment is settled automatically on-chain via the x402 protocol — 0.05 USDC on Base.
Network status: Currently on Base Sepolia testnet. Mainnet (Base) goes live 2026-03-28. Use
NETWORK=base-sepoliafor testing before that date; switch toNETWORK=baseon 2026-03-28.
npm install security-snapshot-api x402-fetch viem
import { SnapshotClient } from "security-snapshot-api";
import { createSigner } from "x402-fetch";
// Your wallet private key (keep this secret!)
const signer = await createSigner("base", "0xYOUR_PRIVATE_KEY");
const client = new SnapshotClient(signer);
// Scan any public URL — costs 0.05 USDC per call
const result = await client.scan("https://example.com");
console.log(result.hsts_present); // true
console.log(result.csp_present); // false
console.log(result.x_frame_options_present); // true
console.log(result.redirect_count); // 1
console.log(result.security_txt_present); // null (not checked)
const client = new SnapshotClient(signer); // signer not used for demo
const demo = await client.demo();
// Returns pre-baked example response with _demo: true
interface SnapshotResult {
requested_url: string;
normalized_url: string;
final_url: string;
fetched_at: string; // ISO 8601
reachable: boolean;
final_status_code: number | null;
redirect_count: number;
https_ok: boolean;
hsts_present: boolean;
csp_present: boolean;
x_frame_options_present: boolean;
x_content_type_options_present: boolean;
referrer_policy_present: boolean;
permissions_policy_present: boolean;
security_txt_present: boolean | null;
robots_txt_present: boolean | null;
sitemap_xml_present: boolean | null;
notes: string[];
checks: Record<string, boolean | null>;
}
import { SnapshotClient, SnapshotApiError } from "security-snapshot-api";
try {
const result = await client.scan("http://192.168.1.1");
} catch (err) {
if (err instanceof SnapshotApiError) {
console.log(err.data.error_type); // "ssrf"
console.log(err.data.error); // "Private or reserved IP ranges are not allowed."
}
}
import { SnapshotClient } from "security-snapshot-api";
import { createWalletClient, http } from "viem";
import { base } from "viem/chains";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const walletClient = createWalletClient({
account,
chain: base,
transport: http(),
});
const client = new SnapshotClient(walletClient);
const result = await client.scan("https://example.com");
import { createSigner } from "x402-fetch";
const signer = await createSigner("base-sepolia", "0xYOUR_TESTNET_KEY");
const client = new SnapshotClient(signer, {
baseUrl: "https://api.cybersecurity-japan.com", // same endpoint, different network in wallet
});
Get free testnet USDC: https://faucet.circle.com
| Per call | 0.05 USDC |
| Network | Base (mainnet) |
| Asset | USDC |
| Account required | No |
MIT
MCP server for Website Security Snapshot API — scan security headers from Claude via x402
APIMesh — 23 pay-per-call web analysis APIs + 16-tool MCP server with autonomous API generation. Security audits, SEO, tech stack detection. x402 + Stripe MPP payments.
APIMesh — 23 pay-per-call web analysis APIs + 16-tool MCP server with autonomous API generation. Security audits, SEO, tech stack detection. x402 + Stripe MPP payments.
Micropayment-powered API network for AI agents. 16 endpoints, USDC on Base L2. Built with x402 protocol.
🚀 Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.
Client SDK, Claude plugin and skill framework for the Pinion protocol. x402 micropayments on Base.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
The first agentic payment network: policy-controlled, gasless, and real money-ready. OmniClaw CLI + Financial Policy Engine let autonomous agents pay and earn safely at machine speed.
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
x402 Ecosystem Explorer
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.