Permalink
Fetching contributors…
Cannot retrieve contributors at this time
460 lines (427 sloc) 42.3 KB
<?xml version="1.0" encoding="utf-8" ?>
<Suite Category="SEO" Title="Moz" Id="Moz" SourceUrl="https://github.com/nielsbosma/SeoTools-for-Excel-Connectors/blob/master/Moz.xml" HelpUrl="http://seotoolsforexcel.com/moz/" HelpText="Documentation">
<Author Name="Niels Bosma" Url="https://se.linkedin.com/in/bosmaniels"/>
<Settings HelpUrl="http://seotoolsforexcel.com/moz/" HelpText="What's this?">
<Text Id="AccessId" Title="Access id" Required="true"/>
<Text Id="SecretKey" Title="Secret key" Required="true"/>
<Select Id="AccountType" Title="Account type" DefaultValue="free">
<DataSource>
<Item Id="free" Title="Free (1 request every 10 seconds)"/>
<Item Id="paid" Title="Paid (200 requests per second)"/>
</DataSource>
</Select>
</Settings>
<Resources>
<Resource Id="Cols">
<JsonPath Expr="uu" Title="Canonical URL" Id="uu" Tag="4" Checked="True" Converter="String" HelpText=""/>
<JsonPath Expr="pda" Title="Domain Authority" Id="pda" Tag="68719476736" Checked="True" Converter="Double" HelpText="A normalized 100-point score representing the likelihood of a domain to rank well in search engine results."/>
<JsonPath Expr="ueid" Title="External Equity Links" Id="ueid" Tag="32" Checked="True" Converter="Int" HelpText="The number of external equity links to the URL."/>
<JsonPath Expr="us" Title="HTTP Status Code" Id="us" Tag="536870912" Checked="True" Converter="String" HelpText="The HTTP status code recorded by Mozscape for this URL, if available."/>
<JsonPath Expr="uid" Title="Links" Id="uid" Tag="2048" Checked="True" Converter="Int" HelpText="The number of links (equity or nonequity or not, internal or external) to the URL."/>
<JsonPath Expr="fmrp" Title="MozRank/Subdomain/Normalized" Id="fmrp" Tag="32768" Checked="True" Converter="Double" HelpText="The MozRank of the URL's subdomain."/>
<JsonPath Expr="umrp" Title="MozRank/URL/Normalized" Id="umrp" Tag="16384" Checked="True" Converter="Double" HelpText="The MozRank of the URL."/>
<JsonPath Expr="upa" Title="Page Authority" Id="upa" Tag="34359738368" Checked="True" Converter="Double" HelpText="A normalized 100-point score representing the likelihood of a page to rank well in search engine results."/>
<JsonPath Expr="ulc" Title="Time Last Crawled" Id="ulc" Tag="144115188075855872" Checked="True" Converter="DateTime" HelpText="The time and date on which Mozscape last crawled the URL, returned in Unix epoch format." Converter.SourceFormat="Unix"/>
<JsonPath Expr="ut" Title="Title" Id="ut" Tag="1" Checked="True" Converter="String" HelpText="The title of the page."/>
<JsonPath Expr="ujid" Title="Equity Links" Id="ujid" Tag="256" Checked="False" Converter="Int" HelpText="The number of equity links (internal or external) to the URL."/>
<JsonPath Expr="ued" Title="External Links" Id="ued" Tag="549755813888" Checked="False" Converter="Int" HelpText="The number of external links to the URL, including nofollowed links."/>
<JsonPath Expr="ped" Title="External Links to Root Domain" Id="ped" Tag="2251799813685248" Checked="False" Converter="Int" HelpText="The number of external links to the root domain, including nofollowed links."/>
<JsonPath Expr="fed" Title="External Links to Subdomain" Id="fed" Tag="140737488355328" Checked="False" Converter="Int" HelpText="The number of external links to the subdomain, including nofollowed links."/>
<JsonPath Expr="pib" Title="Linking C Blocks" Id="pib" Tag="36028797018963968" Checked="False" Converter="Int" HelpText="The number of links from the same C class IP addresses."/>
<JsonPath Expr="puid" Title="Links to Root domain" Id="puid" Tag="8589934592" Checked="False" Converter="Int" HelpText="The total number of links, including internal and nofollow links, to the root domain of the URL."/>
<JsonPath Expr="fuid" Title="Links to Subdomain" Id="fuid" Tag="4294967296" Checked="False" Converter="Int" HelpText="The total number of links (including internal and nofollow links) to the subdomain of the URL."/>
<JsonPath Expr="uemrp" Title="MozRank/External Equity/Normalized" Id="uemrp" Tag="1048576" Checked="False" Converter="Double" HelpText="The fraction of the URL's MozRank derived solely from external links."/>
<JsonPath Expr="uemrr" Title="MozRank/External Equity/Raw" Id="uemrr" Tag="1048576" Checked="False" Converter="Double" HelpText="The fraction of the URL's MozRank derived solely from external links."/>
<JsonPath Expr="fjp" Title="MozRank/Root Domain/Combined/Normalized" Id="fjp" Tag="16777216" Checked="False" Converter="Double" HelpText="The combined MozRank of all pages on the subdomain."/>
<JsonPath Expr="fjr" Title="MozRank/Root Domain/Combined/Raw" Id="fjr" Tag="16777216" Checked="False" Converter="Double" HelpText="The combined MozRank of all pages on the subdomain."/>
<JsonPath Expr="pejp" Title="MozRank/Root Domain/External Equity/Normalized" Id="pejp" Tag="4194304" Checked="False" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's root domain."/>
<JsonPath Expr="pejr" Title="MozRank/Root Domain/External Equity/Raw" Id="pejr" Tag="4194304" Checked="False" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's root domain."/>
<JsonPath Expr="pmrp" Title="MozRank/Root Domain/Normalized" Id="pmrp" Tag="65536" Checked="False" Converter="Double" HelpText="The MozRank of the URL's root domain."/>
<JsonPath Expr="pmrr" Title="MozRank/Root Domain/Raw" Id="pmrr" Tag="65536" Checked="False" Converter="Double" HelpText="The MozRank of the URL's root domain."/>
<JsonPath Expr="pjp" Title="MozRank/Subdomain Combined/Normalized" Id="pjp" Tag="8388608" Checked="False" Converter="Double" HelpText="The combined MozRank of all pages on the root domain."/>
<JsonPath Expr="pjr" Title="MozRank/Subdomain Combined/Raw" Id="pjr" Tag="8388608" Checked="False" Converter="Double" HelpText="The combined MozRank of all pages on the root domain."/>
<JsonPath Expr="fejp" Title="MozRank/Subdomain/External Equity/Normalized" Id="fejp" Tag="2097152" Checked="False" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's subdomain."/>
<JsonPath Expr="fejr" Title="MozRank/Subdomain/External Equity/Raw" Id="fejr" Tag="2097152" Checked="False" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's subdomain."/>
<JsonPath Expr="fmrr" Title="MozRank/Subdomain/Raw" Id="fmrr" Tag="32768" Checked="False" Converter="Double" HelpText="The MozRank of the URL's subdomain."/>
<JsonPath Expr="umrr" Title="MozRank/URL/Raw" Id="umrr" Tag="16384" Checked="False" Converter="Double" HelpText="The MozRank of the URL."/>
<JsonPath Expr="ptrp" Title="MozTrust/Root Domain/Normalized" Id="ptrp" Tag="524288" Checked="False" Converter="Double" HelpText="The MozTrust of the root domain of the URL."/>
<JsonPath Expr="ptrr" Title="MozTrust/Root Domain/Raw" Id="ptrr" Tag="524288" Checked="False" Converter="Double" HelpText="The MozTrust of the root domain of the URL."/>
<JsonPath Expr="ftrp" Title="MozTrust/Subdomain/Normalized" Id="ftrp" Tag="262144" Checked="False" Converter="Double" HelpText="The MozTrust of the subdomain of the URL."/>
<JsonPath Expr="ftrr" Title="MozTrust/Subdomain/Raw" Id="ftrr" Tag="262144" Checked="False" Converter="Double" HelpText="The MozTrust of the subdomain of the URL."/>
<JsonPath Expr="utrp" Title="MozTrust/URL/Normalized" Id="utrp" Tag="131072" Checked="False" Converter="Double" HelpText="The MozTrust of the URL."/>
<JsonPath Expr="utrr" Title="MozTrust/URL/Raw" Id="utrr" Tag="131072" Checked="False" Converter="Double" HelpText="The MozTrust of the URL."/>
<JsonPath Expr="upl" Title="Root Domain" Id="upl" Tag="16" Checked="False" Converter="String" HelpText="The root domain of the URL."/>
<JsonPath Expr="peid" Title="Root Domain External Links" Id="peid" Tag="128" Checked="False" Converter="Int" HelpText="The number of external equity links to the root domain of the URL."/>
<JsonPath Expr="uipl" Title="Root Domains Linking" Id="uipl" Tag="1024" Checked="False" Converter="Int" HelpText="The number of root domains with any pages linking to the URL."/>
<JsonPath Expr="pid" Title="Root Domains Linking to Root Domain" Id="pid" Tag="8192" Checked="False" Converter="Int" HelpText="The number of root domains with any pages linking to the root domain of the URL."/>
<JsonPath Expr="fipl" Title="Root Domains Linking to Subdomain" Id="fipl" Tag="17179869184" Checked="False" Converter="Int" HelpText="The number of root domains with at least one link to the subdomain of the URL."/>
<JsonPath Expr="fspsc" Title="Spam Score" Id="fspsc" Tag="67108864" Checked="False" Converter="Double" HelpText="Spam score for the page's subdomain."/>
<JsonPath Expr="feid" Title="Subdomain External Links" Id="feid" Tag="64" Checked="False" Converter="Int" HelpText="The number of external equity links to the subdomain of the URL."/>
<JsonPath Expr="uifq" Title="Subdomains Linking" Id="uifq" Tag="512" Checked="False" Converter="Int" HelpText="The number of subdomains with any pages linking to the URL."/>
<JsonPath Expr="fid" Title="Subdomains Linking to Subdomain" Id="fid" Tag="4096" Checked="False" Converter="Int" HelpText="The number of subdomains with any pages linking to the subdomain of the URL."/>
<JsonPath Expr="ufq" Title="Subdomain" Id="ufq" Tag="8" Checked="FALSE" Converter="String" HelpText="The subdomain of the URL."/>
</Resource>
</Resources>
<RazorFunctions>
<![CDATA[
long BitFlagsByGroup(string group) {
string[] fields = ((string)Model.Fields).Split(',').Select(e => e.Trim().ToLower()).ToArray();
return ((ResultField[])Model.Headers)
.Where(e => e.Tag.StartsWith(group) && fields.Contains(e.Identifier.ToLower()))
.Select(e => long.Parse(e.Tag.Split(':')[1]))
.Aggregate(0L, (x, y) => x | y);
}
long BitFlags() {
string[] fields = ((string)Model.Fields).Split(',').Select(e => e.Trim().ToLower()).ToArray();
return ((ResultField[])Model.Headers)
.Where(e => fields.Contains(e.Identifier.ToLower()))
.Select(e => long.Parse(e.Tag))
.Aggregate(0L, (x, y) => x | y);
}
int IntervalBetweenRequests() {
return Model.AccountType=="free" ? 10000 : 0;
}
string GetUrl()
{
string[] lines = ((string)Model.Url).Trim().Split('\n').Select(e => e.Trim()).Where(e => !string.IsNullOrEmpty(e)).ToArray();
return JsonConvert.SerializeObject(lines.ToArray());
}
]]>
</RazorFunctions>
<RestConnector Id="Metrics" Title="Metrics" HelpUrl="https://moz.com/help/guides/moz-api/mozscape/api-reference/url-metrics" AvailableInSpider="true">
<Parameters>
<Text Id="Url" Title="URL(s)" DefaultValue="" Debug.DefaultValue="http://www.aftonbladet.se" Required="true" Multiline="true" HelpText="Enter one or more Item Ids separated by a new line"/>
</Parameters>
<Fetch>
<Fetch.Url>
<![CDATA[
@{
long expires = DateTime.Now.AddMinutes(5).UnixTimeStampUtc();
string signature = Utils.UrlEncode(Utils.HmacSha1((Model.AccessId+"\n"+expires), Model.SecretKey));
}
http://lsapi.seomoz.com/linkscape/url-metrics/?
Cols=@BitFlags()
&AccessID=@(Model.AccessId)
&Expires=@(expires)
&Signature=@(signature)
]]>
</Fetch.Url>
<HttpSettings>
<RequestMethod>POST</RequestMethod>
<IntervalBetweenRequests RandomFrom="@IntervalBetweenRequests()" RandomTo="@IntervalBetweenRequests()" IfSame="Host"/>
<RequestBody>
<![CDATA[@GetUrl()]]>
</RequestBody>
<RequestHeaders>
<Header Name='User-Agent'>SeoToolsForExcel</Header>
</RequestHeaders>
</HttpSettings>
</Fetch>
<Parse>
<JsonPath Expr="$.*">
<Resource Id="Cols"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error_message"/>
</Fail>
</RestConnector>
<RestConnector Id="TopPages" Title="Top Pages" HelpUrl="https://moz.com/help/guides/moz-api/mozscape/api-reference/top-pages" HelpText="Requires Paid Moz Subscription">
<Parameters>
<Text Id="Subdomain" Title="Subdomain" DefaultValue="" Required="true"/>
<Select Id="Sort" Title="Sort" DefaultValue="page_authority">
<DataSource>
<Item Id="page_authority" Title="Page Authority"/>
<Item Id="domains_linking_page" Title="Domains Linking Page"/>
</DataSource>
</Select>
<Select Id="Filter" Title="Filter" DefaultValue="all">
<DataSource>
<Item Id="all" Title="All"/>
<Item Id="status200" Title="Status200"/>
<Item Id="status301" Title="Status301"/>
<Item Id="status302" Title="Status302"/>
<Item Id="status4xx" Title="Status4xx"/>
<Item Id="status5xx" Title="Status5xx"/>
</DataSource>
</Select>
</Parameters>
<Paging PageSize="50" MaxTake="100000"/>
<Fetch>
<Fetch.Url>
<![CDATA[
@{
long expires = DateTime.Now.AddMinutes(5).UnixTimeStampUtc();
string signature = Utils.UrlEncode(Utils.HmacSha1((Model.AccessId+"\n"+expires), Model.SecretKey));
}
http://lsapi.seomoz.com/linkscape/top-pages/@(Utils.UrlEncode(Model.Subdomain))?
Cols=@BitFlags()
&Limit=@(Model.PageCursor.NextTake)
&Offset=@(Model.PageCursor.NextSkip)
&Sort=@(Model.Sort)
&Filter=@(Model.Filter)
&AccessID=@(Model.AccessId)
&Expires=@(expires)
&Signature=@(signature)
]]>
</Fetch.Url>
<HttpSettings>
<IntervalBetweenRequests RandomFrom="@IntervalBetweenRequests()" RandomTo="@IntervalBetweenRequests()" IfSame="Host"/>
<RequestHeaders>
<Header Name='User-Agent'>SeoToolsForExcel</Header>
</RequestHeaders>
</HttpSettings>
</Fetch>
<Parse>
<JsonPath Expr="*">
<Resource Id="Cols"/>
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error_message"/>
</Fail>
</RestConnector>
<RestConnector Id="Links" Title="Backlinks" HelpUrl="https://moz.com/help/guides/moz-api/mozscape/api-reference/link-metrics">
<Parameters>
<Text Id="Url" Title="URL" DefaultValue="" Required="true"/>
<Text Id="SourceDomain" Title="Source Domain" DefaultValue="" Required="false"/>
<Select Id="Scope" Title="Scope" DefaultValue="page_to_page">
<DataSource>
<Item Id="page_to_page" Title="Page to Page"/>
<Item Id="page_to_subdomain" Title="Page to Subdomain"/>
<Item Id="page_to_domain" Title="Page to Domain"/>
<Item Id="subdomain_to_page" Title="Subdomain to Page"/>
<Item Id="subdomain_to_subdomain" Title="Subdomain to Subdomain"/>
<Item Id="subdomain_to_domain" Title="Subdomain to Domain"/>
<Item Id="domain_to_page" Title="Domain to Page"/>
<Item Id="domain_to_subdomain" Title="Domain to Subdomain"/>
<Item Id="domain_to_domain" Title="Domain to Domain"/>
</DataSource>
</Select>
<Select Id="Sort" Title="Sort" DefaultValue="page_authority">
<DataSource>
<Item Id="page_authority" Title="Page Authority"/>
<Item Id="domain_authority" Title="Domain Authority"/>
<Item Id="domains_linking_domain" Title="Domains Linking Domain"/>
<Item Id="domains_linking_page" Title="Domains Linking Page"/>
<Item Id="by_spam_score" Title="By Spam Score"/>
</DataSource>
</Select>
<Text Id="Filter" Title="Filter" DefaultValue="" Required="false" HelpText="Options:external,follow,nofollow,nonequity,relcanonical,301,302"/>
</Parameters>
<Paging PageSize="50"/>
<Fetch>
<Fetch.Url>
<![CDATA[
@{
long expires = DateTime.Now.AddMinutes(5).UnixTimeStampUtc();
string signature = Utils.UrlEncode(Utils.HmacSha1((Model.AccessId+"\n"+expires), Model.SecretKey));
}
http://lsapi.seomoz.com/linkscape/links/@(Utils.UrlEncode(Model.Url))?
SourceCols=@BitFlagsByGroup("Source")
&TargetCols=@BitFlagsByGroup("Target")
&LinkCols=@BitFlagsByGroup("Link")
&Scope=@(Model.Scope)
&Sort=@(Model.Sort)
@(string.IsNullOrEmpty(Model.SourceDomain) ? "" : "&SourceDomain=" + Model.SourceDomain)
@(string.IsNullOrEmpty(Model.Filter) ? "" : "&Filter=" + Model.Filter)
&Limit=@(Model.PageCursor.NextTake)
&Offset=@(Model.PageCursor.NextSkip)
&AccessID=@(Model.AccessId)
&Expires=@(expires)
&Signature=@(signature)
]]>
</Fetch.Url>
<HttpSettings>
<IntervalBetweenRequests RandomFrom="@IntervalBetweenRequests()" RandomTo="@IntervalBetweenRequests()" IfSame="Host"/>
<RequestHeaders>
<Header Name='User-Agent'>SeoToolsForExcel</Header>
</RequestHeaders>
</HttpSettings>
</Fetch>
<Parse>
<JsonPath Expr="*">
<!-- LINK: -->
<JsonPath Expr="lf" Title="Link/Same Subdomain" Id="lf-2" Converter="Bool" Converter.TrueIfBit="2" Tag="Link:2" HelpText="The link is between two pages on the same domain."/>
<JsonPath Expr="lf" Title="Link/Meta No Follow" Id="lf-2048" Converter="Bool" Converter.TrueIfBit="2048" Tag="Link:2" HelpText="The link appeared on a page using a page-level (meta) nofollow directive. This link passes no juice."/>
<JsonPath Expr="lf" Title="Link/Same Root Domain" Id="lf-4096" Converter="Bool" Converter.TrueIfBit="4096" Tag="Link:2" HelpText="The link is between two pages on the same root domain. The link is internal, and strongly indicates an administrative relationship between the two pages."/>
<JsonPath Expr="lf" Title="Link/Rel Canonical" Id="lf-32768" Converter="Bool" Converter.TrueIfBit="32768" Tag="Link:2" HelpText="The link indicates a canonical form of the page using the rel=canonical directive ."/>
<!--<JsonPath Expr="lf" Title="[Flags]" Id="lf" Tag="Link:2"/>-->
<!-- //LINK -->
<!-- SOURCE: -->
<JsonPath Expr="uu" Title="Source/Canonical URL" Id="uu" Tag="Source:4" Checked="TRUE" Converter="String" HelpText="The canonical form of the URL."/>
<JsonPath Expr="pda" Title="Source/Domain Authority" Id="pda" Tag="Source:68719476736" Checked="FALSE" Converter="Double" HelpText="A normalized 100-point score representing the likelihood of a domain to rank well in search engine results."/>
<JsonPath Expr="ueid" Title="Source/External Equity Links" Id="ueid" Tag="Source:32" Checked="FALSE" Converter="Int" HelpText="The number of external equity links to the URL."/>
<JsonPath Expr="us" Title="Source/HTTP Status Code" Id="us" Tag="Source:536870912" Checked="FALSE" Converter="String" HelpText="The HTTP status code recorded by Mozscape for this URL, if available."/>
<JsonPath Expr="uid" Title="Source/Links" Id="uid" Tag="Source:2048" Checked="FALSE" Converter="Int" HelpText="The number of links (equity or nonequity or not, internal or external) to the URL."/>
<JsonPath Expr="fmrp" Title="Source/MozRank/Subdomain/Normalized" Id="fmrp" Tag="Source:32768" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's subdomain."/>
<JsonPath Expr="umrp" Title="Source/MozRank/URL/Normalized" Id="umrp" Tag="Source:16384" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL."/>
<JsonPath Expr="upa" Title="Source/Page Authority" Id="upa" Tag="Source:34359738368" Checked="FALSE" Converter="Double" HelpText="A normalized 100-point score representing the likelihood of a page to rank well in search engine results."/>
<JsonPath Expr="ulc" Title="Source/Time Last Crawled" Id="ulc" Tag="Source:144115188075855872" Checked="FALSE" Converter="DateTime" HelpText="The time and date on which Mozscape last crawled the URL, returned in Unix epoch format." Converter.SourceFormat="Unix"/>
<JsonPath Expr="ut" Title="Source/Title" Id="ut" Tag="Source:1" Checked="FALSE" Converter="String" HelpText="The title of the page."/>
<JsonPath Expr="ujid" Title="Source/Equity Links" Id="ujid" Tag="Source:256" Checked="FALSE" Converter="Int" HelpText="The number of equity links (internal or external) to the URL."/>
<JsonPath Expr="ued" Title="Source/External Links" Id="ued" Tag="Source:549755813888" Checked="FALSE" Converter="Int" HelpText="The number of external links to the URL, including nofollowed links."/>
<JsonPath Expr="ped" Title="Source/External Links to Root Domain" Id="ped" Tag="Source:2251799813685248" Checked="FALSE" Converter="Int" HelpText="The number of external links to the root domain, including nofollowed links."/>
<JsonPath Expr="fed" Title="Source/External Links to Subdomain" Id="fed" Tag="Source:140737488355328" Checked="FALSE" Converter="Int" HelpText="The number of external links to the subdomain, including nofollowed links."/>
<JsonPath Expr="pib" Title="Source/Linking C Blocks" Id="pib" Tag="Source:36028797018963968" Checked="FALSE" Converter="Int" HelpText="The number of links from the same C class IP addresses."/>
<JsonPath Expr="puid" Title="Source/Links to Root Domain" Id="puid" Tag="Source:8589934592" Checked="FALSE" Converter="Int" HelpText="The total number of links, including internal and nofollow links, to the root domain of the URL."/>
<JsonPath Expr="fuid" Title="Source/Links to Subdomain" Id="fuid" Tag="Source:4294967296" Checked="FALSE" Converter="Int" HelpText="The total number of links (including internal and nofollow links) to the subdomain of the URL."/>
<JsonPath Expr="uemrp" Title="Source/MozRank/External Equity/Normalized" Id="uemrp" Tag="Source:1048576" Checked="FALSE" Converter="Double" HelpText="The fraction of the URL's MozRank derived solely from external links."/>
<JsonPath Expr="uemrr" Title="Source/MozRank/External Equity/Raw" Id="uemrr" Tag="Source:1048576" Checked="FALSE" Converter="Double" HelpText="The fraction of the URL's MozRank derived solely from external links."/>
<JsonPath Expr="fjp" Title="Source/MozRank/Root Domain/Combined/Normalized" Id="fjp" Tag="Source:16777216" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the subdomain."/>
<JsonPath Expr="fjr" Title="Source/MozRank/Root Domain/Combined/Raw" Id="fjr" Tag="Source:16777216" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the subdomain."/>
<JsonPath Expr="pejp" Title="Source/MozRank/Root Domain/External Equity/Normalized" Id="pejp" Tag="Source:4194304" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's root domain."/>
<JsonPath Expr="pejr" Title="Source/MozRank/Root Domain/External Equity/Raw" Id="pejr" Tag="Source:4194304" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's root domain."/>
<JsonPath Expr="pmrp" Title="Source/MozRank/Root Domain/Normalized" Id="pmrp" Tag="Source:65536" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's root domain."/>
<JsonPath Expr="pmrr" Title="Source/MozRank/Root Domain/Raw" Id="pmrr" Tag="Source:65536" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's root domain."/>
<JsonPath Expr="pjp" Title="Source/MozRank/Subdomain Combined/Normalized" Id="pjp" Tag="Source:8388608" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the root domain."/>
<JsonPath Expr="pjr" Title="Source/MozRank/Subdomain Combined/Raw" Id="pjr" Tag="Source:8388608" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the root domain."/>
<JsonPath Expr="fejp" Title="Source/MozRank/Subdomain/External Equity/Normalized" Id="fejp" Tag="Source:2097152" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's subdomain."/>
<JsonPath Expr="fejr" Title="Source/MozRank/Subdomain/External Equity/Raw" Id="fejr" Tag="Source:2097152" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's subdomain."/>
<JsonPath Expr="fmrr" Title="Source/MozRank/Subdomain/Raw" Id="fmrr" Tag="Source:32768" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's subdomain."/>
<JsonPath Expr="umrr" Title="Source/MozRank/URL/Raw" Id="umrr" Tag="Source:16384" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL."/>
<JsonPath Expr="ptrp" Title="Source/MozTrust/Root Domain/Normalized" Id="ptrp" Tag="Source:524288" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the root domain of the URL."/>
<JsonPath Expr="ptrr" Title="Source/MozTrust/Root Domain/Raw" Id="ptrr" Tag="Source:524288" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the root domain of the URL."/>
<JsonPath Expr="ftrp" Title="Source/MozTrust/Subdomain/Normalized" Id="ftrp" Tag="Source:262144" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the subdomain of the URL."/>
<JsonPath Expr="ftrr" Title="Source/MozTrust/Subdomain/Raw" Id="ftrr" Tag="Source:262144" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the subdomain of the URL."/>
<JsonPath Expr="utrp" Title="Source/MozTrust/URL/Normalized" Id="utrp" Tag="Source:131072" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the URL."/>
<JsonPath Expr="utrr" Title="Source/MozTrust/URL/Raw" Id="utrr" Tag="Source:131072" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the URL."/>
<JsonPath Expr="upl" Title="Source/Root Domain" Id="upl" Tag="Source:16" Checked="FALSE" Converter="String" HelpText="The root domain of the URL."/>
<JsonPath Expr="peid" Title="Source/Root Domain External Links" Id="peid" Tag="Source:128" Checked="FALSE" Converter="Int" HelpText="The number of external equity links to the root domain of the URL."/>
<JsonPath Expr="uipl" Title="Source/Root Domains Linking" Id="uipl" Tag="Source:1024" Checked="FALSE" Converter="Int" HelpText="The number of root domains with any pages linking to the URL."/>
<JsonPath Expr="pid" Title="Source/Root Domains Linking to root domain" Id="pid" Tag="Source:8192" Checked="FALSE" Converter="Int" HelpText="The number of root domains with any pages linking to the root domain of the URL."/>
<JsonPath Expr="fipl" Title="Source/Root Domains Linking to subdomain" Id="fipl" Tag="Source:17179869184" Checked="FALSE" Converter="Int" HelpText="The number of root domains with at least one link to the subdomain of the URL."/>
<JsonPath Expr="fspsc" Title="Source/Spam Score" Id="fspsc" Tag="Source:67108864" Checked="FALSE" Converter="Double" HelpText="Spam score for the page's subdomain."/>
<JsonPath Expr="feid" Title="Source/Subdomain External Links" Id="feid" Tag="Source:64" Checked="FALSE" Converter="Int" HelpText="The number of external equity links to the subdomain of the URL."/>
<JsonPath Expr="uifq" Title="Source/Subdomains Linking" Id="uifq" Tag="Source:512" Checked="FALSE" Converter="Int" HelpText="The number of subdomains with any pages linking to the URL."/>
<JsonPath Expr="fid" Title="Source/Subdomains Linking to Subdomain" Id="fid" Tag="Source:4096" Checked="FALSE" Converter="Int" HelpText="The number of subdomains with any pages linking to the subdomain of the URL."/>
<JsonPath Expr="ufq" Title="Source/Subdomain" Id="ufq" Tag="Source:8" Checked="FALSE" Converter="String" HelpText="The subdomain of the URL."/>
<!-- //SOURCE -->
<!-- TARGET: -->
<JsonPath Expr="luuu" Title="Target/Canonical URL" Id="luuu" Tag="Target:4" Checked="TRUE" Converter="String" HelpText="The canonical form of the URL."/>
<JsonPath Expr="lupda" Title="Target/Domain Authority" Id="lupda" Tag="Target:68719476736" Checked="FALSE" Converter="Double" HelpText="A normalized 100-point score representing the likelihood of a domain to rank well in search engine results."/>
<JsonPath Expr="luueid" Title="Target/External Equity Links" Id="luueid" Tag="Target:32" Checked="FALSE" Converter="Int" HelpText="The number of external equity links to the URL."/>
<JsonPath Expr="luus" Title="Target/HTTP status Code" Id="luus" Tag="Target:536870912" Checked="FALSE" Converter="String" HelpText="The HTTP status code recorded by Mozscape for this URL, if available."/>
<JsonPath Expr="luuid" Title="Target/Links" Id="luuid" Tag="Target:2048" Checked="FALSE" Converter="Int" HelpText="The number of links (equity or nonequity or not, internal or external) to the URL."/>
<JsonPath Expr="lufmrp" Title="Target/MozRank/Subdomain/Normalized" Id="lufmrp" Tag="Target:32768" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's subdomain."/>
<JsonPath Expr="luumrp" Title="Target/MozRank/URL/Normalized" Id="luumrp" Tag="Target:16384" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL."/>
<JsonPath Expr="luupa" Title="Target/Page Authority" Id="luupa" Tag="Target:34359738368" Checked="FALSE" Converter="Double" HelpText="A normalized 100-point score representing the likelihood of a page to rank well in search engine results."/>
<JsonPath Expr="luulc" Title="Target/Time Last Crawled" Id="luulc" Tag="Target:144115188075855872" Checked="FALSE" Converter="DateTime" HelpText="The time and date on which Mozscape last crawled the URL, returned in Unix epoch format." Converter.SourceFormat="Unix"/>
<JsonPath Expr="luut" Title="Target/Title" Id="luut" Tag="Target:1" Checked="FALSE" Converter="String" HelpText="The title of the page."/>
<JsonPath Expr="lufem" Title="Target/Email Address" Id="lufem" Tag="Target:134217728" Checked="FALSE" Converter="String" HelpText="Email address for the page's subdomain. Not CAN-SPAM compliant!"/>
<JsonPath Expr="luujid" Title="Target/Equity Links" Id="luujid" Tag="Target:256" Checked="FALSE" Converter="Int" HelpText="The number of equity links (internal or external) to the URL."/>
<JsonPath Expr="luued" Title="Target/External Links" Id="luued" Tag="Target:549755813888" Checked="FALSE" Converter="Int" HelpText="The number of external links to the URL, including nofollowed links."/>
<JsonPath Expr="luped" Title="Target/External Links to Root Domain" Id="luped" Tag="Target:2251799813685248" Checked="FALSE" Converter="Int" HelpText="The number of external links to the root domain, including nofollowed links."/>
<JsonPath Expr="lufed" Title="Target/External Links to Subdomain" Id="lufed" Tag="Target:140737488355328" Checked="FALSE" Converter="Int" HelpText="The number of external links to the subdomain, including nofollowed links."/>
<JsonPath Expr="luffb" Title="Target/Facebook Account" Id="luffb" Tag="Target:134217728" Checked="FALSE" Converter="String" HelpText="Facebook account for the page's subdomain."/>
<JsonPath Expr="lufg+" Title="Target/Google+ Account" Id="lufg+" Tag="Target:134217728" Checked="FALSE" Converter="String" HelpText="Google+ account for the page's subdomain."/>
<JsonPath Expr="lupib" Title="Target/Linking C Blocks" Id="lupib" Tag="Target:36028797018963968" Checked="FALSE" Converter="Int" HelpText="The number of links from the same C class IP addresses."/>
<JsonPath Expr="lupuid" Title="Target/Links to Root Domain" Id="lupuid" Tag="Target:8589934592" Checked="FALSE" Converter="Int" HelpText="The total number of links, including internal and nofollow links, to the root domain of the URL."/>
<JsonPath Expr="lufuid" Title="Target/Links to Subdomain" Id="lufuid" Tag="Target:4294967296" Checked="FALSE" Converter="Int" HelpText="The total number of links (including internal and nofollow links) to the subdomain of the URL"/>
<JsonPath Expr="luuemrp" Title="Target/MozRank/External Equity/Normalized" Id="luuemrp" Tag="Target:1048576" Checked="FALSE" Converter="Double" HelpText="The fraction of the URL's MozRank derived solely from external links."/>
<JsonPath Expr="luuemrr" Title="Target/MozRank/External Equity/Raw" Id="luuemrr" Tag="Target:1048576" Checked="FALSE" Converter="Double" HelpText="The fraction of the URL's MozRank derived solely from external links."/>
<JsonPath Expr="lufjp" Title="Target/MozRank/Root Domain/Combined/Normalized" Id="lufjp" Tag="Target:16777216" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the subdomain."/>
<JsonPath Expr="lufjr" Title="Target/MozRank/Root Domain/Combined/Raw" Id="lufjr" Tag="Target:16777216" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the subdomain."/>
<JsonPath Expr="lupejp" Title="Target/MozRank/Root Domain/External Equity/Normalized" Id="lupejp" Tag="Target:4194304" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's root domain."/>
<JsonPath Expr="lupejr" Title="Target/MozRank/Root Domain/External Equity/Raw" Id="lupejr" Tag="Target:4194304" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's root domain."/>
<JsonPath Expr="lupmrp" Title="Target/MozRank/Root Domain/Normalized" Id="lupmrp" Tag="Target:65536" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's root domain."/>
<JsonPath Expr="lupmrr" Title="Target/MozRank/Root Domain/Raw" Id="lupmrr" Tag="Target:65536" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's root domain."/>
<JsonPath Expr="lupjp" Title="Target/MozRank/Subdomain Combined/Normalized" Id="lupjp" Tag="Target:8388608" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the root domain."/>
<JsonPath Expr="lupjr" Title="Target/MozRank/Subdomain Combined/Raw" Id="lupjr" Tag="Target:8388608" Checked="FALSE" Converter="Double" HelpText="The combined MozRank of all pages on the root domain."/>
<JsonPath Expr="lufejp" Title="Target/MozRank/Subdomain/External Equity/Normalized" Id="lufejp" Tag="Target:2097152" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's subdomain."/>
<JsonPath Expr="lufejr" Title="Target/MozRank/Subdomain/External Equity/Raw" Id="lufejr" Tag="Target:2097152" Checked="FALSE" Converter="Double" HelpText="The fraction, derived solely from external links, of the composite MozRank of all pages on the URL's subdomain."/>
<JsonPath Expr="lufmrr" Title="Target/MozRank/Subdomain/Raw" Id="lufmrr" Tag="Target:32768" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL's subdomain."/>
<JsonPath Expr="luumrr" Title="Target/MozRank/URL/Raw" Id="luumrr" Tag="Target:16384" Checked="FALSE" Converter="Double" HelpText="The MozRank of the URL."/>
<JsonPath Expr="luptrp" Title="Target/MozTrust/Root Domain/Normalized" Id="luptrp" Tag="Target:524288" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the root domain of the URL."/>
<JsonPath Expr="luptrr" Title="Target/MozTrust/Root Domain/Raw" Id="luptrr" Tag="Target:524288" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the root domain of the URL."/>
<JsonPath Expr="luftrp" Title="Target/MozTrust/Subdomain/Normalized" Id="luftrp" Tag="Target:262144" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the subdomain of the URL."/>
<JsonPath Expr="luftrr" Title="Target/MozTrust/Subdomain/Raw" Id="luftrr" Tag="Target:262144" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the subdomain of the URL."/>
<JsonPath Expr="luutrp" Title="Target/MozTrust/URL/Normalized" Id="luutrp" Tag="Target:131072" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the URL."/>
<JsonPath Expr="luutrr" Title="Target/MozTrust/URL/Raw" Id="luutrr" Tag="Target:131072" Checked="FALSE" Converter="Double" HelpText="The MozTrust of the URL."/>
<JsonPath Expr="luupl" Title="Target/Root Domain" Id="luupl" Tag="Target:16" Checked="FALSE" Converter="String" HelpText="The root domain of the URL."/>
<JsonPath Expr="lupeid" Title="Target/Root Domain External Links" Id="lupeid" Tag="Target:128" Checked="FALSE" Converter="Int" HelpText="The number of external equity links to the root domain of the URL."/>
<JsonPath Expr="luuipl" Title="Target/Root Domains Linking" Id="luuipl" Tag="Target:1024" Checked="FALSE" Converter="Int" HelpText="The number of root domains with any pages linking to the URL."/>
<JsonPath Expr="lupid" Title="Target/Root Domains Linking to Root Domain" Id="lupid" Tag="Target:8192" Checked="FALSE" Converter="Int" HelpText="The number of root domains with any pages linking to the root domain of the URL."/>
<JsonPath Expr="lufipl" Title="Target/Root Domains Linking to Subdomain" Id="lufipl" Tag="Target:17179869184" Checked="FALSE" Converter="Int" HelpText="The number of root domains with at least one link to the subdomain of the URL."/>
<JsonPath Expr="lufspsc" Title="Target/Spam Score" Id="lufspsc" Tag="Target:67108864" Checked="FALSE" Converter="Double" HelpText="Spam score for the page's subdomain."/>
<JsonPath Expr="lufeid" Title="Target/Subdomain External Links" Id="lufeid" Tag="Target:64" Checked="FALSE" Converter="Int" HelpText="The number of external equity links to the subdomain of the URL."/>
<JsonPath Expr="luuifq" Title="Target/Subdomains Linking" Id="luuifq" Tag="Target:512" Checked="FALSE" Converter="Int" HelpText="The number of subdomains with any pages linking to the URL."/>
<JsonPath Expr="lufid" Title="Target/Subdomains Linking to Subdomain" Id="lufid" Tag="Target:4096" Checked="FALSE" Converter="Int" HelpText="The number of subdomains with any pages linking to the subdomain of the URL."/>
<JsonPath Expr="luftw" Title="Target/Twitter Handle" Id="luftw" Tag="Target:134217728" Checked="FALSE" Converter="String" HelpText="Twitter handle for the page's subdomain."/>
<JsonPath Expr="luufq" Title="Target/Subdomain" Id="luufq" Tag="Target:8" Checked="FALSE" Converter="String" HelpText="The subdomain of the URL."/>
<!-- //TARGET -->
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error_message"/>
</Fail>
</RestConnector>
<RestConnector Id="AnchorTexts" Title="Anchor Texts" HelpUrl="https://moz.com/help/guides/moz-api/mozscape/api-reference/anchor-text-metrics" HelpText="Requires Paid Moz Subscription">
<RazorFunctions>
<![CDATA[
string Prefix() {
return Model.Scope=="page_to_page" ? "apu" :
Model.Scope=="phrase_to_subdomain" ? "apf" :
Model.Scope=="phrase_to_domain" ? "app" :
Model.Scope=="term_to_page" ? "atu" :
Model.Scope=="term_to_subdomain" ? "atf" :
/*term_to_domain*/ "atp";
}
]]>
</RazorFunctions>
<Parameters>
<Text Id="Url" Title="URL" DefaultValue="" Required="true"/>
<Select Id="Scope" Title="Scope" DefaultValue="term_to_page">
<DataSource>
<!--
<Item Id="page_to_page" Title="Page to page" HelpText="Returns phrases found in links to the target URL"/>
<Item Id="page_to_subdomain" Title="Page to subdomain" HelpText="Returns phrases found in links to the subdomain of the target URL"/>
<Item Id="page_to_domain" Title="Page to domain" HelpText="Returns phrases found in links to the root domain of the target URL"/>
-->
<Item Id="term_to_page" Title="Term to Page" HelpText="Returns terms found in links to the target URL"/>
<Item Id="term_to_subdomain" Title="Term to Subdomain" HelpText="Returns terms found in links to the subdomain of the target URL"/>
<Item Id="term_to_domain" Title="Term to Domain" HelpText="Returns terms found in links to the root domain of the target URL"/>
</DataSource>
</Select>
</Parameters>
<Paging PageSize="50"/>
<Fetch>
<Fetch.Url>
<![CDATA[
@{
long expires = DateTime.Now.AddMinutes(5).UnixTimeStampUtc();
string signature = Utils.UrlEncode(Utils.HmacSha1((Model.AccessId+"\n"+expires), Model.SecretKey));
}
http://lsapi.seomoz.com/linkscape/anchor-text/@(Utils.UrlEncode(Model.Url))?
Cols=@BitFlagsByGroup("Cols")
&Scope=@(Model.Scope)
&Limit=@(Model.PageCursor.NextTake)
&Offset=@(Model.PageCursor.NextSkip)
&AccessID=@(Model.AccessId)
&Expires=@(expires)
&Signature=@(signature)
]]>
</Fetch.Url>
<HttpSettings>
<IntervalBetweenRequests RandomFrom="@IntervalBetweenRequests()" RandomTo="@IntervalBetweenRequests()" IfSame="Host"/>
<RequestHeaders>
<Header Name='User-Agent'>SeoToolsForExcel</Header>
</RequestHeaders>
</HttpSettings>
</Fetch>
<Parse>
<JsonPath Expr="*">
<!-- COLS: -->
<JsonPath Expr="@Prefix()t" Title="Term or Phrase" Id="t" Tag="Cols:2" Checked="True" Converter="String" HelpText="The anchor text term or phrase."/>
<JsonPath Expr="@Prefix()eu" Title="External Pages Linking" Id="eu" Tag="Cols:32" Checked="True" Converter="Int" HelpText="The number of external pages linking to the target URL containing this term or phrase."/>
<JsonPath Expr="@Prefix()ef" Title="External Subdomains Linking" Id="ef" Tag="Cols:64" Checked="True" Converter="Int" HelpText="The number of external subdomains with at least one link to the target URL containing this term or phrase."/>
<JsonPath Expr="@Prefix()ep" Title="External Root domains Linking" Id="ep" Tag="Cols:128" Checked="True" Converter="Int" HelpText="The number of external root domains with at least one link to the target URL containing this term or phrase."/>
<JsonPath Expr="@Prefix()emp" Title="External MozRank Passed" Id="emp" Tag="Cols:512" Checked="True" Converter="Double" HelpText="The amount of MozRank passed over all external links with this term or phrase (on a normalized 10-point scale)."/>
<!-- //COLS -->
</JsonPath>
</Parse>
<Fail>
<JsonPath Expr="error_message"/>
</Fail>
</RestConnector>
</Suite>