Support

Developer guide

Use the public UVIT API to look up artwork and link visitors to its artwork or collection page. The GET requests below work without signing in or supplying an API key.

List artwork

Run this request in a terminal to retrieve up to two works from the first page. Pages start at 1. Set count to the number of works you want per page.

Read the array at data.result. Each work has a name and a thumbnail field for its preview image URL. For the next page, keep count the same and increase page by one.

Code example
curl -sS 'https://uvitapi.bizauto.io/api/v1/asset?page=1&count=2'

Filter by collection

Pass a work’s token_id to the list endpoint to retrieve works from the same collection. The total number of matching works is in data.total_count, which may be a string.

Code example
curl -sS -G 'https://uvitapi.bizauto.io/api/v1/asset' \
  --data-urlencode 'token_id=1636936239916693800' \
  --data-urlencode 'page=1' \
  --data-urlencode 'count=10'

Read a work and handle errors

Use the id from the list in the artwork endpoint. Keep id and token_id as strings. Both can exceed JavaScript’s safe integer range.

This example reads the work’s name with fetch in a Node.js ES module. Check the HTTP status and the JSON code before reading data. A missing work can return HTTP 200 with a JSON code of 404.

Code example
const url = 'https://uvitapi.bizauto.io/api/v1/asset/1648075270809247000';
const response = await fetch(url);
if (!response.ok) throw new Error('HTTP ' + response.status);

const { code, data } = await response.json();
if (code !== 200 || !data) throw new Error('UVIT ' + code);
console.log(data.id, data.name);