You'd use an API instead of a file upload whenever a check has to happen inside your own software. A signup form checks the address before the account is created. A CRM checks a lead when it's imported. A sequencer checks a prospect before the first send. In each case your code asks, the API answers, and nobody downloads a spreadsheet.
Behind one request sit three steps. Syntax comes first, which catches typos but proves nothing about existence. Then a DNS lookup finds the domain's MX record. Finally the service opens an SMTP connection on port 25 and names the address at the RCPT TO step. A 250 reply means accepted and a 550 means no such user. The connection closes before DATA, so no email is ever sent.
Here's what a call to ZapBounce looks like. Your code sends POST /v1/verify to app.zapbounce.com/api with a JSON body holding the address in an emails array and an X-API-Key header. The response carries a results array, and each row has status, reasonCode, the provider we spoke to, the literal smtpCode, a checkedAt timestamp and flags for role, disposable and free_provider. The single verification reference shows the full request.
Verification is POST only, never a GET with the address in the query string. An address in a URL ends up in access logs, proxy logs and browser history. Keeping it in the request body keeps it out of all three.
Lists have their own routes. POST /v1/jobs takes up to 50,000 addresses as JSON, and a CSV is read by your code and sent as the same array. You poll the job's status until it completes, then page through the rows or download the CSV export. Checks cost $5 per 1,000 on the API page, and your first 100 are free.
Related questions
How does an email verification API work?
Your code sends the address in an HTTP request. The service checks syntax, looks up the domain's MX record and asks the mail server about the mailbox over SMTP, then returns a JSON verdict. The SMTP conversation ends before any message is sent.
Is an email verification API free?
Most APIs include a small free allowance. ZapBounce gives every new account 100 free checks with no card, renewing monthly. Paid checks start at $5 for 1,000.
What is the difference between email verification and email validation?
Validation usually means the syntax check alone, while verification goes on to ask the mail server whether the mailbox exists. A full verification API runs both in one call. In a ZapBounce job, a row that fails that first step comes back invalid with the reasonCode BAD_SYNTAX.
What happens if I call the API too fast?
The API answers 429 with the code RATE_LIMITED. Rate-limited requests are never billed. Wait out the window in the X-RateLimit-Window-Seconds header, then retry the same request.