mozLinkMetrics: Function to retrive Link Metrics from Moz-API

Description Usage Arguments Examples

View source: R/mozLinkMetrics.R

Description

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.

Usage

1
2
3
mozLinkMetrics(page, Access_ID, Secret_Key, Scope = "page_to_page",
  Limit = 1, Filter = "", Sort = "", SourceCols = "536870916",
  TargetCols = "536870916", LinkCols = "")

Arguments

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()

Examples

1
2
3
4
5
6
7
## 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)

seoR documentation built on Jan. 29, 2018, 5:05 p.m.

Related to mozLinkMetrics in seoR...