Dicken Balls API
Dicken Balls turns benchmark numbers into a bouncing-ball comparison chart and gives back a share link with a video, a GIF, an image and an SVG. The API is free and needs no account or key. The machine-readable description is at https://dickenballs.xyz/openapi.json.
Create a chart
POST https://dickenballs.xyz/api/v1/charts with a JSON body.
curl -sS https://dickenballs.xyz/api/v1/charts \
-H 'content-type: application/json' \
-d '{"title":"Cache latency","unit":"ms","rows":[{"name":"Remote store","value":1000},{"name":"Local disk","value":500},{"name":"Memory cache","value":250}]}'{
"id": "5f2c…",
"url": "https://dickenballs.xyz/c/5f2c…",
"video": "https://dickenballs.xyz/c/5f2c…/video.mp4",
"gif": "https://dickenballs.xyz/c/5f2c…/chart.gif",
"image": "https://dickenballs.xyz/c/5f2c…/card.png",
"svg": "https://dickenballs.xyz/c/5f2c…/chart.svg",
"player": "https://dickenballs.xyz/c/5f2c…/player",
"api": "https://dickenballs.xyz/api/v1/charts/5f2c…",
"post": "https://x.com/intent/post?url=…",
"width": 764,
"height": 388,
"seconds": 4,
"chart": { "title": "Cache latency", "unit": "ms", "…": "…" }
}Give url to a person. Posted on X, it plays the video under the post. The status is 201 for a new chart and 200 when the chart already existed. A chart's id is the hash of its settings, so sending the same chart twice is safe and returns the same link. Rendering takes one to ten seconds.
Fields
title(required): heading, 1 to 64 characters.rows(required): 1 to 32 rows ofname(1 to 40 characters) andvalue(a number above zero). The first row is the baseline. A row may setshapetoCircle,Square,Diamond,Bolt.unit:ns,µs,ms,s,RPS,Custom. The default isms. With a time unit a smaller value is faster. WithRPSa larger value is faster.CustomneedscustomUnit, such asGB/s, anddirection,higherorlower, for which is faster.theme:Dicken,Classic,Midnight,Studio. The default isDicken.scale: playback speed as a power of ten, from -9 to 9. 0 is real time. Left out, the fastest row crosses about once a second.sweep:truefor a ten-second video that sweeps through slower and faster speeds. The default is a four-second video at one speed.note: up to 280 characters of method notes, printed under the chart.link: http or https address of the full results.
Read a chart
GET https://dickenballs.xyz/api/v1/charts/{id} returns the same body as the create call. The id is the last part of a share link.
A share link itself answers Accept: text/markdown with the chart as a Markdown table.
Errors
Errors use RFC 9457 application/problem+json:
{
"type": "https://dickenballs.xyz/docs#invalid-chart",
"title": "Chart is not valid",
"status": 422,
"code": "invalid-chart",
"detail": "rows[1].value: Required. A JSON number greater than zero, from 1e-18 to 1e21.",
"hint": "Fix the listed fields and send the request again. The schema is at https://dickenballs.xyz/openapi.json.",
"errors": [{ "field": "rows[1].value", "message": "Required. A JSON number greater than zero, from 1e-18 to 1e21." }]
}invalid-json(400): the body is not JSON.body-too-large(413): the body is over 16 KB.invalid-chart(422): a field is missing or out of range.errorslists each one.chart-not-found(404): no chart has this id.rate-limited(429): wait forRetry-Afterseconds.not-found(404) andmethod-not-allowed(405): the path or method is not part of the API.
Rate limits
Creating charts allows 20 requests every 60 seconds for each address. Reading allows 120 requests every 60 seconds for each address. Every API response names its limit in the IETF RateLimit-Policy header. A 429 adds RateLimit and Retry-After.
Versioning and deprecation
The major version is in the path. A change that would break a caller goes to a new path such as /api/v2, and /api/v1 keeps working. If a version is ever retired, its responses carry Deprecation (RFC 9745) and Sunset (RFC 8594) headers first. No retirement of /api/v1 is planned.
MCP server
https://dickenballs.xyz/mcp is a Model Context Protocol server over Streamable HTTP, with no sign-in. It has two tools: create_chart takes the same fields as the create call, and get_chart takes an id or a share link. Its server card is at https://dickenballs.xyz/.well-known/mcp/server-card.json.
Discovery
- llms.txt: when to use this site, for agents
- OpenAPI description
- API catalog (RFC 9727)
- Sitemap
Pages on this site answer Accept: text/markdown with Markdown.
Cost
Free. There are no plans, keys or sign-up.