Documentation > Resources > Search

Search API

Search for anything on Artsy.

Retrieving Search Results

Search for anything by following the search link from root with a query parameter.

curl -v "https://api.artsy.net/api/search?q=Andy+Warhol" -H "X-XAPP-Token:..."

The response is a paginated result with embedded search results.

Search Result JSON Format

Key Description
type Result type.
title Title.
description Description or snippet.
og_type Open-graph type.

Possible Types

Type Resource
Artist An Artsy artist.
Artwork An Artsy artwork.
Profile An Artsy profile.
Gene An Artsy gene.
Show An Artsy show.

The API will also return search results with a "null" value for "type". Those are not supported by the API (yet) and may include features, posts or shows.

Links

Key Target
self The resource found, when available.
thumbnail Image thumbnail, when available.
permalink An external location on the artsy.net website.

You can follow the "self" link on each individual search result, however because of delays in indexing and content restrictions there's no guarantee that those links will always return a resource. Notably, only a subset of artworks is available via the API, whereas search returns all content published on artsy.net.

Advanced Search

You can leverage the filtering capabilities of Google Custom Search that provides the back-end for the Artsy search API.

For example, only search for artists by specifying an "artist" open-graph type with more:pagemap:metatags-og_type:artist.

curl -v "https://api.artsy.net/api/search?q=Andy+Warhol+more:pagemap:metatags-og_type:artist" -H "X-XAPP-Token:..."

Spell Check

If the API fails to find any results for a term it will attempt to correct its spelling. The response will be a 302 redirect to the suggested search URL. For example, searching for "Tauba Orbach" will redirect to a search for "Tauba Auerbach".

curl -v "https://api.artsy.net/api/search?q=Tauba+Orbach" -H "X-XAPP-Token:..."

< HTTP/1.1 302 Found
< Content-Type: application/json
< Location: https://api.artsy.net/api/api/search?q=Tauba+Auerbach
{
  "_links" : {
    "location" : {
      "href" : "https://api.artsy.net/api/search?q=Tauba+Auerbach"
    }
  }
}

Public Artworks, Stale and New Content

Search indexing is not immediate. Search results may not always contain content that has been very recently added.

Search results may contain metadata about artworks that are not publicly accessible via the Artsy API or that describe content that has been removed since it was last indexed. Following links for such results may result in a 404 Not Found error.

Example

{
  "total_count": 4276,
  "offset": 0,
  "q": "Andy Warhol",
  "_links": {
    "self": {
      "href": "https://api.artsy.net/api/search?offset=0&q=Andy+Warhol&size=10"
    },
    "next": {
      "href": "https://api.artsy.net/api/search?offset=10&q=Andy+Warhol&size=10"
    }
  },
  "_embedded": {
    "results": [
      {
        "type": "artist",
        "title": "Andy Warhol",
        "description": null,
        "og_type": "artist",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/artists/4d8b92b34eb68a1b2c0003f4"
          },
          "permalink": {
            "href": "http://www.artsy.net/artist/andy-warhol"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/PFufT6nMKNwLOpPEezf4Ww/square.jpg"
          }
        }
      },
      {
        "type": "artist",
        "title": "After Andy Warhol",
        "description": null,
        "og_type": "artist",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/artists/561028b77261697ddc00021b"
          },
          "permalink": {
            "href": "http://www.artsy.net/artist/after-andy-warhol"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/dwpseND6RR3xAQrcOkGWcA/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "Andy Warhol | Ai Weiwei",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/572a301d7622dd6609000942"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/andy-warhol-museum-andy-warhol-ai-weiwei"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/lTPPrz-I8OddbBH5b2MEaw/square.jpg"
          }
        }
      },
      {
        "type": "profile",
        "title": "Andy Warhol Museum",
        "description": "More than a museum.",
        "og_type": "profile",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/profiles/5159dae19a60832439000251"
          },
          "permalink": {
            "href": "http://www.artsy.net/profile/thewarholmuseum"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/XUioYFdMvh0ZAMMcTmpwHg/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "Andy Warhol",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/57eedfedb202a323b40001b4"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/hohmann-andy-warhol"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/LFxhqcTnhT1f_cRi2TOftQ/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "Andy Warhol",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/5881125eb202a364910006f8"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/danziger-gallery-andy-warhol"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/mEvK76_v01IKyYBDGAhdcg/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "Andy Warhol",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/525fed58c9dc24618c000024"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/the-brant-foundation-andy-warhol"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/8Px9AU7IXxiKBUEZUV-3MQ/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "Andy Warhol Flowers",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/58756576b202a334b6000301"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/eykyn-maclean-andy-warhol-flowers"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/4mOA1hJo_uDHGzRWKh7Xew/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "ANDY WARHOL (1928-1987)",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/588b4880a09a671263562268"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/joseph-fine-art-andy-warhol-1928-1987"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/Y4FRSaATZ2kZwkvckrWJIw/square.jpg"
          }
        }
      },
      {
        "type": "show",
        "title": "Andy Warhol | Ai Weiwei",
        "description": null,
        "og_type": "show",
        "_links": {
          "self": {
            "href": "https://api.artsy.net/api/shows/5637faf572616964090001b0"
          },
          "permalink": {
            "href": "http://www.artsy.net/show/national-gallery-of-victoria-andy-warhol-ai-weiwei"
          },
          "thumbnail": {
            "href": "https://d32dm0rphc51dk.cloudfront.net/pZGj-e0xvDpVpSk3OlRxQA/square.jpg"
          }
        }
      }
    ]
  }
}