View source: R/utility_functions.R
sst_call_api_method | R Documentation |
Make a request to Serpstat API endpoint
sst_call_api_method(api_token, api_method, api_params = NULL)
api_token |
Serpstat API token from the profile page. |
api_method |
Internal name of API method. |
api_params |
A list of API parameters used by api_method. More information about parameters in the official docs. |
The list with a response data.
api_params <- list(
query = 'serpstat.com',
page = 1,
size = 5
)
tryCatch({
serpstatr:::sst_call_api_method(
api_token = Sys.getenv('SERPSTAT_API_TOKEN'),
api_method = 'SerpstatLimitsProcedure.getStats',
api_params = api_params
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.