Community Wishlist Survey 2023/Miscellaneous/Wikipedia API: Output also in text or in TSV format/Proposal/en

From Meta, a Wikimedia project coordination wiki
  • Problem: The output of the API is not in a simple format like plain text, but in JSON or HTML, where it is e.g. appropriate or requested (user request or according to API usage statistics).
  • Proposed solution: For example, enable this output, but via an API:
# List of revisions for user Dušan Kreheľ?
curl -s 'https://meta.wikimedia.org/w/index.php?title=User:Du%C5%A1an_Krehe%C4%BE&offset=&limit=500&action=history'|tr '"' "\n"|grep "oldid="|grep -v ";diff"|tr "=" " "|awk '{print $3}'|sort
21442049
21474908
21618555
21696280
22094013
22159891
22232863
22444821
22462733
23450518
23462853