Zum Inhalt springen
GET /v1/search

Search the collection

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/museum-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/museum-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/museum-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/museum-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/museum-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 3,
        "query": "sunflowers",
        "total": 134,
        "results": [
            {
                "id": 437112,
                "date": "1881",
                "tags": [
                    "Sunflowers",
                    "Still Life"
                ],
                "image": null,
                "title": "Bouquet of Sunflowers",
                "artist": "Claude Monet",
                "medium": "Oil on canvas",
                "period": null,
                "culture": null,
                "artist_bio": "French, Paris 1840–1926 Giverny",
                "department": "European Paintings",
                "dimensions": "39 3/4 x 32 in. (101 x 81.3 cm)",
                "object_url": "https://www.metmuseum.org/art/collection/search/437112",
                "credit_line": "H. O. Havemeyer Collection, Bequest of Mrs. H. O. Havemeyer, 1929",
                "image_small": null,
                "object_name": "Painting",
                "is_highlight": false,
                "accession_year": "1929",
                "classification": "Paintings",
                "is_public_domain": false,
                "additional_images": []
            },
            {
                "id": 551786,
                "date": "ca. 332–200 B.C.",
                "tags": [
                    "Birds",
                    "Lions",
                    "Boats",
                    "Hieratic"
                ],
                "image": "https://images.metmuseum.org/CRDImages/eg/original/2-35.9.20a–w_EGDP014589-4594.jpg",
                "title": "Book of the Dead of the Priest of Horus, Imhotep (Imuthes)",
                "artist": null,
                "medium": "Papyrus, ink",
                "period": "Early Ptolemaic Period",
                "culture": null,
                "artist_bio": null,
                "department": "Egyptian Art",
                "dimensions": "Approximate measurements (framed): L. 21.9 m (71 ft. 10 3/16 in); H. 35 cm (1 ft. 1 3/4 in.). Length previously estimated at 63 ft. (19.2 m).",
                "object_url": "https://www.metmuseum.org/art/collection/search/551786",
                "credit_line": "Gift of  Edward S. Harkness, 1935",
                "image_small": "https://images.metmuseum.org/CRDImages/eg/web-large/2-35.9.20a–w_EGDP014589-4594.jpg",
                "object_name": "Papyrus, funerary, Book of the Dead, Imouthes, Imhotep, Imuthes",
                "is_highlight": false,
                "accession_year": "1935",
                "classification": null,
                "is_public_domain": true,
                "additional_images": [
                    "https://images.metmuseum.org/CRDImages/eg/original/35.9.20a_w_Section1.jpg",
                    "https://images.metmuseum.org/CRDImages/eg/original/35.9.20a_w_Section2.jpg",
                    "https://images.metmuseum.org/CRDImages/eg/original/35.9.20a_w_Section3.jpg",
                    "https://images.metmuseum.org/CRDImages/
…