https://github.com/antsanchez/gozerobounce
Go implementation for ZeroBounce API
https://github.com/antsanchez/gozerobounce
go golang mail validation zerobounce
Last synced: 6 months ago
JSON representation
Go implementation for ZeroBounce API
- Host: GitHub
- URL: https://github.com/antsanchez/gozerobounce
- Owner: antsanchez
- License: mit
- Created: 2020-12-10T14:14:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-13T12:10:31.000Z (over 5 years ago)
- Last Synced: 2025-11-22T15:10:45.555Z (8 months ago)
- Topics: go, golang, mail, validation, zerobounce
- Language: Go
- Homepage: https://www.zerobounce.net/
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoZeroBounce
Go implementation for [ZeroBounce Email Validation API v2](https://www.zerobounce.net/docs/email-validation-api-quickstart/)
THIS PROJECT IS STILL IN DEVELOPMENT!
## Installation and Usage
```sh
go get github.com/antsanchez/gozerobounce
```
You can use it like this:
```go
package main
import (
"fmt"
"os"
"github.com/antsanchez/gozerobounce"
)
func main() {
gozerobounce.APIKey = "... Your API KEY ..."
// For Querying a single E-Mail and IP
// IP can also be an empty string
response := gozerobounce.Validate("email@example.com", "123.123.123.123")
// Now you can check status
if response.Status == "valid" {
fmt.Println("This email is valid")
}
// .. or Substatus
if response.SubStatus == "disposable" {
fmt.Println("This email is disposable")
}
// You can also check your credits
credits := gozerobounce.GetCredits()
fmt.Println("Credits left:", credits.Credits)
}
```
## Already implemented
- Validate single email
- Get gredits