china-reachability
README.md
**Live status page (hourly):** https://lsl17625394467.github.io/china-reachability-api/status.html
**Read the write-up (with measured table):** [What actually loads from mainland China](https://dev.to/lsl17625394467/what-actually-loads-from-mainland-china-a-measured-reachability-index-for-ai-agent-infrastructure-49ea)
# China Reachability Audit API (x402, USDC on Base)
> Live China Reachability Index (24 sites, measured hourly): [INDEX.md](./INDEX.md)
Measure what your site actually does **from a real mainland-China residential IP** - HTTP status, resolved edge IP, and DNS/TCP/TLS/TTFB/total timings. Runs on a real Windows 11 workstation in China with no VPN.
Landing page: <https://lsl17625394467.github.io/china-reachability-api/>
Live digest: <https://lsl17625394467.github.io/china-reachability-api/reachability.html>
## Use it as an MCP server
```json
{
"mcpServers": {
"china-reachability": { "url": "https://china-reach-audit.2390098382-380.workers.dev/mcp" }
}
}
```
Tools: `china_reachability` (up to 3 URLs, real CN timings) and `x402_endpoint_check` (validates an x402 402 challenge).
## Permanent endpoint
```
https://china-reach-audit.2390098382-380.workers.dev
```
Listed in the x402 directory: <https://www.x402scan.com/server/https%3A%2F%2Fchina-reach-audit.2390098382-380.workers.dev>
## Endpoints
| Method | Path | Price |
|---|---|---|
| GET | `/audit?url=<https url>` | free: HTTP status only, 30/hour/IP |
| GET | `/audit-plus?url=<u1>&url2=<u2>&url3=<u3>` | $0.50 USDC on Base (x402 v1) |
| GET | `/audit-plus-v2?url=<u1>&url2=<u2>&url3=<u3>` | $0.50 USDC on Base (x402 v2) |
| GET | `/.well-known/x402` | discovery document |
| GET | `/openapi.json` | OpenAPI 3.1 spec |
Payment: x402 `exact` scheme, network `eip155:8453` (Base), asset USDC `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`, payTo `0x826119ae07FE1a2230c922AAcB1489E6828Df7dB`, amount `500000` (atomic, 6 decimals) per 3 URLs.
If your client cannot sign x402, send 3 USDC on Base to the same address and call `/order?tx=<txhash>&url=...` - the server verifies the on-chain transfer.
## Free sample
```bash
curl "https://china-reach-audit.2390098382-380.workers.dev/audit?url=https://example.com"
```
```json
{
"ok": true,
"http_code": 200,
"ip": "93.184.215.14",
"region": "mainland China, residential CN IP, no VPN",
"ms": { "dns": 12, "tcp": 34, "tls": 88, "ttfb": 210, "total": 320 },
"measured_at": "2026-12-03T01:55:00.000Z"
}
```
## Hourly reachability digest
Free tier returns the HTTP status only; the paid endpoints return DNS/TCP/TLS/TTFB/total timings for up to 3 URLs.
A report is regenerated hourly from the same China IP for ~24 agent-infrastructure sites (OpenRouter, GitHub, npm, Base RPC, x402 providers, ...): see `/reachability.json` on the same host.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues