JSON API

The iamroot.tech JSON API

Introduction

An API interface has been implemented for several of the tools. It is still in an early beta stage. The API has been made available to gather feedback and to support further development of the website 'under the hood'. At this point, there are still a lot of things missing, but the essentials are there, and the API is working as intended on the selected tools.




Feedback

The main purpose, of pushing the API at this point, is to gather feedback.

I hope you will share any thoughts, ideas and experiences with me.

Mail me at iamrootdottech@gmail.com - looking forward to your input!




Latest API related changes

  • 2026-09-26: Monitoring system: Now supports teams and unlimited users per team
    The monitoring system now supports teams and multiple users working on the same set of monitors. The number of users per team is unlimited (same principle as the number of monitors and API keys). Inviting new users to your team is done via the new 'Company settings' option.




Next up

  • Further tuning of the API, establishing common ground, and developing core concepts.
  • Adding API endpoints for additional tools




Please note...

...the API will be subject to changes and updates going forward. I will make sure to detail major changes on this page, and in the sitewide changelog as well.



Core concepts

URL/endpoint structure

The intent is, that the URL structure of each API, has to mirror the URLs used at the website. For instance, the website URL for a WHOIS-lookup of yahoo.com, looks like this:

https://iamroot.tech/whois/?host=yahoo.com&qt=PreferRdap

The matching API request, looks like this:

https://iamroot.tech/whois/api/?host=yahoo.com&qt=PreferRdap
Each tool is working from a dedicated subdirectory. And the corresponding API, is working from a /api/ subdirectory within the tool.

More tool-specific details below.




Authentication and rate limits

Authentication is done by passing an Authorization HTTP header containing an API key.

You can obtain an API key through the user system. Simply create an account, go to the API keys section, and generate as many API keys as you need. There is no limit on the number of API keys you can create.

However, there is a 24-hour rate limit. The default rate limit is currently 1000 requests per 24 hours. Upgrading or increasing your rate limit is not an option at the moment (though it will be in the future).

From the API keys section of the user system, detailed information on the latest requests is available for debugging, along with statistics on the current 24-hour API usage.

Sample http request includeing an API key:

 
GET
https://iamroot.tech/whois/api/?host=8.8.8.8
Authorization: YOUR_API_KEY
 


Anonymous usage
Anonymous usage, without providing an API key in each request, is also possible. The rate limit for anonymous use is 200 requests per 24 hours.




API response wrapper

All API responses share a common JSON object on the root level. It has various status and meta info. Should be pretty straightforward to interpret.

{
    "MessageStatus":"AllGood",
    "Message": null,
    "RequestTimestamp": "2023-10-05T21:04:45.970403Z",
    "RequestServer": "horsens",
    "RequestTool": "whois",
    "RequestUuid": "09b8878f0e054808b89a4e3d125a6d07",
    "RequestExecutionTime": 1084,
    "UserUuid": null,
    "UserApikeyUuid": null,
    "UserQueryLimit24h": 500,
    "UserQueryLimit24hUsage": 196,
    "DataObjectType": "SslInfoV2Simplified",
    "Data": [...]
}




Error handling

If errors occur, the returned HTTP status will NOT necessarily reflect this. Using HTTP status codes for feedback on both the API itself and the tool execution makes it very difficult for everyone involved to determine what went wrong and why.


HTTP Errors
HTTP status errors indicate issues with the API itself, the server, the website, or other parts of the ecosystem. For instance, they may occur due to code issues, database problems, or similar failures.

If you ever receive anything other than HTTP status 200, please reach out—that is my problem to solve. Let me know, and I will fix any issues as quickly as possible.


API/Tool Errors
Issues at the tool level are reflected by the MessageStatus node. Additional details are always available via the Message node.

If you ever receive a MessageStatus other than AllGood, you will need to review your code and what you are trying to accomplish, as there is an issue. Details are available in the Message node. This may happen, for example, if you attempt to execute tools on non-existent domains, experience network latency causing timeouts during tool execution, exceed the API rate limit, or encounter similar issues.

