# Import the EasyPost client.
import easypost
# Setup the client with your API key.
easypost.api_key = '259DA788-39A3-439E-BA1E-BC541B8BA520'
# Purchase a shipment to receive a postage label.
shipment = easypost.Shipment.retrieve(
'shp_339f74ca0aa840d399bbb728a3ac3863'
)
shipment.buy(rate=shipment.lowest_rate())
Connect to and compare rates across USPS, UPS, FedEx, DHL, and many more through a single integration with our Shipping API.
Ship packages nowSave money and improve on-time delivery metrics with data-backed optimization for every shipment.
Find better ratesEnter your package details in our Create Label tool to easily print labels in minutes.
Print labelsReal-time shipment updates through custom branded tracking pages and webhook notifications with our Tracking API.
Track packages anywhereConfirm the accuracy of domestic and international addresses to improve deliverability with our Address Verification API.
Verify any addressProtect your packages against damage, loss, or theft across all carriers, service levels, and countries.
Protect your shipmentsCalculate carbon emissions for every shipment and purchase offsets to neutralize impact.
Reduce Carbon FootprintPartners can white label EasyPost APIs so end customers never leave their platform.
Partner with EasyPostShipped by our network of 100+ carriers
As well as 200+ countries and territories
More dependable than Stamps.com, Endicia and Pitney Bowes
Take advantage of exclusive rates
EasyPost's best-in-class Shipping APIs provide end-to-end flexibility and more control over parcel shipping and logistics processes for: