You are strongly encouraged to use Represent instead.
A postal code containing a single electoral district:https://postal-code-to-edid-webservice.herokuapp.com/postal_codes/A1A1A1
A postal code containing multiple electoral districts:https://postal-code-to-edid-webservice.herokuapp.com/postal_codes/K0A1K0
You can also get the electoral districts in CSV format:https://postal-code-to-edid-webservice.herokuapp.com/postal_codes/K0A1K0/csv
Or as JSONP for cross-domain AJAX requests:https://postal-code-to-edid-webservice.herokuapp.com/postal_codes/K0A1K0/jsonp?callback=success
The API returns the IDs used by Elections Canada to represent electoral districts. For more documentation, see here.