The MessageStatus node has three possible values—no more, no less:

  • AllGood - Everything is working as expected, and tool execution was successful.
  • Warning - Minor warnings for informational purposes. Details are available in the Message node.
  • Error - A significant error occurred for one reason or another. Details are available in the Message node.



The WHOIS/RDAP tool

You may read more about the WHOIS/RDAP tool at https://iamroot.tech/whois/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.


Perform WHOIS / RDAP lookup

 
GET
https://iamroot.tech/whois/api/?host=[host]&qt=[querytype] copy
 
[host] string, required A hostname, ip-adresse, CIDR or AS number for the WHOIS/RDAP lookup.
[querytype] enum, optional Specifying the querytype. Can be either
PreferRdap Try RDAP, failover to WHOIS - default
Rdap To force a RDAP lookup
whois To force a WHOIS lookup
Omit or leave empty to use default settings.

Samples & output

Lookup of '8.8.8.8', prefer RDAP with failover to WHOIS:

 
GET
https://iamroot.tech/whois/api/?host=8.8.8.8&qt=PreferRdap copy try it
 

 

Lookup of 'AS16509', force WHOIS:

 
GET
https://iamroot.tech/whois/api/?host=AS16509&qt=whois&qt=whois copy try it
 



The TLS/SSL tool

You may read more about the TLS/SSL tool at https://iamroot.tech/ssl-certificate-check/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.


Perform TLS/SSL certifictae check of host

 
GET
https://iamroot.tech/ssl-certificate-check/api/?host=[host]&hostPort=[hostPort] copy
 
[host] string, required A hostname or ip-adresse to retrieve the SSL-certificate from
[hostPort] integer, optional Specifying what port number to connect to. Default port 443 (https). Leave empty or omit this part of the querystring to use default settings.

Samples & output

SSL/TLS check of 'google.com', all default settings:

 
GET
https://iamroot.tech/ssl-certificate-check/api/?host=google.com copy try it
 

 

SSL/TLS check of 'wrong.host.badssl.com', all default settings:

 
GET
https://iamroot.tech/ssl-certificate-check/api/?host=wrong.host.badssl.com copy try it
 



The port scan tool

You may read more about the port scan tool at https://iamroot.tech/port-scan/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.


Perform port scan of host

 
GET
https://iamroot.tech/port-scan/api/?host=[host]&additionalports=[additionalports] copy
 
[host] string, required A hostname or ip-adresse to retrieve the SSL-certificate from
[additionalports] string, optional Any additional ports to scan - seperate by space

Samples & output

Port scan of 'www.db4free.net':

 
GET
https://iamroot.tech/port-scan/api/?host=www.db4free.net copy try it
 

 

Port scan of 'ftp.gnu.org', with additional check of port 5000:

 
GET
https://iamroot.tech/port-scan/api/?host=ftp.gnu.org&additionalports=5000 copy try it
 



The DNSBL check tool

You may read more about the DNSBL check at https://iamroot.tech/dnsbl-blacklist-checker/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.


Perform DNSBL check of host

 
GET
https://iamroot.tech/dnsbl-blacklist-checker/api/?host=[host] copy
 
[host] string, required A hostname or ip-adresse to check

Samples & output

DNSBL check of 'iamroot.tech':

 
GET
https://iamroot.tech/dnsbl-blacklist-checker/api/?host=iamroot.tech copy try it
 



The DNS propagation tool

You may read more about the DNS propagation at https://iamroot.tech/dns-propagation/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.


Perform DNSBL check of host

 
GET
https://iamroot.tech/dns-propagation/api/?host=[host]&qt=[querytype]&ns=[nameservers] copy
 
[host] string, required A hostname to check
[querytype] enum, required Specifying the querytype. Can be either A, AAAA, MX, NS , SOA or TXT.
[nameservers] enum, optional Additional nameservers to query.

Samples & output

DNS propagation check of A-records of 'iamroot.tech':

 
GET
https://iamroot.tech/dns-propagation/api/?host=iamroot.tech&qt=A copy try it
 



The ping tool

