View source: R/mozLinkMetrics.R
mozLinkMetrics | R Documentation |
This function allows you to get the Moz Link Metrics. You need a API Key to retrieve this Data. You can generate one for free here: https://moz.com/help/guides/moz-api/mozscape/getting-started-with-mozscape/create-and-manage-your-account At the Moment you just get the Data provided by a free Account.
mozLinkMetrics(page, Access_ID, Secret_Key, Scope = "page_to_page", Limit = 1, Filter = "", Sort = "", SourceCols = "536870916", TargetCols = "536870916", LinkCols = "")
page |
The page you want the data for |
Access_ID |
Your Moz Access ID |
Secret_Key |
Your Moz Secret Key |
Scope |
indicates which links to return based on whether the target and source URLs are pages, domains, or subdomains. |
Limit |
The default value of Limit is 1 and the maximum value is 50. |
Filter |
excludes results unless they meet criteria you specify. You can specify more than one value by separating multiple Filter parameters with a plus symbol +. |
Sort |
Sort links results by:https://moz.com/help/guides/moz-api/mozscape/api-reference/link-metrics |
SourceCols |
is a bit flag: a numerical value specifying which data to include about source URLs that link to the target URL. |
TargetCols |
is a bit flag: a numerical value specifying which data to include about the target URL. |
LinkCols |
is a bit flag: a numerical value specifying which data to include about the link itself (for example, if the link is nofollowed). mozLinkMetrics() |
## Not run: page<-"https://www.r-project.org/" Access_ID<-{{YOUR_ACCESS_ID}} Secret_Key<-{{YOUR_SECRET_KEY}} mozLinkMetrics(page, Access_ID, Secret_Key) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.