Skip to content
GET /v1/littles-law

Little's law (L = λ·W)

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/queue-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/queue-api/v1/littles-law" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/queue-api/v1/littles-law", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/queue-api/v1/littles-law");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/queue-api/v1/littles-law",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "law": "L = λ · W",
        "note": "Little's law holds for any stable system: average number in system = arrival rate × average time in system.",
        "solved_for": "W",
        "arrival_rate": 2,
        "time_in_system_W": 5,
        "number_in_system_L": 10
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:02.710Z",
        "request_id": "0e288407-1c59-4324-af34-a91347c218a4"
    },
    "status": "ok",
    "message": "Little's law (L = λ·W)",
    "success": true
}