# shellcheck shell=bash

___x_cmd_shodan_trend_search_facet(){
    shodan:arg:format:raw:json2app:all

    shodan:info "List all filters that can be used when searching"
    ___x_cmd_shodan_trend_search_facet___"$format"
}



___x_cmd_shodan_trend_search_facet___app(){
    local data; data="$( ___x_cmd_shodan_trend_search_facet___raw "$@" )" || return
    ___x_cmd_pipevar    data        ___x_cmd_shodan___j2y2pick
}


___x_cmd_shodan_trend_search_facet___json(){
    local data; data="$( ___x_cmd_shodan_trend_search_facet___raw "$@" )" || shodan:data:ret
    ___x_cmd_pipevar    data
}

___x_cmd_shodan_trend_search_facet___raw(){
    x ccmd 10m --  ___x_cmd_shodan_ourl get \
        "https://trends.shodan.io/api/v1/search/facets"
}


