The ExtensionDistributor API can get you download URLs, e.g. this:

https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&format=json&list=extdistbranches&formatversion=2&edbexts=WikiEditor

returns this sort of thing:

"REL1_39": "https://extdist.wmflabs.org/dist/extensions/WikiEditor-REL1_39-76d9ffd.tar.gz",
"REL1_40": "https://extdist.wmflabs.org/dist/extensions/WikiEditor-REL1_40-d330183.tar.gz",
"master": "https://extdist.wmflabs.org/dist/extensions/WikiEditor-master-17163cd.tar.gz",


On 2/10/23 20:47, Sebastian Berlin wrote:
Is there a way to programmatically get a download link for an extension if you have the extension name and version of MediaWiki? E.g. for Wikispeech and MW 1.39 this would (currently) be https://extdist.wmflabs.org/dist/extensions/Wikispeech-REL1_39-5dc08c9.tar.gz. It's the hash(?) a the end that makes it tricky.

Sebastian Berlin
Utvecklare/Developer
Wikimedia Sverige (WMSE)

E-post/E-Mail: sebastian.berlin@wikimedia.se
Telefon/Phone: (+46) 0707 - 92 03 84

_______________________________________________
MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org
To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/