sst_sa_database_info: List all Serpstat databases

View source: R/search_analytics.R

sst_sa_database_infoR Documentation

List all Serpstat databases

Description

In every request to get data from search analytics API you must set se parameter to specify from what country do you want to get the data. This method returns all acceptable values for se parameter with corresponding country names.

Usage

sst_sa_database_info(api_token, return_method = "list")

Arguments

api_token

(required) Serpstat API token from your profile.

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 country name, se parameter value and local search engine domain name for each country.

API docs

Check all the values for request and response fields here.

API rows consumption

0

Examples

## Not run: 
api_token <- Sys.getenv('SERPSTAT_API_TOKEN')
sst_sa_database_info(api_token)$data

## End(Not run)

serpstatr documentation built on Sept. 9, 2023, 5:06 p.m.