Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including artproject-scraper with all npm packages installed. Try it out:

var artprojectScraper = require("artproject-scraper")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

artproject-scraper v1.0.1

Get random art and metadata from Google Art Project

Build Status npm version

ArtProject Scraper

Get random art and metadata from Google Art Project.

This is experimental and extremely dependable on current layout of Google Art Project website. Don't use it for anything important since it can be broken in future.


I wasn't able to find a simple API that returns painting and some meta data, but I found Google Art Project that has exactly what I want, except there was no API.


var scraper = require('artproject-scraper')

scraper(function(err, randomArt) {
  if (!err)

    // Output:
    // { 
    //   image: '',
    //   title: 'Portrait of Nini Lopez',
    //   link: '',
    //   description: 'Nini Lopez first appeared in the work of Auguste Renoir (1841–1919) in La Loge (The Theatre Box), painted in 1874. The young woman from Montmartre, cruelly nicknamed Nini-Gueule-de-Raie, or "fish face", is shown alongside the artist\'s brother. Although the artwork was immediately purchased by the art dealer "le Père Martin", Renoir, like many of his Impressionist friends, was experiencing serious financial difficulty at the time. In the spring of',
    //   creator: 'Pierre-Auguste Renoir',
    //   date: '1876'
    // }



npm test or tap test/*.js


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free