Lookup MX records
curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/email/mx-lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.comimport requests
url = "https://apix.spotzee.com/api/ext/generic/email/mx-lookup"
payload = { "domain": "example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({domain: 'example.com'})
};
fetch('https://apix.spotzee.com/api/ext/generic/email/mx-lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apix.spotzee.com/api/ext/generic/email/mx-lookup"
payload := strings.NewReader("domain=example.com")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "success",
"data": {
"exists": true,
"records": [
{
"exchange": "mail.example.com",
"priority": 10
}
],
"domain": "<string>"
}
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}Email
Lookup MX records
Retrieves Mail Exchange (MX) records for a domain. Returns mail server hostnames and their priorities, sorted by priority. Essential for email configuration and deliverability verification.
POST
/
generic
/
email
/
mx-lookup
Lookup MX records
curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/email/mx-lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data domain=example.comimport requests
url = "https://apix.spotzee.com/api/ext/generic/email/mx-lookup"
payload = { "domain": "example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({domain: 'example.com'})
};
fetch('https://apix.spotzee.com/api/ext/generic/email/mx-lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apix.spotzee.com/api/ext/generic/email/mx-lookup"
payload := strings.NewReader("domain=example.com")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"status": "success",
"data": {
"exists": true,
"records": [
{
"exchange": "mail.example.com",
"priority": 10
}
],
"domain": "<string>"
}
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}{
"status": "error",
"error": "Invalid request parameters"
}Authorizations
Bearer token authentication. Use format: Bearer YOUR_API_KEY
Body
application/x-www-form-urlencoded
Domain name
Example:
"example.com"
Response
Successfully retrieved MX records
Indicates successful operation
Available options:
success Hide child attributes
Hide child attributes
Whether MX records exist
Queried domain
Was this page helpful?
⌘I