Thank you! The documentation for UEX's api seems somewhat mediocre since it only has the url for the data you want to access and what it should return, nothing on how I actually go about sending a request to it in the first place.
Not all API's are equal, and so it may require a bit more knowledge or effort on the part of users. For example, on the OpenWeatherMap API, we must apply for an API key and then we must use that key in each URL request from the API in order to receive results - it is documented like this:

...now, the UEX API does have many pages dictating how to make calls to their API, and note that a Bearer Token is required yet does not provide any examples of where this belongs in the API request URL:

(and for the commodities prices, an actual call - shows no place to insert the Bearer Token - and I tried in various ways just for a test, came up empty)
The only thing I can think of is to contact them (or someone who already uses this API), or find an example of a working API application for UEX and see how they do things. Wish I could help more, but their documentation seems to be lacking imho.
For example, when I need to get data from OpenWeatherMaps API, I assemble the URL with the request I need and including my API key as documented, and use this method in a C# inline function within a VoiceAttack command:
using System.Net;
private void GetWeatherApiReturn(string apiURL, dynamic VA)
{
VA.SetText("~api_return", null);
string apiReturn = string.Empty;
try
{
using (WebClient wc = new WebClient())
{
wc.Headers.Add("Accept-Language", " en-US");
wc.Headers.Add("Accept", " text/html, application/xhtml+xml, */*");
apiReturn = wc.DownloadString(apiURL);
}
}
catch (WebException ex)
{
VA.WriteToLog("API ERROR!", "red");
if (ex.Status == WebExceptionStatus.ProtocolError && ex.Response != null)
{
var resp = (HttpWebResponse)ex.Response;
if (resp.StatusCode == HttpStatusCode.NotFound)// handle HTTP 404 errors
{
VA.WriteToLog("HTTP 404 - Unable to find page at URL:", "red");
VA.WriteToLog(apiURL, "blank");
}
}
}
finally
{
VA.SetText("~api_return", apiReturn);
}
}