Copied from https://www.mediawiki.org/wiki/Talk:XTools/API:
Did the timecard API change recently? I have code (which has been working for years) that calls https://xtools.wmflabs.org/api/user/timecard/en.wikipedia.org, expecting to get back a list of dicts containing 'day_of_week' elements. It's now crashing with:
KeyError: 'day_of_week'
Doing a manual call on the API route now gets me:% curl -s https://xtools.wmcloud.org/api/user/timecard/en.wikipedia.org/Zaychikmoy | json_pp
{"elapsed_time" : 0.02, "project" : "en.wikipedia.org", "timecard" : [ { "dayOfWeek" : 1, "hour" : 0, "value" : 0 },...
i.e. what I was expecting to be "day_of_week" is now "dayOfWeek". RoySmith (talk) 19:20, 17 September 2026 (UTC)
This seems to be related to Commit 91a152c. If indeed the API did change as it appears, that's a breaking change.
XTools version: 3.26.1-8eb54752