lib/shodan/clients/host.rb
# 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.
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.
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 .
def count(query = "", facets: {}, **params)
        params[:query] = query
        converted_params = turn_into_query(params)
        facets = turn_into_facets(facets)
        get("/shodan/host/count", **converted_params.merge(facets))
      end
def count ( query = "" , facets : { } , ** params ) params [ :query ] = query converted_params = turn_into_query ( params ) facets = turn_into_facets ( facets ) get ( "/shodan/host/count" , ** converted_params . merge ( facets ) ) end
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.
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 .
query
facets
params