// guide
Verify students and teachers for education discounts by email
For saaS and e-commerce teams running student, teacher or academic pricing · Updated · 5 min read
Anyone can type a .edu-looking address into my student discount form, and the schools that don't use .edu keep emailing support because they can't get in.
To verify a student or teacher for an education discount, check three things in order: the address is on a school domain (pingutil returns category: "educational" for .edu, .ac.<cc> and .edu.<cc> domains, including subdomains like cs.harvard.edu), the mailbox exists (/v1/verify returns valid or an acceptable risky), and the person controls it (you send a confirmation link and they click it). The first two stop typos and fake addresses before you send anything. The third is the actual proof. Then give the schools that don't use an academic domain a manual path, because many good universities don't.
This guide is for anyone offering academic pricing who wants something better than a regex on .edu and doesn't want to buy a full identity verification service.
What this problem costs you
Education discounts tend to be generous, which makes them a target. When the check is weak, you get:
- Discount leakage. People type a made-up
@something.eduaddress, or a friend's, and get the student price without any connection to the school. - Support load from real students. A student at a European university with a
.deor.chaddress fails your.educheck and opens a ticket. So does a teacher whose school district uses an ordinary domain. - Wasted confirmation emails. Sending a confirmation link to an address that doesn't exist is a bounce on your sending domain.
- Over-correction. After a leak, teams often add manual document review for everyone, which slows down the honest majority.
A domain check plus a mailbox check plus a confirmation link covers most of this, and a manual fallback covers the rest. The background on the domain side is in how to verify a student email address.
How pingutil solves it
- Classify the domain.
POST /v1/lookupwith the address andskip_enrichment: true. Ifcategoryiseducational, the domain matched an academic TLD rule. pingutil checks the full hostname for these rules, sostudent@mail.cs.example.edustill counts even though the registrable domain is shorter. - Check the mailbox.
POST /v1/verifywith the same address. This catches typos (did_you_mean), domains with no mail server, and mailboxes the school's server says don't exist, before you send a confirmation email. It counts toward the account's 300 verifications a day. - Send a confirmation link with a short expiry to the address. Grant the discount when it's clicked. pingutil doesn't do this step for you; your existing email confirmation flow does.
- Route everything else to a fallback. Addresses on non-academic domains, and anything the mailbox check can't settle, go to a "verify another way" path: a document upload, an allowlist of domains you've confirmed, or a third-party student verification service.
- Re-check on renewal. Student status ends. Re-run the confirmation once a year, and expect some addresses to start bouncing when graduates lose access.
Build your own allowlist for the gaps
The TLD rules can't know that ethz.ch or tum.de are universities. When support approves a school manually, add its registrable domain to your own allowlist so the next student from that school gets through automatically. The educational category page explains which patterns match.
Decision table: results to actions
Lookup category |
Verify result | Action |
|---|---|---|
educational |
valid |
Send confirmation link. Grant discount on click |
educational |
risky, reason: accept_all |
Send confirmation link. Many school mail systems accept any address, and the click is the real check |
educational |
unknown |
Send confirmation link. If it bounces, ask for another address |
educational |
invalid (mailbox_not_found, no_mx, ...) |
Don't send. Show the error and did_you_mean if present |
educational |
risky, reason: role_based |
Deny the individual discount. admissions@ isn't a student |
company, domain on your allowlist |
valid, risky or unknown |
Treat as educational |
company, not on your allowlist |
any | Manual path: document check or domain review |
government |
any | Possibly a public school teacher in some countries. Manual path or your public-sector policy |
free, isp |
any | Not a school address. Offer the manual path |
disposable or verdict.is_spam: true |
any | Deny |
Complete example: an eligibility check in Python
This runs when the user submits the student discount form. allowlist is your own set of manually approved school domains; send_confirmation is your existing email flow.
import os
import requests
BASE = "https://pingutil.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['PINGUTIL_KEY']}"} # pk_live_...
def lookup(email):
r = requests.post(
f"{BASE}/lookup",
headers=HEADERS,
json={"input": email, "skip_enrichment": True},
timeout=5,
)
r.raise_for_status()
return r.json()
def verify(email):
r = requests.post(f"{BASE}/verify", headers=HEADERS, json={"email": email}, timeout=20)
r.raise_for_status()
return r.json()
def check_education_eligibility(email, allowlist, send_confirmation):
try:
d = lookup(email)
except requests.RequestException:
return {"result": "retry_later"}
if d["verdict"]["is_spam"]:
return {"result": "denied", "reason": d["verdict"]["reason"]}
academic = d["category"] == "educational" or d["domain"] in allowlist
if not academic:
return {"result": "manual_review", "reason": f"category_{d['category']}"}
try:
v = verify(email)
except requests.RequestException:
v = None # mailbox check unavailable: the confirmation link still proves ownership
if v:
if v["status"] == "invalid":
return {"result": "fix_address", "reason": v["reason"], "did_you_mean": v["did_you_mean"]}
if v["status"] == "risky" and v["reason"] in ("role_based", "randomized_local_part"):
return {"result": "denied", "reason": v["reason"]}
send_confirmation(email)
return {"result": "confirmation_sent"}
The function never grants the discount itself. It decides whether an address is worth a confirmation email, and the click on that email is what flips the account to academic pricing. If pingutil is unreachable, the code falls back to sending the confirmation anyway for academic domains, because ownership is what matters most.
Edge cases and limits
- Many universities don't use academic TLDs. Much of continental Europe uses plain national domains (
ethz.ch,tum.de,uni-heidelberg.de), and those come back ascompany. Your allowlist and manual path exist for them. The open university-domains-list project on GitHub is a reasonable starting point for seeding one, but check entries before you trust them. - K-12 and districts vary. A US district on something like
<district>.k12.ca.us, or a school on.org, won't match the educational rules. Teacher discounts need the manual path more often than student ones. - Alumni, staff and researchers share the domain.
educationalmeans "on a school's domain", not "enrolled". Some schools keep alumni addresses active indefinitely. If that matters, require yearly re-confirmation or a document check. - Not every
.ac.<cc>is a teaching institution. Some country academic zones include research institutes and other bodies. For most discount programs that's acceptable. - School mail servers are often hard to probe. Large hosted mail platforms and campus gateways can answer
accept_allor decline to answer. That's why the table sends a confirmation forrisky/accept_allandunknowninstead of requiringvalid. More on why in catch-all email domains. - Verification budget. 300 addresses a day and 3,000 a month per account on the Free plan. If your discount form gets more than that, skip the mailbox check and rely on the confirmation link; the domain lookup alone (2,000 a day, 30,000 a month) still filters most junk.
The education verification use case shows how this fits into a pricing page, and the email verification page lets you try a mailbox check on a real school address.
Next step
Run a few school addresses through the live demo to see which come back educational. Then create an API key on the dashboard, add check_education_eligibility to your discount form, and start your allowlist with the schools your support team already approves by hand. Request and response details are in the API reference.
Questions people ask
- Does an educational email prove someone is a current student?
- No. It shows the address is on a school's domain. Staff, faculty, researchers and many alumni have addresses on the same domain, and some universities let graduates keep their address for years. Use an annual re-check or a document check if that difference matters for your pricing.
- Which domains does pingutil classify as educational?
- Domains under .edu, plus country-coded academic zones such as .ac.<cc> and .edu.<cc>, for example ox.ac.uk or unimelb.edu.au. Subdomains like cs.harvard.edu count too. Universities that use an ordinary national domain, such as ethz.ch, come back as company.
- Is checking that the mailbox exists enough?
- No. A mailbox check tells you the address can receive mail, not that the person filling in your form owns it. Always send a confirmation link to the address before granting the discount.