Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jupyter-naas
GitHub Repository: jupyter-naas/awesome-notebooks
Path: blob/master/Abstract API/Abstract_API_Check_Email_Validation.ipynb
2973 views
Kernel: Python 3

Abstract API.png

Abstract API - Check Email Validation

Give Feedback | Bug report

Tags: #abstractapi #email #validation #api #check #tester

Last update: 2023-04-12 (Created: 2023-02-23)

Description: This notebook will demonstrate how to use Abstract API to check if an email is valid.

Input

Import libraries

import requests import naas from pprint import pprint

Setup Variables

api_key = naas.secret.get("ABSTRACT_API") or "YOUR_API_KEY" email = "[email protected]"

Model

Validate Email

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)

Output

Display result

pprint(response.json())