milloin.xyz

Developer docs

milloin.xyz API

The answers of milloin.xyz to everyday "when" questions, as a public API. Free to use, no API key or sign-up.

Choose a category

The API is grouped by category, like the questions on milloin.xyz. Each category has its own guides, examples and API reference.

Basics

  • Every endpoint is under https://milloin.xyz/api, its path starting with the category: https://milloin.xyz/api/v1/electricity/prices.
  • Responses are JSON. Times in them are UTC (ISO 8601, Z). Requests may give a UTC offset, such as 2026-10-13T07:00:00+03:00; write the + as %2B in a URL (a plain + also works).
  • The OpenAPI document of every category is at https://milloin.xyz/api/openapi.json, for generating a client.

Limits and caching

GET responses carry Cache-Control, and repeated requests are answered from the CDN. Requests that reach the server count against 60 a minute for each IP address; over that the API answers 429 Too Many Requests with Retry-After. Any website may call the API from the browser (CORS). A link back to milloin.xyz is appreciated.

For higher volumes, guaranteed availability or your own endpoints, write to jarkko.peltola@hurlumhei.xyz.

Errors

Every error is application/problem+json; a validation error lists the fields that failed.

HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "detail": "durationHours must not be greater than 24",
  "errors": [{ "field": "durationHours", "message": "durationHours must not be greater than 24" }]
}