API talk:Allimages

All images by date
How to get list from newest images to oldest, not A-Z?? Thanks --Base (talk) 20:17, 21 May 2012 (UTC)

aimime parameter description is missing
The description fo the aimime parameter is missing. May be useful.

Odd aiuser restriction
aiuser Only return files uploaded by this user. Sounds good. Can only be used with aisort=timestamp. Sounds bad. Such a weird restriction. Jidanni (talk) 03:14, 1 February 2023 (UTC)

ascending, descending, newer, older
ascending, descending, newer, older

Mention what the differences are. Maybe the latter two are just aliases. Jidanni (talk) 03:43, 5 February 2023 (UTC)


 * I can't change the auto-docs, so I'll just answer here. According to the code comments,  and   are for  ;   and   are for  . Since you mention aliases, though, sort order is somewhere you want to watch out for that, especially if you're working with older MW versions, as there were a few different modules that had different aliases for these, as I recall. I believe they've all been harmonized to use the same newer/older values now, but don't quote me on that. – Robin Hood   (talk)  17:49, 5 February 2023 (UTC)

no way to get ns out of results
"ns": 6, There is no way to remove the "ns" from the results! Jidanni (talk) 04:46, 5 February 2023 (UTC)


 * This applies to everything that returns a full page title, I think. For whatever reason, from the very introduction of the API in MW 1.8, they returned both  and , despite the fact that   already has the namespace embedded in it. You'd think it'd be either namespace-and-pagename or fullpagename, but somehow, that didn't happen. Removing it by default is obviously out, and even removing it optionally would probably be deemed an unnecessary change in the grand scheme of things. Better to not add a minimally useful feature than to add one and risk that you break something. – Robin Hood   (talk)  17:35, 5 February 2023 (UTC)

aiprop=url
Yes aiprop=url will add descriptionshorturl and descriptionurl and url.

There is no way to just get url.

So this should have been called aiprop=urls, but now it is too late, else scripts will break.

Anyway it is too bad that there is confusion between input names and output names, and that their contents don't equal each other.

Jidanni (talk) 05:03, 5 February 2023 (UTC)


 * Here again, it's a trade-off between options and code complexity. The more granular the field-set returned, the more complicated the code. Instead, they've gone with groupings of values and sometimes that means you get data you don't need. – Robin Hood  (talk)  17:42, 5 February 2023 (UTC)