Dynamic Metadata
Get Metadata
Your dynamic token metadata will be vended from: https://api.utiliti.ai/metadata/{namespace}/{id}
.
Get token metadata
A GET request to /metadata/{namespace}/{id}. This API does not require authentication and can be set as the token_uri for your NFT contracts. Should look something like this:
const response = await fetch('https://api.utiliti.ai/metadata/heroes/5226', { method: 'GET', })
SDK coming soon...
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://api.utiliti.ai/metadata/heroes/5226"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "accept: application/json"); headers = curl_slist_append(headers, "X-API-key: <YOUR_API_KEY_HERE>"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
curl --request GET \ --url https://api.utiliti.ai/metadata/heroes/5226 \ --header 'X-API-key: <YOUR_API_KEY_HERE>' \ --header 'accept: application/json'
$python -m pip install requests --- import requests url = "https://api.utiliti.ai/metadata/heroes/5226" headers = { "accept": "application/json", "X-API-key": "<YOUR_API_KEY_HERE>" } response = requests.get(url, headers=headers) print(response.text)