Login

Robtex API





Robtex Free API

This API is free to use, however it is limited in rate and amount of data returned. This is to avoid abuse.
We also provide a Professional API for larger volumes.
We are very interested to know what you build with this, if you make something of general interest, please let us know and we can add a link.

The API is (mostly) JSON based and located on https://freeapi.robtex.com/

Robtex PRO API

Syntax is basically the same as for the free API, but there is no ratelimit. The url changes from freeapi.robtex.com to proapi.robtex.com and the API-key is added.

https://freeapi.robtex.com/ipquery/93.184.216.34
becomes
https://proapi.robtex.com/ipquery/93.184.216.34?key=X
Replace X with your private API-key. You can see your private key on the dashboard

Current pricing:
ipquery1 credit per query
asqueryTBD
pdnsTBD

ipquery

This API returns the current forward and reverse of an IP number, together with GEO-location data and network data. The format returned is JSON. Most keys are self-explanatory.
status
Should be "ok"
pas
Passive (reverse) DNS
pash
Passive DNS history
act
Active (forward) DNS
acth
Active DNS history
The arrays returned include a timestamp "t" when a record was last seen.
Example query: https://freeapi.robtex.com/ipquery/199.19.54.1
{
   "status": "ok",
   "city": "Toronto",
   "country": "Canada",
   "as": 12041,
   "asname": "AFILIAS-NST Afilias Limited",
   "whoisdesc": "Afilias Canada, Corp. (ACC-308)",
   "routedesc": "REACH (Customer Route)",
   "bgproute": "199.19.54.0/24"
   "act": [
      {
         "o": "b0.org.afilias-nst.org",
         "t": 1498717654
      }
   ],
   "acth": [],
   "pas": [
      {
         "o": "b0.org.afilias-nst.org",
         "t": 1501358830
      },
      {
         "o": "b0.nic.ngo",
         "t": 1501358850
      },
      {
         "o": "b0.org.afilias-nst.info",
         "t": 1493870770
      },
      {
         "o": "b0.nic.ong",
         "t": 1500758606
      },
      {
         "o": "b0.org.afilias-nst.org",
         "t": 1452591322
      }
   ],
   "pash": [],
}

asquery

Returns an array of networks related to a specific AS number. Currently only returns networks actually in global bgp table, but plans are to extend it.
Example query: https://freeapi.robtex.com/asquery/1234
{
   "status": "ok",
   "nets": [
      {
         "n": "132.171.0.0/16",
         "inbgp": 1
      },
      {
         "n": "132.171.0.0/17",
         "inbgp": 1
      },
      {
         "n": "132.171.128.0/17",
         "inbgp": 1
      },
      {
         "n": "193.110.32.0/21",
         "inbgp": 1
      },
      {
         "n": "193.110.32.0/22",
         "inbgp": 1
      },
      {
         "n": "193.110.36.0/22",
         "inbgp": 1
      }
   ]
}

pdns

This API returns ldjson format, that is one JSON object per line.
The format used is Passive DNS - Common Output Format Examples:

Forward:

https://freeapi.robtex.com/pdns/forward/a.iana-servers.net
{"rrname":"a.iana-servers.net","rrdata":"2001:500:8c::53","rrtype":"AAAA","time_first":1441242410,"time_last":1460542918,"count":18}
{"rrname":"a.iana-servers.net","rrdata":"2001:500:8f::53","rrtype":"AAAA","time_first":1460751956,"time_last":1501399246,"count":18}
{"rrname":"a.iana-servers.net","rrdata":"199.43.132.53","rrtype":"A","time_first":1441242410,"time_last":1460542918,"count":18}
{"rrname":"a.iana-servers.net","rrdata":"199.43.135.53","rrtype":"A","time_first":1460751956,"time_last":1501399246,"count":18}

Reverse:

https://freeapi.robtex.com/pdns/reverse/199.43.132.53
{"rrname":"a.iana-servers.org","rrdata":"199.43.132.53","rrtype":"A","time_first":1439620242,"time_last":1460165924,"count":18}
{"rrname":"a.icann-servers.net","rrdata":"199.43.132.53","rrtype":"A","time_first":1448005462,"time_last":1456189254,"count":2}
{"rrname":"a.iana-servers.org","rrdata":"199.43.132.53","rrtype":"A","time_first":1439620242,"time_last":1460165924,"count":18}
{"rrname":"a.iana-servers.net","rrdata":"199.43.132.53","rrtype":"A","time_first":1441242410,"time_last":1460542918,"count":18}

Unauthorised usage and access will be detected and blocked. We reserve the right to take counter-measures against any such unauthorized use of our service.
The API is provided as is on a best-effort basis without any guarantees, and specifications can change without prior notice.

Mashape/Rapid API

We also have some API endpoints on mashape with pay-as-you-go functionality:
Mashape




This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.