Using api to print shopify shipping labels

Hi. I am trying to create a way to auto print shipping labels. Purchasing labels through shopify ui admin. Then I want them to be auto printed to my zebra printer. No more clicking print label and having chrome pdf to open. Im using a raspberry pi with cups for my zebra printer. So I need a python script/code to do this automatically after purchasing shipping label. I can not seem to get the label url. I can get all the other data ie label ID shipment tracking # and tracking url ect. Just not the url for the label it self to download and print. Any help or suggestions of how to get this done would be great.

Hi, there have been discussions on the forum about this, please do search next time:

That is not my case. I don’t want to purchase labels through the api. My questions stated i want to purchase labels normally through shopify admin. Then have api code to pull the shipping label url to print it. The api side for me is to only print the label. Not to purchase. Please reopen the discussion as the problem is not solved. Would love more input on my exact case. Thx