module Similarweb::DesktopTraffic::SearchKeyword
Public Instance Methods
organic_search_keyword(domain, start_date, end_date, limit = nil)
click to toggle source
NOTE: start_date, end_date format: YYYY-MM
# File lib/similarweb/desktop_traffic/search_keyword.rb, line 7 def organic_search_keyword(domain, start_date, end_date, limit = nil) response = self.http_client.get "v1/website/#{domain}/traffic-sources/organic-search?api_key=#{self.api_key}&start_date=#{start_date}&end_date=#{end_date}&limit=#{limit}" JSON.parse(response.body) end
paid_search_keyword(domain, start_date, end_date, limit = nil)
click to toggle source
# File lib/similarweb/desktop_traffic/search_keyword.rb, line 12 def paid_search_keyword(domain, start_date, end_date, limit = nil) response = self.http_client.get "v1/website/#{domain}/traffic-sources/paid-search?api_key=#{self.api_key}&start_date=#{start_date}&end_date=#{end_date}&limit=#{limit}" JSON.parse(response.body) end