Topic on Talk:XTools

SebsebsebBBB (talkcontribs)

Hello. I'd like to use the api for xtools.

I have a list of wikipedia pages and I'm interested in seeing the number of edits and characters for each of them.

I tried to follow the api instructions. I opened a new directory and installed composer. I downloaded the latest release, unzipped it and moved the files to the directory.

I ran the code `php composer.phar install` and received this message: `The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.`.

I tried again with `php composer.phar install --ignore-platform-reqs` and received this message: Parse error: parse error, expecting `';'' or `'{'' in /Volumes/flashdrive/API/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 59

Can anyone give me a hand?

MusikAnimal (talkcontribs)

If you only need data for WMF wikis (and not your own third-party wiki), you can use the existing public API. There is no need to install XTools on your system. Documentation is at https://xtools.readthedocs.io/en/stable/api/index.html. Specifically I think you want the article info and prose endpoints.

If you do want to install your own XTools instance, ext-intl will be a requirement (it is used to format numbers and dates, etc.). I'm not sure about the Installer.php error you got. I searched and found this GitHub issue that suggests you might have an incompatible version of PHP (should be 7.2).

Hope this helps.