API & embedding
All data of a measurement is available as JSON (REST) and via Connect/gRPC. Images can be embedded directly in forums, signatures and web pages.
REST API
Base URL https://fpsmeter.org/v1. No authentication to read public measurements and those shared via link.
/v1/measurements/{id}Measurement with status and metrics/v1/measurements/{id}/points?since=…Data points, incremental/v1/measurements?public=trueLatest public measurements/v1/measurementsNew measurement (Turnstile token required)/v1/measurements/{id}:stopCancel (manage_token)/v1/gamesGames, default ports, units/v1/statusSystem statuscurl https://fpsmeter.org/v1/measurements/k7Qm2xVd9pLa{
"measurement": {
"id": "k7Qm2xVd9pLa",
"status": "MEASUREMENT_STATUS_DONE",
"gameId": "cs2",
"serverName": "Frag Lounge #2 | 128 Tick | Competitive",
"target": { "host": "203.0.113.42", "queryPort": 27015 },
"stats": { "meanFps": 127.6, "peakFps": 128, "dropsPercent": 0.2, "packetLossPercent": 0.21 },
"quality": { "score": 94, "version": 2, "estimated": false }
}
}Start a measurement
Starting requires a valid Turnstile token, i.e. a browser. The response contains a one-time manageToken for canceling.
Data points
With since you only fetch new points (polling every 5 s). For live updates without polling there is the stream via Connect.
Images & banners
All images are PNG, running measurements are regenerated about every minute, finished ones can be cached permanently.
/m/{id}/graph.pngGraph 830×500, retro lookrange=day|week|month|all/m/{id}/histo.pngHistogram of the FPS values–/m/{id}/banner.pngBanner 468×60 for signaturest=1|2|3, bg=hex, fg=hexConnect / gRPC
The same services as Connect, gRPC and gRPC-Web. The Protobuf definitions (fpsmeter.v1) are the basis of the clients.
const client = createClient(MeasurementService, transport)
for await (const u of client.watchMeasurement({ id: 'k7Qm2xVd9pLa' })) {
console.log(u.newPoints.at(-1)?.fps)
}Limits
Reading: generous, but limited per IP. Starting: a few measurements per hour and IP, one running measurement per server. When exceeded the API answers with 429 and the reason RATE_LIMITED.