Template request | Bug report | Generate Data Product
Tags: #abstractapi #email #validation #api #check #tester
Author: Florent Ravenel
Description: This notebook will demonstrate how to use Abstract API to check if an email is valid.
References:
import requests
import naas
from pprint import pprint
api_key
: Get your API keyemail
: Email to be validated
api_key = naas.secret.get("ABSTRACT_API") or "YOUR_API_KEY"
email = "[email protected]"
Validate an email address using Abstract API's Email Validation API.
url = f"https://emailvalidation.abstractapi.com/v1/?api_key={api_key}&email={email}"
response = requests.get(url)
pprint(response.json())