Robtex Free API
Free REST API for DNS, IP, and AS number lookups. Rate limited to 10 requests per hour per IP.
Base URL: https://freeapi.robtex.com/
Machine-readable spec: OpenAPI 3.0 (JSON)
A Pro API is also available for higher volumes via RapidAPI.
Endpoints
- /ipquery/{ip} — IP info, GeoIP, DNS records
- /asquery/{asn} — AS networks
- /pdns/forward/{domain} — Forward passive DNS
- /pdns/reverse/{value} — Reverse passive DNS
- /pdns/reverse-historic/{value} — Historic reverse passive DNS
- /latest_lightning_channels — Returns the most recently opened Lightning Network channels, sorted by open time descending
- /ip_reputation/{ip} — Check an IP address reputation against 100+ real-time blocklists (DNSBLs)
- /lookup_dns/{hostname} — Lookup DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA) for a given hostname
- /reverse_lookup_dns_records/{value} — Find hostnames that use a specific DNS record value
- /reverse_lookup_mx/{mx_server} — Find hostnames that use a specific mail server
- /reverse_lookup_ns/{nameserver} — Find hostnames that use a specific nameserver
- /reverse_lookup_ip/{ip} — Find hostnames that point to a specific IP address (IPv4 or IPv6)
- /historic_reverse_lookup_ns/{nameserver} — Find hostnames that *previously* used a specific nameserver but no longer do
- /historic_reverse_lookup_mx/{mx_server} — Find hostnames that *previously* used a specific mail server but no longer do
- /historic_reverse_lookup_ip/{ip} — Find hostnames that *previously* pointed to a specific IP address but no longer do
- /lookup_as_whois/{asn} — Lookup WHOIS information for an Autonomous System (AS) number from the RADB routing database
- /lookup_lightning_node/{pubkey} — Lookup a Lightning Network node by public key
- /lookup_lightning_channel/{channel_id} — Lookup a Lightning channel by channel ID
- /lookup_lightning_channels_per_node/{node} — Lookup all Lightning Network channels for a given node by public key
- /get_recommended_lightning_peers/{pubkey} — Get recommended Lightning Network peers for a given node
- /search_lightning_nodes_by_alias/{alias} — Search for Lightning Network nodes by partial alias match
- /parse_hostname/{hostname} — Parse a hostname into its constituent parts using the Mozilla Public Suffix List (9700+ entries)
- /is_subdomain/{hostname} — Check whether a hostname is a subdomain (has labels beyond the registered domain)
- /registered_domain/{hostname} — Extract the registered domain (eTLD+1) from a hostname
- /tld_info/{tld} — Get information about a top-level domain or effective TLD
- /dns_a/{hostname} — Look up A (IPv4 address) records for a hostname
- /dns_aaaa/{hostname} — Look up AAAA (IPv6 address) records for a hostname
- /dns_mx/{hostname} — Look up MX (mail exchange) records for a hostname
- /dns_ns/{hostname} — Look up NS (nameserver) records for a hostname
- /dns_txt/{hostname} — Look up TXT records for a hostname
- /dns_cname/{hostname} — Look up CNAME (canonical name / alias) records for a hostname
- /dns_soa/{hostname} — Look up SOA (Start of Authority) record for a hostname
- /dns_ptr/{ip} — Look up PTR (reverse DNS) record for an IP address
- /reverse_lookup_cname/{target} — Find hostnames that have a CNAME record pointing to the specified target
- /historic_reverse_lookup_cname/{target} — Find hostnames that previously had a CNAME record pointing to the specified target but no longer do
- /ip_geolocation/{ip} — Get geographic location data for an IP address: country, city, region, latitude, longitude, timezone
- /ip_network/{ip} — Get the containing network (BGP route), AS number, AS name, and route description for an IP address
- /ip_to_asn/{ip} — Lightweight lookup: get just the AS number and netblock for an IP address
- /ip_blocklist_check/{ip} — Check an IP address against IPsum, FireHOL, Tor exit node lists, C2 indicators, and other threat intelligence feeds
- /ip_threat_intel/{ip} — Combined threat intelligence: DNSBL listings, IPsum score, FireHOL lists, bad ASN flag, Tor exit status
- /as_info/{asn} — Get the name, organization, country, and description for an Autonomous System number
- /as_prefixes/{asn} — Get all IPv4 and IPv6 network prefixes (netblocks) announced by an Autonomous System
- /domain_reputation/{hostname} — Get comprehensive domain reputation: Majestic rank, Tranco rank, HaGeZi blocklist status, Blackbook malware status, phishing database status, HSTS preload status, and disposable email detection
- /domain_ranking/{hostname} — Get domain popularity rankings from five independent sources: Majestic Million (backlinks), Tranco top 1M (aggregated traffic), Cloudflare Radar (1
- /domain_blocklist_check/{hostname} — Check a domain against HaGeZi DNS blocklists, Steven Black unified hosts, Blackbook malware list, and phishing databases
- /domain_shared_ip/{hostname} — Find other domains hosted on the same IP address(es) as the target domain
- /domain_shared_ns/{hostname} — Find other domains using the same nameserver(s) as the target domain
- /domain_shared_mx/{hostname} — Find other domains using the same mail server(s) as the target domain
- /ping — Check if the API is responding
/ipquery/{ip}
Returns forward and reverse DNS, geolocation, and network data for an IP address. Response is JSON.
Example: /ipquery/199.19.54.1
{ "status": "ok", "city": "Toronto", "country": "Canada", "as": 12041, "asname": "AFILIAS-NST Afilias Limited", "bgproute": "199.19.54.0/24", "act": [{"o": "b0.org.afilias-nst.org", "t": 1498717654}], "pas": [{"o": "b0.org.afilias-nst.org", "t": 1501358830}] }Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address |
Fields
- status
- "ok" on success
- city, country
- GeoIP location
- as, asname
- AS number and name
- bgproute
- BGP route prefix
- act
- Active (forward) DNS — PTR records
- pas
- Passive (reverse) DNS — domains pointing to this IP
/asquery/{asn}
Returns networks in the global BGP table for an AS number. Response is JSON.
Example: /asquery/1234
{ "status": "ok", "nets": [ {"n": "132.171.0.0/16", "inbgp": 1}, {"n": "193.110.32.0/21", "inbgp": 1} ] }Parameters
| Name | Type | Description |
|---|---|---|
asn | string (required) | AS number (e.g., 1234 or AS1234) |
/pdns/forward/{domain}
Forward passive DNS lookup. Returns DNS records observed for a domain. Response is NDJSON (one JSON object per line).
Example: /pdns/forward/a.iana-servers.net
{"rrname":"a.iana-servers.net","rrdata":"199.43.135.53","rrtype":"A","time_first":1460751956,"time_last":1501399246,"count":18} {"rrname":"a.iana-servers.net","rrdata":"2001:500:8f::53","rrtype":"AAAA","time_first":1460751956,"time_last":1501399246,"count":18}Parameters
| Name | Type | Description |
|---|---|---|
domain | string (required) | Domain or hostname to look up |
/pdns/reverse/{value}
Reverse passive DNS lookup. Returns domains that reference a given value. Response is NDJSON.
Use the ?type= query parameter to select the record type:
?type=a(default) — domains with A/AAAA records pointing to an IP?type=ns— domains using a nameserver?type=mx— domains using a mail server
Parameters
| Name | Type | Description |
|---|---|---|
value | string (required) | IP address, nameserver, or mail server to search for |
type | a | ns | mx (default: a) | Record type to search |
Examples
IP reverse: /pdns/reverse/199.43.132.53
NS reverse: /pdns/reverse/ns1.google.com?type=ns
MX reverse: /pdns/reverse/aspmx.l.google.com?type=mx
/pdns/reverse-historic/{value}
Historic reverse passive DNS lookup. Returns domains that previously referenced a given value but no longer do. Useful for tracking infrastructure migrations. Response is NDJSON.
Supports the same ?type= parameter as /pdns/reverse/.
Parameters
| Name | Type | Description |
|---|---|---|
value | string (required) | IP address, nameserver, or mail server to search for |
type | a | ns | mx (default: a) | Record type to search |
Examples
Historic NS reverse: /pdns/reverse-historic/dns1.cscdns.net?type=ns
Historic IP reverse: /pdns/reverse-historic/8.8.8.8
/latest_lightning_channels
Returns the most recently opened Lightning Network channels, sorted by open time descending. Response is JSON.
Example: /latest_lightning_channels
Parameters
| Name | Type | Description |
|---|---|---|
count | integer (default: 10) | Number of channels to return (1-1000) |
/ip_reputation/{ip}
Check an IP address reputation against 100+ real-time blocklists (DNSBLs). Returns listing status, threat categories, AS info, and blocklist details. Response is JSON.
Example: /ip_reputation/8.8.8.8
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address to check (e.g., 8.8.8.8, 2001:4860:4860::8888) |
/lookup_dns/{hostname}
Lookup DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA) for a given hostname. Also returns domain reputation info (Majestic, Tranco rankings, blocklist status). Response is JSON.
Example: /lookup_dns/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname or domain to lookup (e.g., example.com, www.example.com) |
/reverse_lookup_dns_records/{value}
Find hostnames that use a specific DNS record value. Query which hostnames point to an IP address, use a particular nameserver, or reference any DNS value. For example: 'which hostnames point to 1.2.3.4?' or 'which hostnames use chris.ns.cloudflare.com as their nameserver?' Response is JSON.
Example: /reverse_lookup_dns_records/1.2.3.4
Parameters
| Name | Type | Description |
|---|---|---|
value | string (required) | The DNS record value to search for (e.g., IP address, nameserver hostname, mail server, CNAME target) |
record_type | NS | MX | CNAME | A | AAAA | TXT | ANY (default: ANY) | Type of DNS record to search (NS, MX, CNAME, A, AAAA, TXT, ANY) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/reverse_lookup_mx/{mx_server}
Find hostnames that use a specific mail server. For example: which hostnames use aspmx.l.google.com as their mail server? Response is JSON.
Example: /reverse_lookup_mx/aspmx.l.google.com
Parameters
| Name | Type | Description |
|---|---|---|
mx_server | string (required) | The mail server hostname to search for (e.g., aspmx.l.google.com, mx1.example.com) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/reverse_lookup_ns/{nameserver}
Find hostnames that use a specific nameserver. For example: which hostnames use chris.ns.cloudflare.com as their nameserver? Response is JSON.
Example: /reverse_lookup_ns/chris.ns.cloudflare.com
Parameters
| Name | Type | Description |
|---|---|---|
nameserver | string (required) | The nameserver hostname to search for (e.g., chris.ns.cloudflare.com, ns1.example.com) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/reverse_lookup_ip/{ip}
Find hostnames that point to a specific IP address (IPv4 or IPv6). Searches both A and AAAA records. For example: which hostnames point to 1.2.3.4? Response is JSON.
Example: /reverse_lookup_ip/1.2.3.4
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | The IP address to search for (IPv4 or IPv6) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/historic_reverse_lookup_ns/{nameserver}
Find hostnames that *previously* used a specific nameserver but no longer do. Tracks infrastructure migrations and past delegation relationships. Response is JSON.
Example: /historic_reverse_lookup_ns/chris.ns.cloudflare.com
Parameters
| Name | Type | Description |
|---|---|---|
nameserver | string (required) | The nameserver hostname to search for (e.g., chris.ns.cloudflare.com, ns1.example.com) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/historic_reverse_lookup_mx/{mx_server}
Find hostnames that *previously* used a specific mail server but no longer do. Tracks email provider migrations and past MX relationships. Response is JSON.
Example: /historic_reverse_lookup_mx/aspmx.l.google.com
Parameters
| Name | Type | Description |
|---|---|---|
mx_server | string (required) | The mail server hostname to search for (e.g., aspmx.l.google.com, mx1.example.com) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/historic_reverse_lookup_ip/{ip}
Find hostnames that *previously* pointed to a specific IP address but no longer do. Tracks hosting migrations and past IP relationships. Searches both A and AAAA records. Response is JSON.
Example: /historic_reverse_lookup_ip/1.2.3.4
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | The IP address to search for (IPv4 or IPv6) |
limit | integer (default: 100) | Maximum number of hostnames to return |
offset | integer (default: 0) | Offset for pagination |
/lookup_as_whois/{asn}
Lookup WHOIS information for an Autonomous System (AS) number from the RADB routing database. Returns routing policy, network information, and administrative contacts. Response is JSON.
Example: /lookup_as_whois/AS15169
Parameters
| Name | Type | Description |
|---|---|---|
asn | string (required) | AS number to lookup (e.g., "AS15169" or "15169" for Google) |
/lookup_lightning_node/{pubkey}
Lookup a Lightning Network node by public key. Returns node alias, peer count, channel count, and centrality ranking. Response is JSON.
Example: /lookup_lightning_node/03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f
Parameters
| Name | Type | Description |
|---|---|---|
pubkey | string (required) | Compressed secp256k1 public key (66 hex chars) |
/lookup_lightning_channel/{channel_id}
Lookup a Lightning channel by channel ID. Supports numeric, block x txn x vout, or block:txn:vout formats. Response is JSON.
Example: /lookup_lightning_channel/881472x1584x0
Parameters
| Name | Type | Description |
|---|---|---|
channel_id | string (required) | Lightning channel ID (numeric, blockxtxnxvout, or block:txn:vout format) |
/lookup_lightning_channels_per_node/{node}
Lookup all Lightning Network channels for a given node by public key. Response is JSON.
Parameters
| Name | Type | Description |
|---|---|---|
node | string (required) | Compressed secp256k1 public key (66 hex chars) |
limit | integer (default: 100) | Maximum number of channels to return |
offset | integer (default: 0) | Offset for pagination |
/get_recommended_lightning_peers/{pubkey}
Get recommended Lightning Network peers for a given node. Returns nodes that are NOT currently peered with the specified node but would improve its centrality score if connected. Response is JSON.
Example: /get_recommended_lightning_peers/03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f
Parameters
| Name | Type | Description |
|---|---|---|
pubkey | string (required) | Compressed secp256k1 public key (66 hex chars) |
limit | integer (default: 10) | Maximum number of recommended peers to return |
offset | integer (default: 0) | Offset for pagination |
/search_lightning_nodes_by_alias/{alias}
Search for Lightning Network nodes by partial alias match. Returns nodes whose aliases contain the search term (case-insensitive). Response is JSON.
Example: /search_lightning_nodes_by_alias/ACINQ
Parameters
| Name | Type | Description |
|---|---|---|
alias | string (required) | Search term to match against node aliases |
limit | integer (default: 20) | Maximum number of nodes to return |
offset | integer (default: 0) | Offset for pagination |
/parse_hostname/{hostname}
Parse a hostname into its constituent parts using the Mozilla Public Suffix List (9700+ entries). Returns eTLD (effective TLD), registered domain, subdomain, labels, and depth. Handles multi-level eTLDs (co.uk, co.jp, com.au) and platform suffixes (github.io, herokuapp.com). Response is JSON.
Example: /parse_hostname/www.mail.example.co.uk
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to parse (e.g. www.mail.example.co.uk) |
/is_subdomain/{hostname}
Check whether a hostname is a subdomain (has labels beyond the registered domain). Uses the Mozilla Public Suffix List for accurate eTLD detection. Response is JSON.
Example: /is_subdomain/www.example.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to check |
/registered_domain/{hostname}
Extract the registered domain (eTLD+1) from a hostname. For example, www.mail.example.co.uk returns example.co.uk. Response is JSON.
Example: /registered_domain/blog.shop.example.co.jp
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to extract registered domain from |
/tld_info/{tld}
Get information about a top-level domain or effective TLD. Returns whether it is in the Public Suffix List, how many sub-suffixes exist, and classification (ccTLD, gTLD, or infrastructure). Response is JSON.
Example: /tld_info/co.uk
Parameters
| Name | Type | Description |
|---|---|---|
tld | string (required) | TLD or eTLD to look up (e.g. "uk", "co.uk", "github.io") |
/dns_a/{hostname}
Look up A (IPv4 address) records for a hostname. Response is JSON.
Example: /dns_a/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_aaaa/{hostname}
Look up AAAA (IPv6 address) records for a hostname. Response is JSON.
Example: /dns_aaaa/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_mx/{hostname}
Look up MX (mail exchange) records for a hostname. Returns mail servers and their priorities. Response is JSON.
Example: /dns_mx/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_ns/{hostname}
Look up NS (nameserver) records for a hostname. Response is JSON.
Example: /dns_ns/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_txt/{hostname}
Look up TXT records for a hostname. Includes SPF, DKIM, DMARC, domain verification, and other text records. Response is JSON.
Example: /dns_txt/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_cname/{hostname}
Look up CNAME (canonical name / alias) records for a hostname. Response is JSON.
Example: /dns_cname/www.github.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_soa/{hostname}
Look up SOA (Start of Authority) record for a hostname. Returns primary nameserver, admin email, serial number, and timing values. Response is JSON.
Example: /dns_soa/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Hostname to look up |
/dns_ptr/{ip}
Look up PTR (reverse DNS) record for an IP address. Returns the hostname associated with the IP. Response is JSON.
Example: /dns_ptr/8.8.8.8
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address |
/reverse_lookup_cname/{target}
Find hostnames that have a CNAME record pointing to the specified target. Useful for CDN and load balancer investigations. Response is JSON.
Example: /reverse_lookup_cname/cdn.cloudflare.net
Parameters
| Name | Type | Description |
|---|---|---|
target | string (required) | CNAME target hostname (e.g. cdn.cloudflare.net) |
limit | integer (default: 100) | Max results |
offset | integer (default: 0) | Offset for pagination |
/historic_reverse_lookup_cname/{target}
Find hostnames that previously had a CNAME record pointing to the specified target but no longer do. Tracks CDN and infrastructure migrations. Response is JSON.
Example: /historic_reverse_lookup_cname/cdn.cloudflare.net
Parameters
| Name | Type | Description |
|---|---|---|
target | string (required) | CNAME target hostname |
limit | integer (default: 100) | Max results |
offset | integer (default: 0) | Offset for pagination |
/ip_geolocation/{ip}
Get geographic location data for an IP address: country, city, region, latitude, longitude, timezone. Response is JSON.
Example: /ip_geolocation/8.8.8.8
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address |
/ip_network/{ip}
Get the containing network (BGP route), AS number, AS name, and route description for an IP address. Response is JSON.
Example: /ip_network/8.8.8.8
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address |
/ip_to_asn/{ip}
Lightweight lookup: get just the AS number and netblock for an IP address. Fastest way to map IP to ASN. Response is JSON.
Example: /ip_to_asn/1.1.1.1
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address |
/ip_blocklist_check/{ip}
Check an IP address against IPsum, FireHOL, Tor exit node lists, C2 indicators, and other threat intelligence feeds. Returns which lists the IP appears on and threat scores. Response is JSON.
Example: /ip_blocklist_check/185.220.101.1
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address to check |
/ip_threat_intel/{ip}
Combined threat intelligence: DNSBL listings, IPsum score, FireHOL lists, bad ASN flag, Tor exit status. Comprehensive threat assessment for an IP address. Response is JSON.
Example: /ip_threat_intel/185.220.101.1
Parameters
| Name | Type | Description |
|---|---|---|
ip | string (required) | IPv4 or IPv6 address |
/as_info/{asn}
Get the name, organization, country, and description for an Autonomous System number. Lightweight version of as_whois. Response is JSON.
Example: /as_info/AS15169
Parameters
| Name | Type | Description |
|---|---|---|
asn | string (required) | AS number (e.g. "AS15169" or "15169") |
/as_prefixes/{asn}
Get all IPv4 and IPv6 network prefixes (netblocks) announced by an Autonomous System. Returns BGP-visible routes. Response is JSON.
Example: /as_prefixes/AS13335
Parameters
| Name | Type | Description |
|---|---|---|
asn | string (required) | AS number (e.g. "AS15169" or "15169") |
/domain_reputation/{hostname}
Get comprehensive domain reputation: Majestic rank, Tranco rank, HaGeZi blocklist status, Blackbook malware status, phishing database status, HSTS preload status, and disposable email detection. Response is JSON.
Example: /domain_reputation/google.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Domain to check |
/domain_ranking/{hostname}
Get domain popularity rankings from five independent sources: Majestic Million (backlinks), Tranco top 1M (aggregated traffic), Cloudflare Radar (1.1.1.1 DNS query popularity), Cisco Umbrella (OpenDNS query popularity), and Chrome UX Report (real Chrome user traffic). Response is JSON.
Example: /domain_ranking/github.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Domain to check |
/domain_blocklist_check/{hostname}
Check a domain against HaGeZi DNS blocklists, Steven Black unified hosts, Blackbook malware list, and phishing databases. Returns which lists the domain appears on. Response is JSON.
Example: /domain_blocklist_check/example.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Domain to check |
/domain_shared_ip/{hostname}
Find other domains hosted on the same IP address(es) as the target domain. Resolves the domain's A records, then performs reverse IP lookups for each. Response is JSON.
Example: /domain_shared_ip/example.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Domain to check |
limit | integer (default: 100) | Max results per IP |
/domain_shared_ns/{hostname}
Find other domains using the same nameserver(s) as the target domain. Resolves the domain's NS records, then performs reverse NS lookups for each. Response is JSON.
Example: /domain_shared_ns/example.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Domain to check |
limit | integer (default: 100) | Max results per NS |
/domain_shared_mx/{hostname}
Find other domains using the same mail server(s) as the target domain. Resolves the domain's MX records, then performs reverse MX lookups for each. Response is JSON.
Example: /domain_shared_mx/example.com
Parameters
| Name | Type | Description |
|---|---|---|
hostname | string (required) | Domain to check |
limit | integer (default: 100) | Max results per MX |
/ping
Check if the API is responding. Returns status and server timestamp. Response is JSON.
Example: /ping
Rate Limiting
The free API is limited to 10 requests per hour per IP address. Exceeding this limit returns HTTP 429:
{"status": "ratelimited", "ip": "your.ip.here"}Usage Examples
cURL
curl "https://freeapi.robtex.com/ipquery/8.8.8.8" curl "https://freeapi.robtex.com/asquery/15169" curl "https://freeapi.robtex.com/pdns/forward/example.com" curl "https://freeapi.robtex.com/lookup_dns/google.com" curl "https://freeapi.robtex.com/ip_reputation/8.8.8.8" curl "https://freeapi.robtex.com/reverse_lookup_ns/ns1.google.com" curl "https://freeapi.robtex.com/reverse_lookup_ip/1.2.3.4" curl "https://freeapi.robtex.com/lookup_as_whois/AS15169" curl "https://freeapi.robtex.com/search_lightning_nodes_by_alias/ACINQ" curl "https://freeapi.robtex.com/dns_a/google.com" curl "https://freeapi.robtex.com/parse_hostname/www.mail.example.co.uk" curl "https://freeapi.robtex.com/domain_ranking/google.com" curl "https://freeapi.robtex.com/ip_threat_intel/185.220.101.1"
JavaScript
const response = await fetch('https://freeapi.robtex.com/ipquery/8.8.8.8'); const data = await response.json(); console.log(data.asname, data.country);Unauthorized usage will be detected and blocked. The API is provided as-is on a best-effort basis.