sst_sa_keywords_info: Keywords summary

Description Usage Arguments Value API rows consumption Sorting Examples

View source: R/search_analytics.R

Description

Returns a number of metrics for each keyword like search volume, CPC and competition level.

Usage

1
2
3
4
5
6
7
sst_sa_keywords_info(
  api_token,
  keywords,
  se,
  sort = NULL,
  return_method = "list"
)

Arguments

api_token

(required) Serpstat API token from your profile.

keywords

(required) A vector of keywords to analyze.

se

(required) Search engine alias (db_name) returned by sst_sa_database_info.

sort

(optional) A field to sort the response. See Sorting for more details.

return_method

(optional) Accepted values are 'list' (default) to return data object as list or 'df' to return data object as data.frame.

Value

Returns a number of metrics for each keyword.

API rows consumption

1 per keyword in request.

Sorting

You can sort the response using sort argument. It must be a list with a single named element. The name of the element must match one of parameters in response. The value of the element must be asc for ascending order and desc for descending order. For example, sort = list(ads = 'desc') would sort the response by ads parameter in descending order.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
api_token <- 'api_token'
sst_sa_keywords_info(
  api_token     = api_token,
  keywords      = c('seo', 'ppc', 'serpstat'),
  se            = 'g_us',
  sort          = list(cost = 'asc'),
  return_method = 'df'
)$data

## End(Not run)

serpstatr documentation built on Jan. 11, 2021, 1:36 a.m.