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.
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!
...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.
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 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:
| |||||||
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.
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": [...]
}
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.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.
|
[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
|
Lookup of '8.8.8.8', prefer RDAP with failover to WHOIS:
Lookup of 'AS16509', force WHOIS:
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.
|
[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. |
SSL/TLS check of 'google.com', all default settings:
SSL/TLS check of 'wrong.host.badssl.com', all default settings:
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.
|
[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 |
Port scan of 'www.db4free.net':
Port scan of 'ftp.gnu.org', with additional check of port 5000:
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.
|
[host]
|
string, required | A hostname or ip-adresse to check |
DNSBL check of 'iamroot.tech':
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.
|
[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. |
DNS propagation check of A-records of 'iamroot.tech':
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.
|
[host]
|
string, required | A hostname to ping |
Ping of 'reddit.com':
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.
|
[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. |
DNS lookup for A-, AAAA- and MX-records of 'iamroot.tech':
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.
|
[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). |
HTTP request of 'https://example.com/', 3 second timeout:
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.
|
[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. |
HTTPS webserver connection test of 'https://example.com/' - no data validation:
HTTPS webserver connection test of 'https://www.google.com/' - must contain '</html>':
|
[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. |
[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:
MySQL/MariaDB check of 'www.db4free.net' - port 3306:
The Monitoring API allows you to retrieve information about your monitors, their current state, the latest check results and notifications.
You may use the API to build your own monitoring dashboards, integrate monitoring data into existing applications or automate operational workflows.
The API currently provides two read-only endpoints:
Please note: Unlike most of the other APIs on iamroot.tech, the Monitoring API requires authentication. Anonymous requests are not supported.
Provide your API key using the Authorization HTTP header.
You can create and manage API keys from the
API keys section
of your account.
The API only provides access to monitors associated with the user or team to which the API key belongs. The standard API rate limits apply.
Retrieve a simplified list of your monitors, including their current state, check frequency, latest check status and the timestamp of the latest available notification.
No additional querystring parameters are required.
The Data node of the API response contains an array
of Monitor objects.
The detailed LastLog and LastNotification
objects are not included in this response and will have a value
of null.
To retrieve these objects, use the GetMonitor endpoint described below.
If no monitors are available, an empty array is returned.
Retrieve detailed information about a specific monitor. In addition to the basic monitor information, the response includes the latest available check result and notification.
| |||||||
[monitoruuid]
|
string, required |
The unique identifier of the monitor.
You can obtain this identifier from the
UserMonitorUuid field returned by GetMonitors.
|
The Data node of the API response contains a single
Monitor object.
If the requested monitor does not exist, or is not accessible using the provided API key, an error is returned.
Both Monitoring API endpoints share the same data structure. The structure is also used when delivering notifications through monitoring webhooks.
Some fields and objects may contain a value of null.
This is expected behaviour, particularly for newly created
monitors or monitors that have not recently generated a
notification.
UserMonitorUuid |
string | The unique identifier of the monitor. |
CreatedTimestamp |
datetime | When the monitor was created. |
LastUpdateTimestamp |
datetime | When the monitor was last updated. |
Name |
string | The display name of the monitor. |
MonitorType |
string (enum) | The type of monitoring performed. |
UserState |
string (enum) | The current operational state of the monitor. |
FromTimestamp |
datetime | The beginning of the monitoring period. |
ToTimestamp |
datetime | The end of the monitoring period. |
RepeatSec |
integer | The configured interval between checks, in seconds. |
NextTimestamp |
datetime | The next scheduled check. |
ErrorCount |
integer | The current consecutive error count. |
LastLogTimestamp |
datetime, nullable | The timestamp of the latest available check result. |
LastLogState |
string (enum), nullable | The state of the latest available check result. |
LastLog |
object, nullable | Detailed information about the latest available check. See the Log object below. |
LastNotificationTimestamp |
datetime, nullable | The timestamp of the latest available notification. |
LastNotification |
object, nullable | Detailed information about the latest available notification. See the Notification object below. |
The UserState field describes the operational state
of the monitor itself, rather than the result of an individual check.
Enabled |
The monitor is enabled. |
Failed |
The monitor is in a failed state and may retry. |
Suspended |
The monitor has been temporarily suspended. |
Disabled |
The monitor has been disabled. |
Expired |
The configured monitoring period has ended. |
To determine the result of the latest individual check,
use LastLogState rather than UserState.
Contains information about the latest available check result, including timing information, findings and check-specific details.
UserMonitorLogUuid |
string | The unique identifier of the check result. |
UserMonitorUuid |
string | The identifier of the associated monitor. |
CreatedTimestamp |
datetime | The timestamp of the check result. |
ServerAsking |
string | The monitoring server initiating the check. |
ServerResponding |
string | The server responding to or performing the check. |
TimeSpendOuterMs |
integer | The total execution time, in milliseconds. |
DelayInMs |
integer | The recorded scheduling delay, in milliseconds. |
State |
string (enum) | The resulting state of the check. |
Findings |
array | Findings generated during the check. |
Details |
array | Additional check-specific status messages, represented by State and Message fields. |
The contents of Findings and Details
depend on the type of monitor and the outcome of the check.
Applications should not assume that specific findings or
detail entries are always present.
Contains information about the latest available notification generated by the monitor.
Notifications are generated in response to relevant events, changes or conditions detected by a monitor. Not every check generates a notification.
UserNotificationUuid |
string | The unique identifier of the notification. |
CreatedTimestamp |
datetime | When the notification was created. |
LastUpdateTimestamp |
datetime | When the notification was last updated. |
UserMonitorUuid |
string | The identifier of the associated monitor. |
UserMonitorLogUuid |
string, nullable | The identifier of the associated check, if available. |
NotificationType |
string (enum) | The type of notification generated. |
NotificationTimestamp |
datetime | The timestamp of the notification. |
NotificationState |
string (enum) | The state or severity associated with the notification. |
Text |
string | A human-readable description of the notification. |
Please note: The latest check and the latest notification
are independent of each other and may refer to different checks.
Use UserMonitorLogUuid to determine whether a
notification is associated with a specific check result.