I recommend you read the section "Consuming the API (and the Mechanics Behind the Range Search)" of https://www.troyhunt.com/ive-just-launched-pwned-passwords-v... - it explains how you can search for your password with the API without letting the service know what your password is.