class

BraveSearch::Client

Inherits Reference < Object

Constructors

new(api_key : String, config : Config = Config.new)
Source
new(api_key : String, adapter : HTTP::Adapter, config : Config = Config.new)
Source

Instance methods

config
Source
image_search(query : String, count : Int32 | Nil = nil, offset : Int32 | Nil = nil, safesearch : Types::SafeSearch | Nil = nil, country : String | Nil = nil, search_lang : String | Nil = nil, ui_lang : String | Nil = nil, spellcheck : Bool | Nil = nil) : Responses::ImageSearch
Source
local_descriptions(ids : Array(String)) : Responses::LocalDescriptions
Source
local_pois(ids : Array(String), local_country : String | Nil = nil) : Responses::LocalPois
Source
news_search(query : String, count : Int32 | Nil = nil, offset : Int32 | Nil = nil, safesearch : Types::SafeSearch | Nil = nil, freshness : Types::Freshness | Types::FreshnessRange | String | Nil = nil, country : String | Nil = nil, search_lang : String | Nil = nil, ui_lang : String | Nil = nil, spellcheck : Bool | Nil = nil) : Responses::NewsSearch
Source
rich_results(callback_key : String) : Responses::Rich

Assuming rich results takes 'q' as the parameter for the callback key

Source
spellcheck(query : String, country : String | Nil = nil, search_lang : String | Nil = nil, ui_lang : String | Nil = nil) : Responses::Spellcheck
Source
suggest(query : String, count : Int32 | Nil = nil, country : String | Nil = nil, rich : Bool | Nil = nil) : Responses::Suggest
Source
summarizer(key : String, entity_info : Bool | Nil = nil) : Responses::Summarizer
Source
video_search(query : String, count : Int32 | Nil = nil, offset : Int32 | Nil = nil, safesearch : Types::SafeSearch | Nil = nil, freshness : Types::Freshness | Types::FreshnessRange | String | Nil = nil, country : String | Nil = nil, search_lang : String | Nil = nil, ui_lang : String | Nil = nil, spellcheck : Bool | Nil = nil) : Responses::VideoSearch
Source
web_search(query : String, country : String | Nil = nil, search_lang : String | Nil = nil, ui_lang : String | Nil = nil, count : Int32 | Nil = nil, offset : Int32 | Nil = nil, safesearch : Types::SafeSearch | Nil = nil, freshness : Types::Freshness | Types::FreshnessRange | String | Nil = nil, text_decorations : Bool | Nil = nil, spellcheck : Bool | Nil = nil, goggles_id : String | Nil = nil, units : Types::Units | Nil = nil, extra_snippets : Bool | Nil = nil, summary : Bool | Nil = nil, enable_rich_callback : Int32 | Nil = nil, result_filter : String | Nil = nil) : Responses::WebSearch
Source