1. Fittingbox - Customer Help Center
  2. Eyewear Digitization
  3. Photo Delivery on Online Gallery (Widen Web Services)

How to search for assets from Widen API?

You can find here the official documentation regarding the Widen API:

  • Here is an article to help you with the search terms (for the gui and the api) Acquia DAM Community

Here is an example of search by EAN:

var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer fittingbox/********************************");

var requestOptions = {
  method: 'GET',
  headers: myHeaders
};

fetch("https://api.widencollective.com/v2/assets/search?query=ean:00293654786012&expand=metadata,embeds", requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

The query parameter uses the same quick search syntax used within the Acquia DAM web UI. In other words, you can use the advanced search in the web UI and copy the generated query from the search box in your API request.

Type of search:

  • Search by brand:
    Change your url to: https://api.widencollective.com/v2/assets/search?query=bra:Humphrey's&expand=metadata,embeds

  • Search by color:
    Change your url to: https://api.widencollective.com/v2/assets/search?query=col2:blue&expand=metadata,embeds

  • Search by filename:
    Change you url to: https://api.widencollective.com/v2/assets/search?query=fn:{00293654786012_86.tif}&expand=metadata,embeds

Note: wrap your filename in {} to search on exact terms cf (Acquia DAM Community )