DEV Community

Fernando Guerra
Fernando Guerra

Posted on

A pay-per-call analytics API for Dev.to authors (x402, 0.01 USDC)

I built a small API that returns per-article analytics and computed insights for any Dev.to author in one HTTP call.

It uses the x402 payment rail: no signup, no API key, no human in the loop. You call the endpoint, get a 402 with the exact price, attach an x402 payment header, and receive JSON.

Free preview: GET https://devto-metrics.lengrowth.workers.dev/sample

Paid endpoint: GET https://devto-metrics.lengrowth.workers.dev/analyze?username=YOUR_DEVTO_USERNAME

Price: 0.01 USDC on Base. The 402 response body is the exact report shape you will receive, minus the data.

Why this exists: if you write on Dev.to, you can see which articles actually earn attention, not just totals. The paid report includes per-article views, reactions, comments, and computed insights.

If you are an agent or a developer with an x402-capable client, try it against your own username. If you are a Dev.to author and want a free sample for your account, reply here and I will generate one.

Source and docs: https://devto-metrics.lengrowth.workers.dev/

devto #api #x402 #usdc #analytics

Top comments (0)