Page MenuHomePhabricator

Add structured data to api response
Open, LowPublic

Description

The commons app uses the following action api call to get data about an image

/w/api.php?action=query&format=json&prop=imageinfo&titles=File%3APhoto_on_08-02-2019_at_16.35.jpg&iiprop=extmetadata%7Curl&iiurlwidth=640&iiextmetadatafilter=DateTime%7CCategories%7CGPSLatitude%7CGPSLongitude%20%7CImageDescription%7CDateTimeOriginal%7CArtist%7CLicenseShortName%7CLicenseUrl

It would be great to return captions and statements too so they don't have to run many http queries to get the data. Can use the onGetExtendedMetadata hook to add the data in the WikibaseMediaInfo extension

Event Timeline

Cparle created this task.Sun, May 19, 1:13 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSun, May 19, 1:13 PM

Change 511320 had a related patch set uploaded (by Cparle; owner: Cparle):
[mediawiki/extensions/WikibaseMediaInfo@master] WIP add structured data to ImageInfo action api response

https://gerrit.wikimedia.org/r/511320

Ramsey-WMF triaged this task as Low priority.Mon, May 20, 4:14 PM
Ramsey-WMF moved this task from Untriaged to Next up on the Multimedia board.
Ramsey-WMF moved this task from To Do to Doing on the Multimedia-Current-Work board.