ZipCodeAPI supports Canadian postal codes by API calls.

That means you can do:
- Distance between postal codes
- Postal codes by radius
- Postal code to location
- Location to postal codes
- Address auto-fill
Try all of the API features https://www.zipcodeapi.com/API.
Canadian postal codes are included in a free subscription. And paid subscriptions include US zip codes and Canadian postal codes.