You may read more about theDNS propagation at https://iamroot.tech/ping-tracert/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.

Please note that, at this point, only the ping-specific parts of the tool are available via the API.


Perform ping of host

 
GET
https://iamroot.tech/ping-tracert/api/?dowhat=ping&host=[host] copy
 
[host] string, required A hostname to ping

Samples & output

Ping of 'reddit.com':

 
GET
https://iamroot.tech/ping-tracert/api/?dowhat=ping&host=reddit.com copy try it
 



The DNS lookup tool

You may read more about the DNS lookup at https://iamroot.tech/dns-lookup/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.


Perform DNS lookup of domain name

 
GET
https://iamroot.tech/dns-lookup/api/?host=[host]&qt=[querytype]&ns=[nameserver] copy
 
[host] string, required A hostname to check
[querytype] enum, required - can be multiple Specifying the querytype. Can be A, AAAA, MX, NS , SOA or TXT.
[nameservers] enum, optional Specific nameservers to query. If no nameserver is provided, authoritative server of domain is queried.

Samples & output

DNS lookup for A-, AAAA- and MX-records of 'iamroot.tech':

 
GET
https://iamroot.tech/dns-lookup/api/?host=iamroot.tech&qt=A+AAAA+MX copy try it
 



The HTTP/S request tool

You may read more about the HTTP/S request tool at https://iamroot.tech/http-request-tool/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.

Please note that the data retrieved by the request is returned in the ResponseContentBytesBase64Encoded node as a Base64-encoded string (regardless of whether the content is binary or not). Furthermore, the content is trimmed to a maximum of 1024 KB.


Perform HTTPS request of URL

 
GET
https://iamroot.tech/http-request-tool/api/?method=[method]&url=[url]&connectto=[connectto]&headers=[headers]&body=[body]&timeout=[timeout] copy
 
[method] enum, optional Specifying the request type. Can be HEAD, GET, POST, PUT or DELETE. Default GET will be used if omittet.
[url] string, required The URL to request. Remember to URL encode this to avoid any querystring mixup.
[connectto] string, optional If the request should be made to a specific host (IP or domainname). Will override the host specified in the URL.
[headers] string, optional String of any HTTP headers data to use in the request. Connection, Host, Accept and User-agent headers will be added per default.
[body] string, optional String of any HTTP body data to use in the request.
[timeout] integer, optional Timeout of the request, in miliseconds. Defaults to 5.000 ms (5s).

Samples & output

HTTP request of 'https://example.com/', 3 second timeout:

 
GET
https://iamroot.tech/http-request-tool/api/?url=https%3a%2f%2fexample.com%2f&timeout=3000 copy try it
 



The connection test tool

You may read more about the connection test tool at https://iamroot.tech/connection-tester/. When using the tool in your browser, the URL of the corresponding API call is mentioned as a part of the result.

The tool suppports two modes: Basic webserver connection check of a specific url - or a specific protocol check of a specific host on a specific port. Both modes are described below.

Please note that the api return several items with byte-data (for instance the ConnectionFlow[].Data and ConnectionFlow[].MustContain nodes) - these data is base64-encoded. Furthermore, any data recieved as a part of the connection test, is trimmed to a maximum of 8 KB.




Perform webserver connection test of URL

 
GET
https://iamroot.tech/connection-tester/api/?do=webserver&webserverurl=[url]&webservermustcontain=[mustcontain]&host=[host] copy
 
[url] string, required The URL to request. Remember to URL encode this to avoid any querystring mixup.
[mustcontain] string, optional If the tool should check the recieved data for a specific string, specify what string to look for useing this argument. Remember to URL encode this to avoid any querystring mixup.
[host] string, optional If the request should be made to a specific host (IP or domainname). Will override the host specified in the URL.

Samples & output

HTTPS webserver connection test of 'https://example.com/' - no data validation:

 
GET
https://iamroot.tech/connection-tester/api/?do=webserver&webserverurl=https%3A%2F%2Fexample.com%2F copy try it
 

