get_search_volume: Get Search Volume Data for Keywords

Description Usage Arguments Details Value Examples

Description

Get search volume data though time, along with CPC and CMP data for a set of up to 800 keywords.

Usage

1
2
3
get_search_volume(keywords, api_key, metrics_location = NULL,
  metrics_language = NULL, metrics_network = c("googlesearchnetwork",
  "googlesearch"), metrics_currency = NULL, method = c("get", "post"))

Arguments

keywords

A vector of keywords to analyse

api_key

API key from keywordtool.io

metrics_location

Optional vector of location codes to get results from (see documentation for codes). Maximum 10 locations.

metrics_language

Optional vector of language to search with. See 'language_codes' for list of codes. Maximum 5 languages.

metrics_network

Search network that will be used to pull the search volume data.

metrics_currency

The currency that will be used to display cost-per-click (CPC) data. See 'currency_codes' for list of codes.

method

Whether to request using get or post. Post is recommended for large requests.

Details

For more on how to use this see the Keyword Tool API documentation: http://keywordtool.io/api/documentation

Value

An object of class 'keyword_tool_result'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 

keyword_tool_key <- '1234'

results <-
get_search_volume(keywords = c('scottish salmon', 'scotland fishing'),
                  api_key = keyword_tool_key,
                  metrics_location = c(20339,20342, 2840), #Scotland, England and US
                  metrics_network = 'googlesearch',
                  metrics_currency = 'GBP')

 str(results$content)


## End(Not run)

mhairi/keyword_tool_api documentation built on May 22, 2019, 8:56 p.m.