host_count: Search Shodan without Results

Description Usage Arguments Details References Examples

View source: R/host_count.r

Description

This method behaves identical to "/shodan/host/search" with the only difference that this method does not return any host results, it only returns the total number of results that matched the query and any facet information that was requested. As a result this method does not consume query credits.

Usage

1
host_count(query = NULL, facets = NULL)

Arguments

query

Shodan search query. The provided string is used to search the database of banners in Shodan, with the additional option to provide filters inside the search query using a "filter:value" format. For example, the following search query would find Apache webservers located in Germany: "apache country:DE". See https://developer.shodan.io/api for all supported search filters.

facets

A comma-separated list of properties to get summary information on. Property names can also be in the format of "property:count", where "count" is the number of facets that will be returned for a property (i.e. "country:100" to get the top 100 countries for a search query). See https://developer.shodan.io/api for all supported facets.

Details

Returns all services that have been found on the given host IP.

References

https://developer.shodan.io/api

Examples

1
host_count("41.21.249.170")

hrbrmstr/shodan documentation built on May 17, 2019, 5:13 p.m.