Jump to content

User talk:Stefan Kühn

Add topic
From Wikimedia Commons, the free media repository

Notification that API queries using ?format=xml may stop working soon

[edit]

Hello friend. You are receiving this message because technical logs indicate you have made more than a hundred API queries recently using ?format=xml, instead of the more standard ?format=json. This probably means you are using a script or bot with old code.

Do you have any idea which script/bot I'm talking about? And would you be willing to refactor your code to use ?format=json?

There is more info over in phab:T421973 and at mw:API:Data formats#Output, and you can also join the discussion in phab:T421973 if you'd like. Thanks! –Novem Linguae (talk) 08:50, 2 April 2026 (UTC)Reply

@Novem Linguae: I have IMHO two tools with API-usage and XML usage.
There you can use the parameter "debug=1" to see more. Like:
The tool checkpersondata and checkwiki was build by me, but it is now maintained by other Wikipedians. Maybe there is also a API-request.
There is no bot. I think this are all my working tools. I'd be willing to modify the tools, but I really don't have the time to do it. Why isn't "format=xml" allowed anymore? --sk (talk) 10:29, 2 April 2026 (UTC)Reply
It's been marked as deprecated on the MediaWiki page for a long time. I'm not sure exactly why though. I'll see if I can find out, or get someone else to find out. It's a good question. –Novem Linguae (talk) 10:58, 2 April 2026 (UTC)Reply