Removing the PHP response format of Action APIs

Amir Sarabadani via Mediawiki-api <[email protected]> Tue, 31 Mar 2026 15:29:40 +0200
Newsgroups gmane.org.wikimedia.mediawiki.api,gmane.science.linguistics.wikipedia.technical,gmane.org.wikimedia.mediawiki.api.announce,gmane.org.wikimedia.mediawiki
Message-ID <CA+ttme2P1FLAzy3anW3Gjq8y7Goj8svGc5iquw7_50j30_GpDQ@mail.gmail.com>
--===============8729147566358673883==
Content-Type: multipart/alternative; boundary="000000000000c69fca064e51f718"

--000000000000c69fca064e51f718
Content-Type: text/plain; charset="UTF-8"

Hello,
The PHP response format [1] has been deprecated in favor of json
format for more
than ten years
<https://www.mediawiki.org/w/index.php?title=API:Data_formats&diff=prev&oldid=1937805>now.
The usage of it is extremely low (0.17% which mostly are scrapers loading
links or examples). In comparison, The xml format that was also deprecated
for more than ten years now still gets 18 times more requests than the PHP
format.

It is now time to pull the plug. We will drop the format in a month (around
May 1, 2026). You can follow the work or comment (for example if you need
more time) in T118538 <https://phabricator.wikimedia.org/T118538>.

[1] for example:
https://meta.wikimedia.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics&format=php

Best
-- 
Amir (he/him)

--000000000000c69fca064e51f718
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,</div><div>The PHP response format [1] has been=
 deprecated in favor of json format for <a href=3D"https://www.mediawiki.or=
g/w/index.php?title=3DAPI:Data_formats&amp;diff=3Dprev&amp;oldid=3D1937805"=
>more than ten years </a>now. The usage of it is extremely low (0.17% which=
 mostly are scrapers loading links or examples). In comparison, The xml for=
mat that was also deprecated for more than ten years now still gets 18 time=
s more requests than the PHP format.</div><div><br></div><div>It is now tim=
e to pull the plug. We will drop the format in a month (around May 1, 2026)=
. You can follow the work or comment (for example if you need more time) in=
=C2=A0<a href=3D"https://phabricator.wikimedia.org/T118538">T118538</a>.</d=
iv><div><br></div><div>[1] for example:=C2=A0<a href=3D"https://meta.wikime=
dia.org/w/api.php?action=3Dquery&amp;meta=3Dsiteinfo&amp;siprop=3Dgeneral|n=
amespaces|namespacealiases|statistics&amp;format=3Dphp">https://meta.wikime=
dia.org/w/api.php?action=3Dquery&amp;meta=3Dsiteinfo&amp;siprop=3Dgeneral|n=
amespaces|namespacealiases|statistics&amp;format=3Dphp</a></div><div><br></=
div><div>Best</div><span class=3D"gmail_signature_prefix">-- </span><br><di=
v dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature">=
<div dir=3D"ltr"><div>Amir (he/him)<br><br></div></div></div></div>

--000000000000c69fca064e51f718--

--===============8729147566358673883==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mediawiki-api mailing list -- [email protected]
To unsubscribe send an email to [email protected]

--===============8729147566358673883==--