seer-rb

Ruby SDK for SEER API

Example

Host query

Register with API token

seer = Seer::Hosts.new(token: API_TOKEN, host: API_HOST)

Get host information by IP

host = seer.ip(IP)

Get host information by custom search syntax

host = seer.search(QUERY, RETURN_FIELD)

Get hosts by port

hosts = seer.port(PORT)

Domain query

Register with API token

seer = Seer::DNS.new(token: API_TOKEN, host: API_HOST)

Get type A record by IP

seer.ip(IP)

Get type A record by domain

seer.domain(DOMAIN)

Get subdomain by domain

seer.subdomain(SUBDOMAIN)
seer.search(key: KEY, type: TYPE)

Org query

Register with API token

seer = Seer::Org.new(token: API_TOKEN, host: API_HOST)

Get org by ip

seer.ip(ip)

Get ip by asn

seer.asn(asn)

Installation

gem install seer-rb
gem "seer-rb"

Project tracking

Usage

require 'seer'