You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightweight TypeScript SDK for the Robtex API. DNS, IP, AS, Bitcoin, and Lightning Network intelligence.
Zero dependencies
Full TypeScript types
Works everywhere: Node, Deno, Bun, Cloudflare Workers, browsers
55 endpoints covering DNS, passive DNS, IP reputation, geolocation, BGP, domain analysis, Bitcoin, and Lightning Network
Install
npm install @robtex/sdk
Quick Start
import{Robtex}from'@robtex/sdk';constapi=newRobtex();// DNS lookupconstdns=awaitapi.lookupDns({hostname: 'google.com'});// IP reputation — check against 100+ blocklistsconstrep=awaitapi.ipReputation({ip: '8.8.8.8'});// Passive DNS — find all records for a domainconstpdns=awaitapi.pdnsForward({domain: 'example.com'});// Bitcoin address lookupconstaddr=awaitapi.lookupBitcoinAddress({address: '1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa'});
Authentication (Optional)
Works without any key (rate-limited to 10 req/hr). Three options for higher limits:
// Free — no key, 10 req/hrconstapi=newRobtex();// Pro API key — higher limitsconstapi=newRobtex({apiKey: 'your-key'});// RapidAPI key — managed billing, plans from $19/moconstapi=newRobtex({rapidApiKey: 'your-rapidapi-key'});
import{Robtex}from'@robtex/sdk';constapi=newRobtex();// Investigate a domain: DNS + IP reputation + shared hostingconstdns=awaitapi.lookupDns({hostname: 'suspicious-site.com'});constip=dns.records.find(r=>r.type==='A')?.value;if(ip){const[reputation,shared,geo]=awaitPromise.all([api.ipReputation({ ip }),api.domainSharedIp({hostname: 'suspicious-site.com'}),api.ipGeolocation({ ip }),]);console.log({ dns, ip, reputation, shared, geo });}