Dicken Balls

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

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." }]
}

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

Pages on this site answer Accept: text/markdown with Markdown.

Cost

Free. There are no plans, keys or sign-up.