Metropolitan Museum of Art API

Beginner's Pick Art & Design / No Auth Required Beginner HTTPS
Free to Use
71 B
Measured Score 0 50 100 Speed 8/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

The Metropolitan Museum of Art API provides open access to over 470,000 art objects from the Met collection including paintings, sculptures, and artifacts, along with high-resolution image URLs and rich metadata. It is entirely free with no API key, making it one of the best public APIs for building arts education tools or practicing API integration. You can search by medium, culture, period, or artist.

Beginner Tip

Start with https://collectionapi.metmuseum.org/public/collection/v1/search?q=sunflowers&hasImages=true to get object IDs, then fetch details from /objects/{objectID}. No API key or account needed.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://collectionapi.metmuseum.org/public/collection/v1/objects/436535
Result
HTTP 200 · application/json · 2,794 bytes · compressed
Response time
363 ms (median of 3) · fastest 355 ms
Transport
TLSv1.3 · TLS_AES_128_GCM_SHA256 · certificate issued by DigiCert Inc
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
objectID integer 436535
isHighlight boolean true
accessionNumber string 1993.132
accessionYear string 1993
isPublicDomain boolean true
primaryImage string (url) https://images.metmuseum.org/CRDImages/ep/ori…
primaryImageSmall string (url) https://images.metmuseum.org/CRDImages/ep/web…
additionalImages array [1 item]
constituents array [1 item]
department string European Paintings
objectName string Painting
title string Wheat Field with Cypresses
culture string
period string

Captured Response

Captured from a real request to https://collectionapi.metmuseum.org/public/collection/v1/objects/436535 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "objectID": 436535,
  "isHighlight": true,
  "accessionNumber": "1993.132",
  "accessionYear": "1993",
  "isPublicDomain": true,
  "primaryImage": "https://images.metmuseum.org/CRDImages/ep/original/DP-42549-001.jpg",
  "primaryImageSmall": "https://images.metmuseum.org/CRDImages/ep/web-large/DP-42549-001.jpg",
  "additionalImages": [
    "https://images.metmuseum.org/CRDImages/ep/original/LC-EP_1993_132_suppl_CH-004.jpg"
  ],
  "constituents": [
    {
      "constituentID": 161947,
      "role": "Artist",
      "name": "Vincent van Gogh",
      "constituentULAN_URL": "http://vocab.getty.edu/page/ulan/500115588",
      "constituentWikidata_URL": "https://www.wikidata.org/wiki/Q5582",
      "gender": ""
    }
  ],
  "department": "European Paintings",
  "objectName": "Painting",
  "title": "Wheat Field with Cypresses",
  "culture": "",
  "period": "",
  "…": "(43 more fields)"
}

Field Reference

objectID Unique identifier for the artwork in the Met collection
title Title of the artwork
primaryImage URL to the high-resolution primary image; empty string if no public domain image is available
isPublicDomain True if the artwork image is free to use without copyright restrictions

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://collectionapi.metmuseum.org/public/collection/v1/objects/436535";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 400 Requesting a path that does not exist application/json
{
  "message": "could not parse objectID"
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

CORS blocked in browser The Met API does not send CORS headers on all endpoints
Make requests from a Node.js backend or use a CORS proxy for browser-based projects
primaryImage URL is empty string Many objects have rights restrictions and cannot display images publicly
Filter results where isPublicDomain is true and primaryImage is not empty before displaying images
Large search result sets A broad search term can return tens of thousands of object IDs
Add filters like hasImages=true or departmentId to narrow results; paginate by slicing the returned ID array

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 8/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 363ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Art & Design
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →