sst_rt_project_regions | R Documentation |
In Serpstat you are able to track ranking of your website in multiple regions. This method returns all the regions in your Serpstat project. You will need the results of this method to get rankings in selected region.
sst_rt_project_regions(api_token, project_id, return_method = "list")
api_token |
(required) Serpstat API token from your profile. |
project_id |
(required) The ID of your project in Serpstat. You can find this ID in the URL of any rank tracker report. As an example, in https://serpstat.com/rank-tracker/keywords/12345/positions?get_params the ID would be 12345. |
return_method |
(optional) Accepted values are 'list' (default) to return data object as list or 'df' to return data object as data.frame. |
Returns the regions of the project with their ID, state (active or not) and other region attributes.
Check all the values for request and response fields here.
0
## Not run:
api_token <- Sys.getenv('SERPSTAT_API_TOKEN')
project_id <- 12345
sst_rt_project_regions(api_token = api_token, project_id = project_id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.