{"openapi":"3.0.3","info":{"title":"sr-stats API","version":"1.0.0","description":"Public read-only HTTP API for sr-stats. No API key. Use it to read the same daily survivalrun aggregates the homepage charts show (counts of athletes, races and results). Do not use it to file official Survivalrun Bond Nederland results, to time a race, or to call an MCP tool — MCP is not live. Cached about 60 seconds; the underlying aggregate refreshes once per UTC day. Errors are JSON objects with error.code, error.message and error.hint."},"externalDocs":{"description":"sr-stats API","url":"https://docs.sr-stats.nl/nl/api"},"servers":[{"url":"https://sr-stats.nl"}],"paths":{"/api":{"get":{"operationId":"getApiIndex","summary":"List public operations","description":"Returns the public operation index so an agent can discover what to call. No authentication. No request body.","parameters":[],"responses":{"200":{"description":"Operation index.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","openapi","operations"],"properties":{"name":{"type":"string"},"openapi":{"type":"string","format":"uri"},"operations":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["operationId","method","path","description"],"properties":{"operationId":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"description":{"type":"string"}}}}}}}}},"405":{"description":"This path only supports GET.","content":{"application/json":{"schema":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message","hint"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"Stable machine-readable code."},"message":{"type":"string","description":"What went wrong."},"hint":{"type":"string","description":"What the caller can do next."}}}}}}}}}}},"/api/marketing/stats":{"get":{"operationId":"getMarketingStats","summary":"Homepage aggregate statistics","description":"Returns the daily public aggregate used by the charts on https://sr-stats.nl/. No query parameters and no authentication. Includes combined counts and the public names already shown on those charts. Retry on 503; do not poll faster than the Cache-Control max-age (60 seconds).","parameters":[],"responses":{"200":{"description":"Daily aggregate.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["generatedAt","totals"],"properties":{"generatedAt":{"type":"string","format":"date-time","description":"When this daily aggregate was built."},"sourceUpdatedAt":{"type":"string","format":"date-time","nullable":true,"description":"When the underlying imported results were last updated."},"totals":{"type":"object","additionalProperties":false,"required":["entries","athletes","races","undated"],"properties":{"entries":{"type":"integer","minimum":0},"athletes":{"type":"integer","minimum":0},"races":{"type":"integer","minimum":0},"undated":{"type":"integer","minimum":0}}},"years":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["year","entries","athletes"],"properties":{"year":{"type":"integer"},"entries":{"type":"integer","minimum":0},"athletes":{"type":"integer","minimum":0}}}}}}}}},"503":{"description":"The daily aggregate could not be loaded.","content":{"application/json":{"schema":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message","hint"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"Stable machine-readable code."},"message":{"type":"string","description":"What went wrong."},"hint":{"type":"string","description":"What the caller can do next."}}}}}}}}}}}}}