5 ms·
This looks great. Care to share the API call used for searhing?
by freediver 4y ago
This looks great. Care to share the API call used for searhing?
- projproj 4y agohttps://commons.wikimedia.org/w/api.php?action=query&generator=search&gsrnamespace=6&gsrsearch=<url-encoded https://commons.wikimedia.org/w/api.php?action=query&generat... search term here>&format=json (see https://en.wikipedia.org/w/api.php?action=help&modules=query https://en.wikipedia.org/w/api.php?action=help&modules=query for reference) edit: formatting
- freediver 4y agoAmazing! I notice a slight difference between https://commons.wikimedia.org/w/api.php?action=query&generator=search&gsrnamespace=6&gsrsearch=cat https://commons.wikimedia.org/w/api.php?action=query&generat... and searching for 'cat' on canweimage.com Is there some query processing needed?
- projproj 4y agoI use these additional parameters: `&gsrlimit=25&prop=imageinfo|pageimages&iiprop=url|size`. I think it just changes how much and what type of data is returned, but maybe that could be the difference?