Openverse is a search engine for openly-licensed media. It is both a website where you can search, discover, and learn how to use and attribute media, as well as an openly accessible REST API.
The OpenverseOpenverseOpenverse is a search engine for openly-licensed media, including images and audio. Find Openverse on GitHub and at https://openverse.org. team builds the Openverse Catalog, API, and front-end application, as well as integrations between Openverse and WordPress. Follow this site for updates and discussions on the project.
You can also come chat with us in #openverse on the Make WP Chat. We have a weekly developer chat at 15:00 UTC on Mondays.
For both of these, we replace YYYY-MM-DD with dates (we only pull data for images uploaded/updated between these dates). We use the second query if there are more than 40 images between the specified dates, giving a continue location as the next picture (represented by SOME_PICTURE.jpg). These requests each return a JSONJSONJSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML. of the following form:
We have elided a number of entries for brevity. Note the continue.gaicontinue field in the json. This will be used in the second request listed above. Below is a table showing the mapping from the data contained in such a json to columns in the image table in PostgreSQL. Fields from the json are preceded by $ to mark them. We have omitted the prefix query.pages.XXXXXX (where XXXXXX is the key for a given page) since it is identical for each field.
Column | Comes From
-------------------------|-------------------------------
foreign_identifier | $pageid
foreign_landing_url | $imageinfo[0].descriptionshorturl
url | $imageinfo[0].url
thumbnail | $imageinfo[0].thumburl
width | $imageinfo[0].width
height | $imageinfo[0].height
license | derived from $imageinfo[0].extmetadata.LicenseUrl.value
license_version | derived from $imageinfo[0].extmetadata.LicenseUrl.value
creator | derived from $imageinfo[0].extmetadata.Artist.value
creator_url | derived from $imageinfo[0].extmetadata.Artist.value
title | $title
meta_data | See below
meta_data field
The meta_data field is a JSON of the following form:
{
"description": $imageinfo[0].extmetadata.ImageDescription.value (stripped of html tags)
}