If python doesn’t work, you could use ObjectiveC. That should work. If it is a really small file you can load it synchronously:
url = NSURL.URLWithString_("URL/api/product")
data = NSData.dataWithContentsOfURL_(url)
If you need to load more you could try this: URL loading system in Objective-C (it is written in ObjetiveC, but you should be able to convert that to python.