Grab 'ahrefs' API data x

⚠️ THIS IS A WORK IN PROGRESS

What is ahref?

Ahrefs is an All-in-one SEO toolset that allows to

  • Optimize your website Site Audit

  • Analyze your competitors

  • Study what your customers are searching

  • Learn from your industry’s top performing content

  • Track your ranking progress

We will be using a package called RAhrefs by Leszek Siemiński use ahref with R

Installation

# main version on CRAN:
install.packages("RAhrefs")

# development version:
# install.packages("devtools")
# devtools::install_github("Leszek-Sieminski/RAhrefs")

Authentication

Checking available reports

To check what Ahrefs data are available in R through API, you need to check provided help dataset:

Checking available reports

To check what Ahrefs data are available in R through API, you need to check provided help dataset:

Checking available metrics

To check what metrics can be choosen, you need to check provided help dataset:

However, different functions can accept different metrics for experimental where & having conditions. To find out which ones are available for a particular function, check that function's documentation.

Creating conditions

Ahrefs API can use where, having and order_by parameters. However, behaviour of where and having may change in further updates.

Usage

Last updated

Was this helpful?