DNS Lookup API
Returns DNS records of a domain, including A, MX, TXT, NS, CAA, SOA and DNSKEY, and reverse DNS names of IPs.
View as Markdown| GET | /dnslookup/lookup | DNS records of a domain (A, AAAA, MX, TXT, NS or CNAME). |
| GET | /dnslookup/reverse | The PTR (reverse DNS) name of a public IP address. |
| GET | /dnslookup/records | The common records of a domain in one answer: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA and HTTPS. |
| GET | /dnslookup/caa | CAA records: the certificate authorities that may issue for a domain. |
| GET | /dnslookup/soa | SOA record of a zone: primary name server, contact and timers. |
| GET | /dnslookup/dnskey | DNSSEC DNSKEY records of a zone (keys signing its records). |
| GET | /dnslookup/ds | DS records the parent zone publishes for a signed zone (DNSSEC chain of trust). |
| GET | /dnslookup/https | HTTPS service binding records: ALPN protocols and address hints. |
| GET | /dnslookup/srv | SRV records of a service on a domain, such as the IMAPS server of gmail.com. |
| GET | /dnslookup/mailAuth | The email sender policies of a domain: its SPF record and DMARC policy, with the handling each one asks for. |
| GET | /dnslookup/dkim | The DKIM public key of a domain for one selector: the TXT record that verifies the mail the domain signs. |
lookup
/v1/dnslookup/lookupDNS records of a domain (A, AAAA, MX, TXT, NS or CNAME).
Parameters
namestring required | Domain name, such as example.com. e.g. gmail.com |
typestring | Record type: A, AAAA, MX, TXT, NS or CNAME.AAAAAMXTXTNSCNAMESOACAADNSKEYDSHTTPSdefault Ae.g. MX |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/lookup?name=gmail.com&type=MX" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/lookup?name=gmail.com&type=MX", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/lookup?name=gmail.com&type=MX", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "gmail.com", "provider": "google", "records": [ { "data": "10 alt1.gmail-smtp-in.l.google.com.", "name": "gmail.com", "ttl": 1276, "type": "MX" }, { "data": "20 alt2.gmail-smtp-in.l.google.com.", "name": "gmail.com", "ttl": 1276, "type": "MX" } ], "status": "NOERROR", "type": "MX", "validated": false }, "meta": { "cached": false, "endpoint": "lookup", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
reverse
/v1/dnslookup/reverseThe PTR (reverse DNS) name of a public IP address.
Parameters
ipstring required | Public IPv4 or IPv6 address. e.g. 8.8.8.8 |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/reverse?ip=8.8.8.8" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/reverse?ip=8.8.8.8", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/reverse?ip=8.8.8.8", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "8.8.8.8.in-addr.arpa", "provider": "google", "records": [ { "data": "dns.google.", "name": "8.8.8.8.in-addr.arpa", "ttl": 9345, "type": "PTR" } ], "status": "NOERROR", "type": "PTR", "validated": false }, "meta": { "cached": false, "endpoint": "reverse", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
records
/v1/dnslookup/recordsThe common records of a domain in one answer: A, AAAA, MX, TXT, NS, CNAME, SOA, CAA and HTTPS.
Parameters
namestring required | Domain name, such as example.com. e.g. example.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
lookups | Lookup[] |
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
name | string |
provider | string |
curl "https://api.hoshime.com/v1/dnslookup/records?name=example.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/records?name=example.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/records?name=example.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "lookups": [ { "name": "example.com", "provider": "google", "records": [ { "data": "104.20.23.154", "name": "example.com", "ttl": 231, "type": "A" }, { "data": "172.66.147.243", "name": "example.com", "ttl": 231, "type": "A" } ], "status": "NOERROR", "type": "A", "validated": true }, { "name": "example.com", "provider": "google", "records": [ { "data": "2606:4700:10::ac42:93f3", "name": "example.com", "ttl": 300, "type": "AAAA" }, { "data": "2606:4700:10::6814:179a", "name": "example.com", "ttl": 300, "type": "AAAA" } ], "status": "NOERROR", "type": "AAAA", "validated": true } ], "name": "example.com", "provider": "google" }, "meta": { "cached": false, "endpoint": "records", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 9 } }
caa
/v1/dnslookup/caaCAA records: the certificate authorities that may issue for a domain.
Parameters
namestring required | Domain name, such as example.com. e.g. google.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/caa?name=google.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/caa?name=google.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/caa?name=google.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "google.com", "provider": "google", "records": [ { "data": "0 issue \"pki.goog\"", "name": "google.com", "ttl": 19491, "type": "CAA" } ], "status": "NOERROR", "type": "CAA", "validated": false }, "meta": { "cached": false, "endpoint": "caa", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
soa
/v1/dnslookup/soaSOA record of a zone: primary name server, contact and timers.
Parameters
namestring required | Domain name, such as example.com. e.g. example.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/soa?name=example.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/soa?name=example.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/soa?name=example.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "example.com", "provider": "google", "records": [ { "data": "elliott.ns.cloudflare.com. dns.cloudflare.com. 2418004112 10000 2400 604800 1800", "name": "example.com", "ttl": 1062, "type": "SOA" } ], "status": "NOERROR", "type": "SOA", "validated": true }, "meta": { "cached": false, "endpoint": "soa", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
dnskey
/v1/dnslookup/dnskeyDNSSEC DNSKEY records of a zone (keys signing its records).
Parameters
namestring required | Domain name, such as example.com. e.g. example.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/dnskey?name=example.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/dnskey?name=example.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/dnskey?name=example.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "example.com", "provider": "google", "records": [ { "data": "256 3 13 kxipjoIbNZDsWqEKaYaGq6fM/XThrRp1ue6AV9R/n3eWxpGCeCWJb47PEEEj/Q6VAYFW/7UFo5mXoZfxKYZa3A==", "name": "example.com", "ttl": 1450, "type": "DNSKEY" }, { "data": "256 3 13 oJMRESz5E4gYzS/q6XDrvU1qMPYIjCWzJaOau8XNEZeqCYKD5ar0IRd8KqXXFJkqmVfRvMGPmM1x8fGAa2XhSA==", "name": "example.com", "ttl": 1450, "type": "DNSKEY" } ], "status": "NOERROR", "type": "DNSKEY", "validated": true }, "meta": { "cached": false, "endpoint": "dnskey", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
ds
/v1/dnslookup/dsDS records the parent zone publishes for a signed zone (DNSSEC chain of trust).
Parameters
namestring required | Domain name, such as example.com. e.g. example.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/ds?name=example.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/ds?name=example.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/ds?name=example.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "example.com", "provider": "google", "records": [ { "data": "2371 13 2 C988EC423E3880EB8DD8A46FE06CA230EE23F35B578D64E78B29C3E1C83D245A", "name": "example.com", "ttl": 7112, "type": "DS" } ], "status": "NOERROR", "type": "DS", "validated": true }, "meta": { "cached": false, "endpoint": "ds", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
https
/v1/dnslookup/httpsHTTPS service binding records: ALPN protocols and address hints.
Parameters
namestring required | Domain name, such as example.com. e.g. example.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/https?name=example.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/https?name=example.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/https?name=example.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "example.com", "provider": "google", "records": [ { "data": "1 . alpn=h3,h2 ipv4hint=104.20.23.154,172.66.147.243 ipv6hint=2606:4700:10::6814:179a,2606:4700:10::ac42:93f3", "name": "example.com", "ttl": 300, "type": "HTTPS" } ], "status": "NOERROR", "type": "HTTPS", "validated": true }, "meta": { "cached": false, "endpoint": "https", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
srv
/v1/dnslookup/srvSRV records of a service on a domain, such as the IMAPS server of gmail.com.
Parameters
servicestring required | Service label without the underscore, such as imaps, submission or caldavs. e.g. imaps |
protostring required | Transport protocol: tcp or udp.tcpudpe.g. tcp |
domainstring required | Domain name that publishes the service, such as gmail.com. e.g. gmail.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/srv?service=imaps&proto=tcp&domain=gmail.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/srv?service=imaps&proto=tcp&domain=gmail.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/srv?service=imaps&proto=tcp&domain=gmail.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "_imaps._tcp.gmail.com", "provider": "google", "records": [ { "data": "5 0 993 imap.gmail.com.", "name": "_imaps._tcp.gmail.com", "ttl": 21600, "type": "SRV" } ], "status": "NOERROR", "type": "SRV", "validated": false }, "meta": { "cached": false, "endpoint": "srv", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }
mailAuth
/v1/dnslookup/mailAuthThe email sender policies of a domain: its SPF record and DMARC policy, with the handling each one asks for.
Parameters
namestring required | Domain name, such as example.com. e.g. gmail.com |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
dmarc | string |
dmarcPolicy | string |
dmarcSubdomainPolicy | string |
name | string |
provider | string |
spf | string |
spfAll | string |
curl "https://api.hoshime.com/v1/dnslookup/mailAuth?name=gmail.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/mailAuth?name=gmail.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/mailAuth?name=gmail.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "dmarc": "…", "dmarcPolicy": "…", "dmarcSubdomainPolicy": "…", "name": "…", "provider": "…", "spf": "…", "spfAll": "…" }, "meta": { "cached": false, "endpoint": "mailAuth", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 2 } }
dkim
/v1/dnslookup/dkimThe DKIM public key of a domain for one selector: the TXT record that verifies the mail the domain signs.
Parameters
namestring required | Domain name, such as example.com. e.g. gmail.com |
selectorstring required | DKIM selector the mail is signed with, such as 20230601 or selector1; the s= tag of a DKIM-Signature header. e.g. 20230601 |
providerstring | Resolver: google or cloudflare.googlecloudflaredefault google |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
name | string |
provider | string |
records | Record[] |
data | string |
name | string |
ttl | integer (int64) |
type | string |
status | string |
type | string |
validated | boolean |
curl "https://api.hoshime.com/v1/dnslookup/dkim?name=gmail.com&selector=20230601" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/dnslookup/dkim?name=gmail.com&selector=20230601", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/dnslookup/dkim?name=gmail.com&selector=20230601", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "name": "…", "provider": "…", "records": [ { "data": "…", "name": "…", "ttl": 0, "type": "…" } ], "status": "…", "type": "…", "validated": false }, "meta": { "cached": false, "endpoint": "dkim", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "dnslookup", "requestId": "req_2Xb9kQ…", "units": 1 } }