Skip to content
Permalink
Browse files

Added position endpoint

  • Loading branch information
diskborsteMC committed Jan 30, 2020
1 parent 19daca2 commit c14cf22fe99dd11a889d7327393144e7e937ff05
Showing with 31 additions and 0 deletions.
  1. +31 −0 Ahrefs.xml
@@ -1118,6 +1118,37 @@
</Parse>
<Resource Id="Fail"/>
</RestConnector>

<RestConnector Id="Positions" Title="Positions" HelpText="Contains the estimation of number of keywords, traffic and cost of the target URL.">
<Parameters>
<Text Id="Url" Title="URLs" Debug.DefaultValue="https://seotoolsforexcel.com" Required="true" HelpText="Target(s) to query for metrics"/>
<Resource Id="Mode"/>
<Resource Id="Conditions"/>
</Parameters>
<Fetch>
<Fetch.Url>
<![CDATA[
http://apiv2.ahrefs.com/?token=@(Model.Authenticator.Token)&output=json&from=positions_metrics
&target=@Utils.UrlEncode(Model.Url)
&mode=@(Model.Mode)
@(!string.IsNullOrEmpty(Model.Where) ? "&where=" + Utils.UrlEncode(Model.Where) : "")
@(!string.IsNullOrEmpty(Model.Having) ? "&having=" + Utils.UrlEncode(Model.Having) : "")
]]>
</Fetch.Url>
</Fetch>
<Parse>
<JsonPath Expr="metrics.positions" Id="Positions" Title="Positions" Converter="Long" HelpText="Total number of keywords that the target URL ranks for in the top 100 organic search results across all countries in our database."/>
<JsonPath Expr="metrics.positions_top3" Id="PositionsTop3" Title="Positions Top3" Converter="Long" HelpText="Total number of keywords that the target URL ranks for in the top 3 organic search results across all countries in our database."/>
<JsonPath Expr="metrics.positions_top10" Id="PositionsTop10" Title="Positions Top10" Converter="Long" HelpText="Total number of keywords that the target URL ranks for in the top 10 organic search results across all countries in our database."/>
<JsonPath Expr="metrics.traffic" Id="Traffic" Title="Traffic" Converter="Double" HelpText="Estimation of the total monthly search traffic to the target URL from the top 100 organic search results."/>
<JsonPath Expr="metrics.traffic_top3" Id="TrafficTop3" Title="Traffic Top3" Converter="Double" HelpText="Estimation of the total monthly search traffic to the target URL from the top 3 organic search results."/>
<JsonPath Expr="metrics.traffic_top10" Id="TrafficTop10" Title="Traffic Top10" Converter="Double" HelpText="Estimation of the total monthly search traffic to the target URL from the top 10 organic search results."/>
<JsonPath Expr="metrics.cost" Id="Cost" Title="Cost" Converter="Double" HelpText="The equivalent value of the organic search traffic, should that traffic have been acquired via PPC."/>
<JsonPath Expr="metrics.cost_top3" Id="CostTop3" Title="Cost Top3" Converter="Double" HelpText="The equivalent value of the top 3 organic search traffic, should that traffic have been acquired via PPC."/>
<JsonPath Expr="metrics.cost_top10" Id="CostTop10" Title="Cost Top10" Converter="Double" HelpText="The equivalent value of the top 10 organic search traffic, should that traffic have been acquired via PPC."/>
</Parse>
<Resource Id="Fail"/>
</RestConnector>

<RestConnector Id="SubscriptionInfo" Title="Subscription Info" HelpText="Contains user subscription information.">
<Fetch>

0 comments on commit c14cf22

Please sign in to comment.
You can’t perform that action at this time.