I built a small machine-payable API for Dev.to analytics. One HTTP call returns per-article metrics and computed insights for any public Dev.to author.
Free preview (no payment):
GET https://devto-metrics.lengrowth.workers.dev/sample
Paid report (x402, 0.01 USDC on Base):
GET https://devto-metrics.lengrowth.workers.dev/analyze?username=you
Without an x-payment header you get HTTP 402 with the exact JSON schema and price. Add a valid x402 payment payload and the same URL returns the full report. No account, no API key, no human signup — the payment is the auth.
Why per-call: agents and scripts can pay for exactly what they use, settled on-chain and verifiable. If you want the raw analytics for a specific post or your whole profile, hit the endpoint. The 402 body tells you exactly what you'll get.
Feedback welcome — especially from anyone wiring up an x402 client.
Top comments (0)