Email Verifier
Try for free
Pay $9.99 for 1,000 results
Go to Store
Email Verifier
devil_port369-owner/email-verifier
Try for free
Pay $9.99 for 1,000 results
Verify emails with this Apify actor: get meta info like full name, domain, and deliverability status. Input bulk emails, receive detailed JSON output. Fast, accurate email validation.
Developer
Maintained by Community
Actor Metrics
9 monthly users
4.0 / 5 (4)
No bookmarks yet
>99% runs succeeded
Created in Mar 2025
Modified 4 days ago
Categories
.actor/Dockerfile
1# First, specify the base Docker image.
2# You can see the Docker images from Apify at https://hub.docker.com/r/apify/.
3# You can also use any other image from Docker Hub.
4FROM apify/actor-python:3.13
5
6# Second, copy just requirements.txt into the Actor image,
7# since it should be the only file that affects the dependency install in the next step,
8# in order to speed up the build
9COPY requirements.txt ./
10
11# Install the packages specified in requirements.txt,
12# Print the installed Python version, pip version
13# and all installed packages with their versions for debugging
14RUN echo "Python version:" \
15 && python --version \
16 && echo "Pip version:" \
17 && pip --version \
18 && echo "Installing dependencies:" \
19 && pip install -r requirements.txt \
20 && echo "All installed Python packages:" \
21 && pip freeze
22
23# Next, copy the remaining files and directories with the source code.
24# Since we do this after installing the dependencies, quick build will be really fast
25# for most source file changes.
26COPY . ./
27
28# Use compileall to ensure the runnability of the Actor Python code.
29RUN python3 -m compileall -q .
30
31# Create and run as a non-root user.
32RUN useradd --create-home apify && \
33 chown -R apify:apify ./
34USER apify
35
36# Specify how to launch the source code of your Actor.
37# By default, the "python3 -m src" command is run
38CMD ["python3", "-m", "src"]
.actor/actor.json
1{
2 "actorSpecification": 1,
3 "name": "email-verifier",
4 "version": "0.2",
5 "buildTag": "latest",
6 "minMemoryMbytes": 512,
7 "maxMemoryMbytes": 1024,
8 "environmentVariables": {},
9 "dockerfile": "Dockerfile",
10 "readme": "./README.md",
11 "input": "input_schema.json",
12 "storages": {
13 "dataset": {
14 "actorSpecification": 1,
15 "views": {
16 "overview": {
17 "title": "Overview",
18 "transformation": {
19 "fields": [
20 "EmailAddress",
21 "FullName",
22 "EmailStatus",
23 "MessageStatus",
24 "Score",
25 "IsDisposable",
26 "DoesAcceptAll",
27 "IsNoReply"
28 ]
29 },
30 "display": {
31 "component": "table",
32 "properties": {
33 "EmailAddress": {
34 "label": "Email Address",
35 "format": "text"
36 },
37 "FullName": {
38 "label": "Full Name",
39 "format": "text"
40 },
41 "EmailStatus": {
42 "label": "Email Status",
43 "format": "bool"
44 },
45 "MessageStatus": {
46 "label": "Message Status",
47 "format": "text"
48 },
49 "Score": {
50 "label": "Score",
51 "format": "number"
52 },
53 "IsDisposable": {
54 "label": "IsDisposable",
55 "format": "bool"
56 },
57 "DoesAcceptAll": {
58 "label": "DoesAcceptAll",
59 "format": "bool"
60 },
61 "IsNoReply": {
62 "label": "IsNoReply",
63 "format": "bool"
64 }
65 }
66 }
67 }
68 }
69 }
70 }
71}
.actor/input_schema.json
1{
2 "title": "Email Verifier",
3 "description": "Verify Emails undeliverable",
4 "type": "object",
5 "schemaVersion": 1,
6 "properties": {
7 "emails": {
8 "title": "Email List",
9 "description": "Enter email ids",
10 "type": "array",
11 "editor": "stringList",
12 "prefill": ["mk@gmail.com"]
13 }
14 },
15 "required": ["emails"],
16 "additionalProperties": false
17}
src/__init__.py
src/__main__.py
1import asyncio
2
3from .main import main
4
5# Execute the Actor entry point.
6asyncio.run(main())
src/main.py
1import asyncio
2import json
3import math
4from urllib.parse import quote
5import requests
6from apify import Actor
7import random
8import time
9
10scrape_do_api_key = 'b04df236f6794dca95aa664aa400cc968a176d9430f'
11max_thread = 1
12user_agents_list = [
13 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0',
14 "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/537.36 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1",
15 "Mozilla/5.0 (iPad; CPU OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1",
16 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36',
17 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:118.0) Gecko/20100101 Firefox/118.0',
18 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36 Edg/117.0.2045.55',
19 'Mozilla/5.0 (Macintosh; Intel Mac OS X 12_0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15',
20 'Mozilla/5.0 (Macintosh; Intel Mac OS X 12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36',
21 'Mozilla/5.0 (Macintosh; Intel Mac OS X 12.0; rv:118.0) Gecko/20100101 Firefox/118.0',
22 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1',
23 'Mozilla/5.0 (Linux; Android 12; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Mobile Safari/537.36',
24 'Mozilla/5.0 (Android 12; Mobile; rv:118.0) Gecko/118.0 Firefox/118.0',
25 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36 OPR/91.0.4516.65',
26 'Mozilla/5.0 (Linux; Android 12; SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Mobile Safari/537.36 OPR/91.1.4516.65',
27 'Mozilla/5.0 (Linux; Android 12; SM-G991B) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/18.0 Chrome/117.0.5938.132 Mobile Safari/537.36',
28 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.132 Safari/537.36',
29 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:118.0) Gecko/20100101 Firefox/118.0',
30 'Mozilla/5.0 (iPad; CPU OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/117.0.5938.132 Mobile/15E148 Safari/604.1',
31]
32
33
34def get_subset_records(main_list: [{}], num_threads: int):
35 subset_size = math.ceil(len(main_list) / num_threads)
36 subsets = [main_list[i:i + subset_size] for i in range(0, len(main_list), subset_size)]
37 return subsets
38
39
40def verify_email(email, retries=1, base_delay=3):
41 email = email.strip()
42 headers = {
43 "content-type": "application/json",
44 "origin": "https://emailable.com",
45 "referer": "https://emailable.com/email-verifier/",
46 "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",
47 "cookie": 'language=en; rewardful.referral={%22id%22:%22f200aeaa-11d0-4e50-a61a-bf9b784c0c5e%22%2C%22created_at%22:%222025-03-09T08:37:49.667Z%22%2C%22affiliate%22:{%22id%22:%22999e148f-f575-49e5-a18d-9c2c15c31de7%22%2C%22name%22:%22Azura%20Nguyen%22%2C%22first_name%22:%22Azura%22%2C%22last_name%22:%22Nguyen%22%2C%22token%22:%22azura%22}%2C%22campaign%22:{%22id%22:%22232cf31a-840d-4ed6-86da-0b222f61059c%22%2C%22name%22:%22Emailable%20Affiliate%20Program%20-%20Tier%201%22}%2C%22coupon%22:null%2C%22cookie%22:{%22domain%22:%22emailable.com%22}}; crisp-client%2Fsession%2F4520e27f-23f2-4812-a391-a7463cd02d54=session_8877f61e-a514-4d20-b77c-3ea9c611ac29; cf_clearance=l89CGsF.D6uVPupMd4VeoPb3SqfDtFeMxkYnvLOml98-1741509474-1.2.1.1-wPkbCIsCfU6CZlfGnzGvVJsMWlGaiIsulhdWW3qV8Sc9wdPsR9BeGVNx4VIyUNFjmUy2dOk_9U3av3pkCr9QdcOT4zv_xEZSUvrre1jZQ.t5_uM8y9GbgJvSQaWXs4c.8cClMK3bmEzoA1dT_8Et1fSjW8JpWuHT43MDmF..FCvNgwXGSrjDyVeInT2uEVUGcA_jxkss37e5oHkotUhBpE_XAqRRo2K2FDYVEKyPZ9VyyKoHY3K4PEUwlWQprJcZ3Aqdf0ciE9UVRyaqEN4sy.8rUuFtaFl7ialh5nMshGwH.megu7LpVnRbRxutCsX1Gy_OpTMrOMYG_.FNpGehsJNs0gKRTsVgHhJja6Fn4QWcwP8SN8FLv_3mKuCoELV5H_RZ6aaeqi244d.GY4i.sU.Wj4VvXl3B7k0gTljOdco; ph_phc_3NwTTnptrxMuD66f6kuYmuphgvDTA1zpFY0Ns8fGesp_posthog=%7B%22distinct_id%22%3A%2201957a0d-9962-7aef-ab72-423ca627bbcc%22%2C%22%24sesid%22%3A%5B1741510194533%2C%2201957a0d-995e-79cc-a51f-611e19278543%22%2C1741509466462%5D%2C%22%24initial_person_info%22%3A%7B%22r%22%3A%22https%3A%2F%2Fwww.google.com%2F%22%2C%22u%22%3A%22https%3A%2F%2Femailable.com%2F%3Fvia%3Dazura%26gad_source%3D1%26gclid%3DCj0KCQiAlbW-BhCMARIsADnwasrJFJlKKfhMqvnzCQihB3-ZH6rsRjC13H_7BGLxNtrorBbeqepxDVMaAramEALw_wcB%22%7D%7D'
48 }
49
50 base_url = f'https://emailable.com/test-email-verifier'
51 payload = {
52 "email": email
53 }
54 url = f"http://api.scrape.do?token=b04df236f6794dca95aa664aa400cc968a176d9430f&url={quote(base_url)}"
55
56 for attempt in range(retries):
57 try:
58 response = requests.post(url,
59 headers=headers,
60 data=json.dumps(payload)
61 )
62 response.raise_for_status()
63 response_json = response.json()
64 response.close()
65 result = {
66 "User": response_json.get('user', ''),
67 "DoesAcceptAll": response_json.get('accept_all', ''),
68 "IsDisposable": response_json.get('disposable', ''),
69 "Domain": response_json.get('domain', ''),
70 "EmailAddress": response_json.get('email', ''),
71 "Score": response_json.get('score', ''),
72 "SMTP": response_json.get('smtp_provider', ''),
73 "EmailStatus": response_json.get('state', ''),
74 "MessageStatus": response_json.get('reason', ''),
75 "FullName": response_json.get('full_name', ''),
76 "FirstName": response_json.get('first_name', ''),
77 "LastName": response_json.get('last_name', ''),
78 "Gender": response_json.get('gender', ''),
79 "IsFree": response_json.get('free', ''),
80 "IsMailboxFull": response_json.get('mailbox_full', ''),
81 "MXRecord": response_json.get('mx_record', ''),
82 "IsNoReply": response_json.get('no_reply', ''),
83 "Role": response_json.get('role', ''),
84 "Duration": response_json.get('duration', ''),
85 }
86 return result
87
88 except requests.RequestException as e:
89 if attempt < retries - 1: # If not the last attempt
90 delay = random.uniform(base_delay, base_delay + 2) # Random delay between 5-7 seconds
91 Actor.log.warning(f"Attempt {attempt + 1} failed for {email}: {e}. Retrying in {delay:.2f} seconds...")
92 time.sleep(delay)
93 continue
94 else: # Last attempt failed
95 Actor.log.error(f"Failed to verify email {email} after {retries} attempts: {e}")
96 return {
97 "EmailAddress": email,
98 "EmailStatus": "error",
99 "MessageStatus": "error"
100 }
101
102
103async def run(subset_input_data):
104 for subsets in subset_input_data:
105 print("")
106 print(f"Running {len(subsets)} records.")
107 for email in subsets:
108 try:
109 r1 = {}
110 print(f'[ STARTED ] {email} ...')
111 try:
112 r1.update(verify_email(email))
113 except Exception as e:
114 Actor.log.info(f'Unknown Issue: {e}')
115 await Actor.push_data(r1)
116 print(f'[ DONE ] {email}')
117 except Exception:
118 Actor.log.exception(f'Cannot extract data from {email} profile.')
119
120
121async def main() -> None:
122 try:
123 async with Actor:
124 # Read the Actor input
125 actor_input = await Actor.get_input() or {}
126 input_data = actor_input.get('emails')
127
128 user = await Actor.apify_client.user().get()
129 isPaidUser = user.get('isPaying')
130
131 if not input_data:
132 print('No input data specified, exiting...')
133 await Actor.exit()
134
135 clean_urls = set()
136
137 for email_id in input_data:
138 if email_id:
139 clean_urls.add(email_id.strip())
140
141 all_clean_urls = list(clean_urls)
142
143 clean_urls = None
144 input_data = None
145
146 if not isPaidUser:
147 await Actor.set_status_message(
148 'As per apify you are not paid user. Please subscribe for more results. Thank you!')
149 Actor.log.warning("As per apify you are not paid user. Please subscribe for more results. Thank you!")
150 await Actor.push_data(
151 {"result": "As per apify you are not paid user. Please subscribe for the more results. Thank you!"})
152 all_clean_urls = all_clean_urls[0:5]
153
154 subset_inputs = get_subset_records(all_clean_urls, max_thread)
155
156 all_clean_urls = None
157
158 all_subset_records = get_subset_records(subset_inputs, max_thread)
159 try:
160 tasks = [asyncio.create_task(run(subset)) for subset in all_subset_records]
161 await asyncio.gather(*tasks)
162 except Exception as e:
163 Actor.log.exception(f'Async Gather completed.')
164 await Actor.exit()
165
166 except:
167 print('Completed')
src/py.typed
1
.dockerignore
1.git
2.mise.toml
3.nvim.lua
4storage
5
6# The rest is copied from https://github.com/github/gitignore/blob/main/Python.gitignore
7
8# Byte-compiled / optimized / DLL files
9__pycache__/
10*.py[cod]
11*$py.class
12
13# C extensions
14*.so
15
16# Distribution / packaging
17.Python
18build/
19develop-eggs/
20dist/
21downloads/
22eggs/
23.eggs/
24lib/
25lib64/
26parts/
27sdist/
28var/
29wheels/
30share/python-wheels/
31*.egg-info/
32.installed.cfg
33*.egg
34MANIFEST
35
36# PyInstaller
37# Usually these files are written by a python script from a template
38# before PyInstaller builds the exe, so as to inject date/other infos into it.
39*.manifest
40*.spec
41
42# Installer logs
43pip-log.txt
44pip-delete-this-directory.txt
45
46# Unit test / coverage reports
47htmlcov/
48.tox/
49.nox/
50.coverage
51.coverage.*
52.cache
53nosetests.xml
54coverage.xml
55*.cover
56*.py,cover
57.hypothesis/
58.pytest_cache/
59cover/
60
61# Translations
62*.mo
63*.pot
64
65# Django stuff:
66*.log
67local_settings.py
68db.sqlite3
69db.sqlite3-journal
70
71# Flask stuff:
72instance/
73.webassets-cache
74
75# Scrapy stuff:
76.scrapy
77
78# Sphinx documentation
79docs/_build/
80
81# PyBuilder
82.pybuilder/
83target/
84
85# Jupyter Notebook
86.ipynb_checkpoints
87
88# IPython
89profile_default/
90ipython_config.py
91
92# pyenv
93# For a library or package, you might want to ignore these files since the code is
94# intended to run in multiple environments; otherwise, check them in:
95.python-version
96
97# pdm
98# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
99#pdm.lock
100# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
101# in version control.
102# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
103.pdm.toml
104.pdm-python
105.pdm-build/
106
107# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
108__pypackages__/
109
110# Celery stuff
111celerybeat-schedule
112celerybeat.pid
113
114# SageMath parsed files
115*.sage.py
116
117# Environments
118.env
119.venv
120env/
121venv/
122ENV/
123env.bak/
124venv.bak/
125
126# Spyder project settings
127.spyderproject
128.spyproject
129
130# Rope project settings
131.ropeproject
132
133# mkdocs documentation
134/site
135
136# mypy
137.mypy_cache/
138.dmypy.json
139dmypy.json
140
141# Pyre type checker
142.pyre/
143
144# pytype static type analyzer
145.pytype/
146
147# Cython debug symbols
148cython_debug/
149
150# PyCharm
151# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
152# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
153# and can be added to the global gitignore or merged into this file. For a more nuclear
154# option (not recommended) you can uncomment the following to ignore the entire idea folder.
155.idea/
.gitignore
1.mise.toml
2.nvim.lua
3storage
4
5# The rest is copied from https://github.com/github/gitignore/blob/main/Python.gitignore
6
7# Byte-compiled / optimized / DLL files
8__pycache__/
9*.py[cod]
10*$py.class
11
12# C extensions
13*.so
14
15# Distribution / packaging
16.Python
17build/
18develop-eggs/
19dist/
20downloads/
21eggs/
22.eggs/
23lib/
24lib64/
25parts/
26sdist/
27var/
28wheels/
29share/python-wheels/
30*.egg-info/
31.installed.cfg
32*.egg
33MANIFEST
34
35# PyInstaller
36# Usually these files are written by a python script from a template
37# before PyInstaller builds the exe, so as to inject date/other infos into it.
38*.manifest
39*.spec
40
41# Installer logs
42pip-log.txt
43pip-delete-this-directory.txt
44
45# Unit test / coverage reports
46htmlcov/
47.tox/
48.nox/
49.coverage
50.coverage.*
51.cache
52nosetests.xml
53coverage.xml
54*.cover
55*.py,cover
56.hypothesis/
57.pytest_cache/
58cover/
59
60# Translations
61*.mo
62*.pot
63
64# Django stuff:
65*.log
66local_settings.py
67db.sqlite3
68db.sqlite3-journal
69
70# Flask stuff:
71instance/
72.webassets-cache
73
74# Scrapy stuff:
75.scrapy
76
77# Sphinx documentation
78docs/_build/
79
80# PyBuilder
81.pybuilder/
82target/
83
84# Jupyter Notebook
85.ipynb_checkpoints
86
87# IPython
88profile_default/
89ipython_config.py
90
91# pyenv
92# For a library or package, you might want to ignore these files since the code is
93# intended to run in multiple environments; otherwise, check them in:
94.python-version
95
96# pdm
97# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
98#pdm.lock
99# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
100# in version control.
101# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
102.pdm.toml
103.pdm-python
104.pdm-build/
105
106# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
107__pypackages__/
108
109# Celery stuff
110celerybeat-schedule
111celerybeat.pid
112
113# SageMath parsed files
114*.sage.py
115
116# Environments
117.env
118.venv
119env/
120venv/
121ENV/
122env.bak/
123venv.bak/
124
125# Spyder project settings
126.spyderproject
127.spyproject
128
129# Rope project settings
130.ropeproject
131
132# mkdocs documentation
133/site
134
135# mypy
136.mypy_cache/
137.dmypy.json
138dmypy.json
139
140# Pyre type checker
141.pyre/
142
143# pytype static type analyzer
144.pytype/
145
146# Cython debug symbols
147cython_debug/
148
149# PyCharm
150# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
151# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
152# and can be added to the global gitignore or merged into this file. For a more nuclear
153# option (not recommended) you can uncomment the following to ignore the entire idea folder.
154.idea/
requirements.txt
1# Feel free to add your Python dependencies below. For formatting guidelines, see:
2# https://pip.pypa.io/en/latest/reference/requirements-file-format/
3
4apify ~= 1.4.0
5beautifulsoup4 ~= 4.12.2
6httpx ~= 0.25.2
7requests ~= 2.28.1
8types-beautifulsoup4 ~= 4.12.0.7
9dnspython==2.2.1
10pymongo==4.0.2