HTTPS webserver connection test of 'https://www.google.com/' - must contain '</html>':

 
GET
https://iamroot.tech/connection-tester/api/?do=webserver&webserverurl=https%3A%2F%www.google.com%2F&webservermustcontain=<%2Fhtml>&host= copy try it
 




Common protocol connection test of host

 
GET
https://iamroot.tech/connection-tester/api/?do=common&host=[host]&flow=[flow]&port=[port] copy
 
[host] string, required The host to test.
[flow] string, required The flow to use for the connection test. The tool supports 30+ flows. See below for details.
[port] integer, optional If the connection test should connect to a non-default port.
Supported [flow] values, with default [port]:
flow=HTTP&port=80 HTTP (tcp, port 80): Sends an HTTP GET request to check if a web server is running and responsive.
flow=HTTP&port=81 HTTP (tcp, port 81): Sends an HTTP GET request to check if a web server is running and responsive.
flow=HTTP&port=8080 HTTP (tcp, port 8080): Sends an HTTP GET request to check if a web server is running and responsive.
flow=HTTP&port=8888 HTTP (tcp, port 8888): Sends an HTTP GET request to check if a web server is running and responsive.
flow=HTTPS&port=443 HTTPS (tcp, port 443): Performs a TLS handshake and simple HTTP GET request to verify HTTPS availability.
flow=HTTPS&port=8443 HTTPS (tcp, port 8443): Performs a TLS handshake and simple HTTP GET request to verify HTTPS availability.
flow=IMAP&port=143 IMAP (tcp, port 143): Checks IMAP service availability by looking for an * OK banner and requesting capabilities.
flow=IMAPS&port=993 IMAP Secure (tcp, port 993): Initiates a secure connection (Implicit TLS) and verifies the IMAP service banner and capabilities.
flow=POP3&port=110 POP3 (tcp, port 110): Tests POP3 availability by checking for a +OK banner and CAPA support.
flow=POP3S&port=995 POP3 (secure) (tcp, port 995): Initiates a secure connection (Implicit TLS) and verifies the POP3 service banner.
flow=SMTP&port=25 SMTP (tcp, port 25): Checks whether a basic SMTP service is reachable and capable of responding to simple EHLO/HELP commands.
flow=SMTP&port=587 SMTP (tcp, port 587): Checks whether a basic SMTP service is reachable and capable of responding to simple EHLO/HELP commands.
flow=SMTP&port=2525 SMTP (tcp, port 2525): Checks whether a basic SMTP service is reachable and capable of responding to simple EHLO/HELP commands.
flow=SMTP-STARTTLS&port=25 SMTP + STARTTLS (tcp, port 25): Checks if server is running a SMTP server, and if it support the STARTTLS methodology for setting up a secure connection.
flow=SMTP-STARTTLS&port=587 SMTP + STARTTLS (tcp, port 587): Checks if server is running a SMTP server, and if it support the STARTTLS methodology for setting up a secure connection.
flow=SMTP-STARTTLS&port=2525 SMTP + STARTTLS (tcp, port 2525): Checks if server is running a SMTP server, and if it support the STARTTLS methodology for setting up a secure connection.
flow=SMTP-SECURE&port=465 SMTP Secured (tcp, port 465): Tests an SMTPS endpoint (implicit TLS) by opening a secure channel and issuing basic SMTP commands.
flow=MEMCACHED&port=11211 Memcached (tcp, port 11211): Sends a 'version' command to verify Memcached service is running and responsive.
flow=MSSQL&port=1433 Microsoft SQL Server (tcp, port 1433): Sends a minimal Pre-Login Request and waits for the server's reply.
flow=MONGODB&port=27017 MongoDB (OP_MSG hello) (tcp, port 27017): Sends a MongoDB handshake (OP_MSG hello) to request server metadata such as version, capabilities, and wire protocol level.
flow=MYSQL&port=3306 MySQL/MariaDB (tcp, port 3306): Checks for the MySQL initial handshake packet sent by the server upon connection.
flow=ORACLE&port=1521 Oracle Database (tcp, port 1521): Attempts a connection to listen for the Oracle TNS listener initial response.
flow=POSTGRESQL&port=5432 PostgreSQL (tcp, port 5432): Sends a minimal 8-byte SSL Negotiation Request to trigger a response from the server.
flow=REDIS&port=6379 Redis (tcp, port 6379): Sends a PING command using the Redis protocol (RESP) to check for a PONG response.
flow=FTP&port=21 FTP (tcp, port 21): Checks if an FTP server is reachable and capable of responding to basic commands.
flow=FTPS&port=990 FTPS (Implicit TLS) (tcp, port 990): Initiates a secure connection (Implicit TLS) to verify FTPS availability and receives the initial banner.
flow=TFTP&port=69 TFTP (UDP 69) (udp, port 69): Sends a TFTP Read Request (RRQ) for a non-existent file to check if the server is listening and responds with an error.
flow=RDP&port=3389 RDP (tcp, port 3389): Sends an initial TPDU connection request to test if an RDP service is listening.
flow=SSH&port=22 SSH (tcp, port 22): Checks for the initial SSH protocol version banner sent by the server.
flow=TELNET&port=23 Telnet (tcp, port 23): Attempts a basic TCP connection and listens for any initial server output (banner/prompt).
flow=VNC&port=5900 VNC (tcp, port 5900): Connects and waits for the initial VNC protocol version handshake (RFB) from the server.
flow=VNC&port=5500 VNC (tcp, port 5500): Connects and waits for the initial VNC protocol version handshake (RFB) from the server.
flow=VNC&port=5800 VNC (tcp, port 5800): Connects and waits for the initial VNC protocol version handshake (RFB) from the server.
flow=CPANEL-HTTP&port=2082 cPanel/WHM (HTTP) (tcp, port 2082): Sends an HTTP HEAD request to check for the cPanel service on the legacy non-secure port 2082.
flow=CPANEL-HTTPS&port=2083 cPanel/WHM (HTTPS) (tcp, port 2083): Performs a TLS handshake and HTTP HEAD request to verify cPanel on the secure port 2083.
flow=OPENVPN-TCP&port=1194 OpenVPN (TCP) (tcp, port 1194): Sends a small TCP-framed probe to check if the OpenVPN service is listening on TCP.
flow=OPENVPN-UDP&port=1194 OpenVPN (UDP) (udp, port 1194): Sends a short OpenVPN-specific UDP probe packet to check if the daemon is listening.
flow=MQTT&port=1883 MQTT (tcp, port 1883): Sends an MQTT CONNECT packet to check if the broker responds with a CONNACK (acknowledgement).
flow=DNS-UDP&port=53 DNS (udp, port 53): Sends a DNS A-record lookup to verify the DNS resolver is reachable over UDP.
flow=DNS-TCP&port=53 DNS (tcp, port 53): Checks DNS over TCP by sending a prefixed-length DNS query.
flow=DNS-OVER-TLS&port=853 DNS over TLS (DoT) (tcp, port 853): Performs a TLS handshake to verify if a DNS over TLS (DoT) resolver is available.
flow=ECHO-UDP&port=10001 ECHO (udp, port 10001): Sends simple text packets to verify round-trip UDP connectivity.
flow=NTP&port=123 NTP (udp, port 123): Sends a minimal NTP packet to verify the server responds with time data.
flow=SNMP&port=161 SNMP (udp, port 161): Sends a simple SNMPv1 GetRequest using the 'public' community.
flow=WHOIS&port=43 WHOIS (tcp, port 43): Sends a query to test if the WHOIS server is running and responds with a recognizable output.

SMTP + STARTTLS check of 'smtp.gmail.com' - port 25:

 
GET
https://iamroot.tech/connection-tester/api/?do=common&host=smtp.gmail.com&flow=SMTP-STARTTLS&port=25 copy try it
 

MySQL/MariaDB check of 'www.db4free.net' - port 3306:

 
GET
https://iamroot.tech/connection-tester/api/?do=common&host=www.db4free.net&flow=MYSQL&port=3306 copy try it