Go to this link https://cleantalk.org/register and create your account for your organizaton.You will get a 7 days free trial. You will get a api key to use and replace key in a code.
While using code pass the user_email, Name of user (Optional) and user IP address. There are a different ways to capture a user IP address. Use any option as per your change.
Check this link https://cleantalk.org/help/api-cleantalk-all for the different methods and parameters for different checks.