get-met-urldeprecated

Get a Met Museum image URL by Object ID

Usage no npm install needed!

<script type="module">
  import getMetUrl from 'https://cdn.skypack.dev/get-met-url';
</script>

README

get-met-url

Build Status

Get a Met Museum image URL by Object ID

Background

The Met recently open sourced a huge CSV file of their collection. The problem is that it doesn't include the direct link to the image of a specific artwork. This module solves that problem.

Install

npm install --save get-met-url

Usage

const getMetUrl = require('get-met-url')

// Prints the image link to http://metmuseum.org/art/collection/search/437853
getMetUrl('437853')
  .then(console.log)

API

getMetUrl(objectId)

Return a Promise of either the direct image link or an error.

objectId

Type: String or Number

The id of the artwork. This is found in the CSV file.

License

MIT © Juan Soto