Looking Glass API
Introduction
The Looking Glass API is for checking domains and email addresses. You do not have to be logged in to use this facility.
The API endpoint can be reached at:
http://looking-glass.aql.com/lookingGlassApi.php?domain=aql.com
Exit code | Description |
---|---|
206 | Command missing |
400 | Error processing response |
401 | Not authorized |
500 | Internal server error |
504 | Gateway timeout |
600 | Command not valid |
Parameters and values
domain (type string) –
The domain that is to be monitored. This parameter is Optional. Requires a value of a valid domain
ping (type bool) –
calls the ping function, pinging the destination given in the domain parameter. This parameter is Optional. Requires Domain to be set.
dig (type bool) –
calls the dig function to analyse the domain records of domain. The type of record that will be looked up will be dependent on the parameter given in recordType. This parameter is Optional. Requires Domain to be set.
recordType (type string) –
defines the record that is to be looked up the default is A. If dig is set, then this parameter is Mandatory.
portscan (type bool) –
scans common network ports 21,25,80,110 and 143 of the given domain to see if they are open. This parameter is Optional. Requires domain to be set.
emailAddress (type string) –
specifies the email address that is to be analysed. This parameter is Optional.
Whois query
domain=aql.com&whois=on
Parameter | Value | Description |
---|---|---|
whois | On | Perform whois search |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<whois server=”whois.internic.net”>
<domainName>AQL.COM</domainName>
<registrar>
CSL COMPUTER SERVICE LANGENBACH GMBH D/B/A JOKER.COM
</registrar>
<whoisServer>whois.joker.com</whoisServer><referralUrl>http://www.joker.com</referralUrl><nameServer>NS0.AQ.NET.UK</nameServer><nameServer>NS1.AQ.NET.UK</nameServer><nameServer>NS2.AQ.NET.UK</nameServer><nameServer>NS3.AQ.NET.UK</nameServer>
<status>clientTransferProhibited http://www.icann.org/epp</status><updatedDate>29-oct-2014</updatedDate>
<creationDate>10-nov-1997</creationDate>
<expirationDate>09-nov-2020</expirationDate>
</whois>
</response>
Dig query
domain=aql.com&dig=on&recordType=MX
Parameter | Value | Description |
---|---|---|
dig | On | Perform DNS lookup |
recordType | MX,NS,A,CNAME,PTR,TXT,SOA,all | DNS record type |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<Dig>
<MX>
<host>aql.com</host>
<pri>0</pri>
<target>inderstar3.a-q.co.uk</target>
<class>IN</class>
<ttl>600</ttl>
</MX>
</Dig>
</response>
Ping query
domain=aql.com&ping=on
Parameter | Value | Description |
---|---|---|
ping | On | Perform ping |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<Ping>
<packet1 icmp_req=”1″ ttl=”62″ rtt=”6.92″ from=”194.145.189.106″/>
<packet2 icmp_req=”2″ ttl=”62″ rtt=”6.43″ from=”194.145.189.106″/>
<packet3 icmp_req=”3″ ttl=”62″ rtt=”6.22″ from=”194.145.189.106″/>
<packet4 icmp_req=”4″ ttl=”62″ rtt=”6.29″ from=”194.145.189.106″/>
<packet5 icmp_req=”5″ ttl=”62″ rtt=”6.83″ from=”194.145.189.106″/>
<PingStats>
<stats packetsSent=”5″ packetsReceived=”5″ packetLoss=”0″ time=”4004″/>
</PingStats>
</Ping>
</response>
Trace query
domain=aql.com&trace=on
Parameter | Value | Description |
---|---|---|
trace | On | Perform trace |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<traceRoute>
<traceRoute TraceTo=”aql.com”/>
<traceRoute hop1=”traceroute to 194.145.189.106 (194.145.189.106), 30 hops max, 60 byte packets “/>
<traceRoute hop2=”rt.the.aql.com (194.145.190.1) 2.706 ms 2.663 ms 2.652 ms”/>
<traceRoute hop3=”unassigned.aql.com (194.145.188.182) 7.691 ms 7.700 ms 7.713 ms”/>
<traceRoute hop4=”rt1.hex.aql.com (194.145.189.246) 9.036 ms 9.037 ms 9.029 ms”/>
</traceRoute>
</response>
Portscan query
domain=aql.com&portscan=on
Parameter | Value | Description |
---|---|---|
portscan | On | Perform portscan |
<response>
<Address>
<IP>194.145.189.106</IP>
<DomainName>aql.com</DomainName>
</Address>
<PortScan>
<FTP-21>504</FTP-21>
<SMTP-25>504</SMTP-25>
<Finger-79>504</Finger-79>
<HTTP-80>
HTTP/1.1 200 OK
Date: Mon, 05 Oct 2015 13:32:15 GMT
Server: Apache
Set-Cookie: PHPSESSID=d34d5d1fda4372c6abd684a699acfa6f; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=iso-8859-1
</HTTP-80>
<POP3-110>504</POP3-110>
<IMAP-143>504</IMAP-143>
</PortScan>
</response>
Email query
email=support@aql.com
<response>
<EmailCheck>
<preference>0</preference>
<exchange>inderstar3.a-q.co.uk</exchange>
<ip>78.40.242.17</ip>
<SMTPSession>220 inderstar3.a-q.co.uk ESMTP Mon, 5 Oct 2015 14:36:13 +0100
</SMTPSession>
<SMTPSession>EHLO aql.com</SMTPSession>
<SMTPSession>250-inderstar3.a-q.co.uk Hello service.aql.com [109.239.103.15], pleased to meet you
</SMTPSession>
<SMTPSession>250-ENHANCEDSTATUSCODES</SMTPSession>
<SMTPSession>250-PIPELINING</SMTPSession>
<SMTPSession>250-8BITMIME</SMTPSession>
<SMTPSession>250-SIZE</SMTPSession>
<SMTPSession>250-DSN</SMTPSession>
<SMTPSession>250-ETRN</SMTPSession>
<SMTPSession>250-DELIVERBY</SMTPSession>
<SMTPSession>250 HELP</SMTPSession>
<SMTPSession>MAIL FROM: <looking-glass@uk.aql.com></SMTPSession>
<SMTPSession>250 2.1.0 <looking-glass@uk.aql.com>… Sender ok</SMTPSession>
<SMTPSession>RCPT TO:<support@aql.com></SMTPSession>
<SMTPSession>553 5.3.0 <support@aql.com>… >support<@aql.com.</SMTPSession>
<SMTPSession>RSET</SMTPSession>
<SMTPSession>250 2.0.0 Reset state</SMTPSession>
<SMTPSession>QUIT</SMTPSession>
<SMTPSession>221 2.0.0 inderstar3.a-q.co.uk closing connection</SMTPSession>
</EmailCheck>
</response>