0% found this document useful (0 votes)
24 views79 pages

A Beginners Guidebook To Using APILayers APIs With Python

The document discusses a Disposable Email Detection API that can check if an email address is disposable or fake. This is useful for user registration and email marketing to ensure valid email addresses. Popular disposable email domains include Mailinator, Guerrilla Mail, and 10MinuteMail. A list of 10 common disposable email providers and their domains is also provided. The API helps identify disposable addresses that may not engage with marketing emails.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
24 views79 pages

A Beginners Guidebook To Using APILayers APIs With Python

The document discusses a Disposable Email Detection API that can check if an email address is disposable or fake. This is useful for user registration and email marketing to ensure valid email addresses. Popular disposable email domains include Mailinator, Guerrilla Mail, and 10MinuteMail. A list of 10 common disposable email providers and their domains is also provided. The API helps identify disposable addresses that may not engage with marketing emails.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 79

https://apilayer.

com/marketplace/gender-api
Here is a Python code example for Gender API followed by
an explanation of what the code does:

import requests
impon json

url = "https://api.apitayer.com/gender/gender/by-email-address"

# Define email address


email = "sandra.mi ler14@gmail.com

# Create JSON payload


payload= json.dumps({
"email-: email
}).encode( �utf-8-}

# Set headers
headers - {
"apikey": YOUR API KEY·#
"Content• Type·: "application/json"

# Send API request


response= requests.post(url headers=headers, data=payload)

# Get status code and API result


status code - response.status code
result - rcsponso.text
pr nt result,

!n ! 11 t.a»o1tt r �;i••t.•
. ••t :•vn
The result is a JSON object returned by the
Gender API in response to a request for the email
# r.�r,n�,
- fl•
f
�1rn. Jll•rl•
lfifrrnff
ll � address sandra.miller14@gmail.com.
, 0, tt � J �� �
u•1lobd • )•7n.o v•lC
The API determined that the associated first name
•� t• I c:a.&11
, I.·"·�·. 1.t I

# ,I! ::r ",ur,. nt


r • f
••ri If)'• t • lla,1- lt >nr.�V 'l;O I 1nr..l ,.,_ •
is ''Sandra'', the last name is ''Miller'', and the
"( � n -?ype"t pp 1�• IQn/� �
gender is ''female'', with a probability of 0.98.
I -� .!. .....__ I ,l\i ,.
.tr�.:'l"lf' - t'�,. 1. • t •.-.&1.i:l, b • :•• eaj,e:•. �•t.••P-•J'l •JI

I "
-�-'"....- .
• , a.It • \IJ
r•,.sx·'I•• ..t.li,11.ulf�i:�::t•
wwuJr. The input data provided to the API included the
email address and the country code ''US''.
•�t•, l
•u-.u1•, •••J.11••• l��l.af�.-1.,� •
The ''details'' field in the result includes additional

,- ICSa U '-•• C' •.
'N &an"I
0
lJ-• •

information such as the number of credits used,
..
• �l• •r �JJOtl.
. the duration of the API call, and the number of
.,,,.. , ·""-.,,_ ,,,,,...s·, .• �,-·
••&1Tiy , Ill \,

•:.-.��\ to-.4�•, t��••


•t• "�- ·, .,.11 ,·,
samples used to make the prediction.
'· t • ....,....,.,• • :t ,1 ·w
&>.i...o.a»•• 1.�y•, 0.'IIJ,
,,• I ,r ..la'
'
The ''result-found'' field indicates that the API
was able to determine the gender associated with
the email address.
Disposable Email Detection API
Disposable Email Detection API

A disposable or a fake email looks like a real email


address. Unfortunately, it is a throwaway address that is
used once or twice and never again. So there will be no
one reading all the marketing emails you send to that
address.

Checking disposable email addresses can be


beneficial in various business cases to ensure the
quality and reliability of user data. Here are a couple of
common business cases for checking disposable email
addresses:.

► User Registration: When users sign up for your


service or create an account, you can validate their
email addresses to ensure they are using
legitimate, non-disposable email addresses. This
helps prevent the creation of fake or temporary
accounts.
Here is a list of some popular disposable email
► Email Marketing Campaigns: If you run email address providers along with their domains:
marketing campaigns or send important
notifications to your users, it's important to ensure
1. Mailinator: mailinator.com
that the email addresses on your mailing list are
2. Guerrilla Mail: guerrillamail.com
valid and active. By checking for disposable email
3. 10 Minute Mail: 1 0minutemail.com
addresses, you can filter out addresses that are
4. Temp Mail: temp-mail.org
unlikely to engage with your emails, improving the
5. Fake Mail Generator: fakemailgenerator.com
effectiveness of your campaigns.
6. YOPmail: yopmail.com
7. Dispostable: dispostable.com
8. Throwawaymail: throwawaymail.com
9. Maildrop: maildrop.cc
10. Nada: nada.email

These are just a few examples, and there are many


Get your free API key other disposable email address providers available.
It's worth noting that the availability and domains of
https://apilayer.com/marketplace/ disposable email address providers may change over
disposable_email-api time, and this is where this API is really useful for
checking.

You might also like