A simple custom metrics API: one HTTPS POST, and a chart.
Short answer: EzStat is a simple custom metrics API. One HTTPS request records a count or a value at api.ezstat.dev, and the stat is charted the first time you send it. Authenticate with a Bearer API key; no SDK is required. Free is $0 with no card, open to the first 250 accounts — 10 stats, 300,000 datapoints a month, 30-day retention. A place is taken when your first datapoint is stored, after you confirm your email. Paid plans are $19 Indie, $49 Pro and $99 Scale a month, in USD. Full reference: the API docs.
Send a counter, then a value
Create an account, copy your API key, and send a point. These two examples are the v1 write routes from the docs:
curl -X POST https://api.ezstat.dev/api/v1/stats/api_requests/count \
-H "Authorization: Bearer $EZSTAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"count": 1}'A value (a gauge, such as a response time or a queue depth) goes to the same family:
curl -X POST https://api.ezstat.dev/api/v1/stats/response_time/value \
-H "Authorization: Bearer $EZSTAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"value": 142}'The stat is created by the first successful write, so you never register a name or build a chart first. Counters are summed and gauges are averaged per bucket when you read them back.
What the response tells you
On the v1 write routes, a 200 with status "ok" means the point was accepted; a rejection is a real 4xx or 5xx status, with no extra header needed. A retry of the same point — the same stat, the same explicit timestamp and the same ikey — answers 200 with replay "duplicate_ignored" and stores nothing, so a deduplicated single-point retry is not billed either. A re-send that lands on a stored point without an ikey merges instead of replacing: a counter answers replay: "sums_with_existing" and a value answers replay: "averages_with_existing".
Retries are stored once, first write wins, when you send the same timestamp and the same ikey on every attempt — an ikey alone is not enough, because without an explicit timestamp the server stamps each attempt's arrival time. The retry note in the docs covers the details.
Coming from StatHat? Keep the same calls
The /ez, /c and /v endpoints are StatHat-compatible and take form fields. A form-encoded counter looks like this:
curl -X POST https://api.ezstat.dev/ez \ -d "ezkey=YOUR_API_KEY" \ -d "stat=api_requests" \ -d "count=1"
On that family a rejection can still arrive as HTTP 200 with the verdict in the body, unless you send X-EzStat-Strict: 1 — so read the body there. New code should use the v1 routes. The cut-over, including history import, is in the StatHat migration guide.
StatsD-style over HTTP, not the wire protocol
EzStat accepts StatsD-style counters and values over HTTP. It does not speak the StatsD wire protocol, and there is no daemon or UDP listener to run. See the hosted StatsD-style alternative.
At your plan limit
What happens at your limit: Your plan's monthly datapoint allowance is spread across the month as a limit that resets daily. At the limit, new datapoints are refused until the reset, and the response says “datapoint limit reached”. There are no overage charges and no automatic upgrade. A request that would add a new stat name past your plan's stat count is refused as a whole; as long as you are within that count, writes to stats you already track keep recording. Reaching either limit deletes or hides nothing already stored; your dashboard and the read API keep working.
What you get by plan
| Plan | Price | Stats | Datapoints / month | Retention | API keys | On this API |
|---|---|---|---|---|---|---|
| Free | $0, no card | 10 | 300,000 | 30-day | 1 | Ingest, charts, CSV/JSON export, 1 public shared chart, MCP within limits. No alerts. |
| Indie | $19 / month | 10,000 | 4,500,000 | 30-day | 2 | Threshold alerts to Slack or a webhook, Smart Alerts, CSV/JSON export, MCP within limits. |
| Pro | $49 / month | 10,000 | 22,500,000 | 1-year | 5 | Everything in Indie, plus Anomaly detection and correlations. |
| Scale | $99 / month | 10,000 | 150,000,000 | 3-year | 25 | Everything in Pro, at the highest self-serve ingest limits. |
Prices are monthly, in USD, excl. tax where applicable. The MCP server works on every plan, within that plan's limits — an agent can record the same point with track_metric on the MCP server. Full comparison: pricing.
FAQ
- Do I need an SDK to use the EzStat metrics API?
- No. Any language that can make an HTTPS POST works. Send JSON to the v1 write routes with Authorization: Bearer YOUR_API_KEY, or send form fields to the StatHat-compatible /ez, /c and /v endpoints. The docs at https://ezstat.dev/docs have copy-paste examples.
- What is the difference between a counter and a value?
- A counter is an increment, such as a signup or a request (POST /api/v1/stats/:name/count). A value is a gauge, such as a response time or a queue depth (POST /api/v1/stats/:name/value). Both are charted the first time you send them.
- Is this the StatsD wire protocol?
- No. EzStat accepts StatsD-style counters and values over HTTP, not the StatsD wire protocol. There is no daemon to run and no UDP listener. See https://ezstat.dev/statsd.
- What happens when I reach my plan limit?
- New datapoints are refused until the limit resets, and the response says so. There are no overage charges and no automatic upgrade. Nothing already stored is deleted, and your dashboard and the read API keep working. Details are on https://ezstat.dev/pricing.
- Can I move existing StatHat instrumentation to this API?
- Yes. Point the base URL at api.ezstat.dev and use your EzStat API key. The /ez, /c and /v endpoints are StatHat-compatible, and you can import history. Start with https://ezstat.dev/migrate/stathat.
See also
- POST a counter, get a chart — the same write, explained from the first request.
- Metric alerts to Slack or a webhook — threshold alerts on the stats you send here.
- API docs — every route, with auth and examples.
- MCP server — the same API from an agent.
- StatsD-style counters over HTTP and the StatHat migration guide.
- Pricing — the full plan comparison.