Wikimedia Image Search – Wikipedia API PHP Script

Overview

Have you ever thought of having a Image Search option in your web
page without having a image librarary? I did. So I was finding a way to
grab some data using a API based on Wikipedia. If you’re new to
Wikimedia.org, there are probably five things you may not know about images on Wikimedia.

  1. Most images used on Wikipedia are actually on Wikimedia Commons
  2. Wikimedia have almost forty million media files
  3. Wikimedia have more than photographs
  4. You can use (free) images from Wikipedia on your own site, or anywhere you like.

Wikimedia Image Search is based on Wikipedia API. It gives you to
image data on your website or web page. As the API is based on http
request based, this script uses CURL command to get information from
Wikimedia to a JSON array and manipulate those data in bootstrap based
fron end. The script is very easy to understand and easy to edit. Even a
basic PHP user can handle this script.

Features

  • Wikipedia API based, PHP Script
  • Easy to configure and Edit
  • Single Configeration file to have basic settings and functions
  • Search inside Wikimedia Image database out of almost fourty million media files

Requirements

  • PHP 5 or 7

Instructions

  1. Exat all the files at “package.zip” to your local folder
  2. Upload all the files to your server
  3. Access your code via web browser
  4. You’re done

Related