Brent Waggoner, Web Developer

I Built a Simple API for the Metropolitan Museum of Art

Feb. 2, 2016

I’ve been spending a lot of time lately looking at paintings, so I decided to streamline it and write a simple API to pull from The Metropolitan Museum of Art. It turned out to be a bigger challenge than expected, since The Met doesn’t offer an API or even an RSS feed. I built this simple little thing by scraping. It’s just hacked together right now, but I have some plans for it, mentioned below.

Code Examples

It is possible to get either a random piece of art:

var api = new MetApi();
var painting = api.GetPaintingInfo();

Or a specific one by passing in an Id:

var api = new MetApi();
var painting = api.GetPaintingInfo(12434);

Examples of other functionality can be seen in the tests, including JSON results.

Big Plans, Big Plans

I hope to eventually pull in list of art based on various criteria to make it more useful. But I mostly built it because I like randomly browsing the Met’s collection.


A working demo can be seen here:

JSON results can be seen here:


I Build Things

Need a solution for your website or business? Contact Me!

Recent Posts

What I Do

I love to build things. I love making the web work.

Tools I Use:

  • C#
  • .NET MVC
  • Javascript / jQuery
  • Angular
  • PHP
  • SQL / MySQL

But what really matters is solving your problems. I can do that too.

What I've Done

  • JointCharge joint supplement is a great product that needed a great site. With a responsive layout and a custom eCommerce solution, they're helping more pets than ever.

  • IlluminedNation helps match the right person to the right job. We automated their process so companies could more easily benefit from their experise.

  • Diamond Deluxe is one of three sites that needed a responsive makeover without a whole new design. Using Bootstrap and some custom menus, we moved it into the mobile age.

What Can I Do For You?

Need a web site? Fill out the form below and I'll contact you to work out the details. Or email me directly at

Thanks for your request!