Video tutorials

Real-time email validation: Verifying emails with RESTful API or Zapier

Enhance your email data quality and deliverability with real-time email validation using our RESTful API or Zapier integration. Verify emails on the fly for better marketing results.

Ready to verify email addresses in real time?

There are no long term commitments, so you can see the magic for yourself. Try MailerCheck for free and get 200 credits to start. No credit card required.



[Harmony] Hi everyone! Today, I'm going to show you how to use MailerCheck's API to verify email addresses in real-time. And this is a great way to screen out bad email addresses before they're added to your list.  


[Harmony] This helps to maintain your email sender's reputation by avoiding campaigns with high bounce rates and making sure you're only adding valid addresses to your email list. Now, we know in MailerCheck, you can verify email addresses from the email verification tab. And this is a great way to verify a list of email addresses. But, if you're looking to verify addresses as they're being added to your list in real-time, we'll need to use the  API feature. And for that, we'll need an API token.   


[Harmony] So we'll need to generate a new token first,  give it a name, and copy it. Now, there are two ways to use MailerChecks API to verify an email address in real-time.  


[Harmony] The first way is by using MailerChecks API  documentation. Which can be found right here and is also linked below the video. Once you have your account's API token, you can use MailerChecks API documentation to set up your post request. You will need to send a post request to the following  URL to verify a single email address and make sure to include your account's API token in the header.  


[Harmony] If we go down to the verification results you can see the different verification results that will be returned, and they are divided into different categories from Send to, Risky, and Do not send to. The Send to category is the valid emails that are safe to send. The Risky category might be safe to send to, but depending on the status it is up to you to send to those addresses. And the Do not send to are the ones we recommend removing from your list and do not send to at all. So these will be put in a different category.


[Harmony] If you are not using our API documentation, another way to verify email addresses in real time, is to use Zapier. Here in Zapier, we can create a connection between two apps and use MailerCheck to verify in real-time. In this example, I will use Mailerlite.


[Harmony] Keep in mind if you have other email marketing platforms you can use that as well. For this example I'll be using my Mailerlite account and connecting it with my MailerCheck account. And I want to verify an email address when a  subscriber is created. There are plenty of triggers here so another option is when a subscriber is added to a group. You can also verify an address when it is added to a specific group rather than your general list.


[Harmony] In this case, I will choose subscriber created and the action is Verify email address. And what this will do is verify an email address in MailerCheck when a subscriber is created in my MailerLite account. And I will click try it to set up the rest of the zap. Now here we'll need to connect both our MailerCheck and MailerLite accounts so that we can create this connection.


[Harmony] So to connect the MailerLite account I will have to choose a specific account.  You can see it already has my account name here, I can also change it. It all this requires is adding an API token from my MailerLite account click continue, and we can test the trigger to make sure it works so that when an address is added in MailerLite Zapier will pick it up.


[Harmony] And you can see it found a subscriber, Continue, and now we are going to connect the  MailerCheck account, so let's go ahead and connect the account here, and we will copy in that API  token that we retrieved earlier from the account, and you can see the account is now connected.  Click continue, we want to make sure that Zapier is pulling the email address from the  MailerLite account and sending it to be verified.


[Harmony] Test the action, and it looks like  Zapier has picked up on the email address and it was sent to MailerCheck so we can go ahead and publish this zap.


[Harmony] And now if we go back to our MailerCheck account and check our dashboard we can see that the connection between MailerLite and  MailerCheck has been made. So this means every time an email address is added to our MailerLite account, it will be verified in real-time in MailerCheck and show one of those statuses in the  MailerCheck account. Thanks for watching!