Openverse is a search engine for openly-licensed media.
The OpenverseOpenverseOpenverse is a search engine for openly-licensed media, including photos, audio, and video. Openverse is also the name for the collection of related code repositories that make up the project. find Openverse at https://openverse.org. team builds the Openverse Catalog, APIAPIAn API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways., 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 SlackSlackSlack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/.. We have a weekly developer chat at 15:00 UTC on Tuesdays.
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)
}