Once you subscribe, you’ll gain access to your unique API key, which is necessary for making requests. Here’s a simple way to integrate the API within your application:
/////////
import requests
url = ‘https://email-validation24.p.rapidapi.com/email/validate-email’
querystring = {“email”:“yourEmailAddress”}
headers = {
‘X-RapidAPI-Host’: ‘email-validation24.p.rapidapi.com’
‘X-RapidAPI-Key’: “YourRapidAPIKey”
}
response = requests.request(“GET”, url, headers=headers, params=querystring)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(“Failed to fetch data:”, response.status_code)
/////////
This code will transfrom the generated result by the API to JSON fromatted output where it will be easier to read from.
Note: Don’t forget to replace your Email Address with the email you’re validating and YourRapidAPIKey with your provided API key.