Description Usage Arguments Value Examples
Get data from the AHREF's API. For more information see the online documentation: https://ahrefs.com/api/documentation.
1 2 |
target |
Aim of a request: a domain, a directory or a URL |
token |
Authentication token |
from |
Table to select data from |
mode |
Mode of operation: exact, domain, subdomains or prefix |
select |
A character vector of columns to select in 'from' table. |
where |
"Where" condition to satisfy. Use helper function 'make_condition' or see documentation for how to build where conditions manually. Where filters before grouping. |
having |
"Having" condition to satisfy. Use helper function 'make_condition' or see documentation for how to build where conditions manually. Having filters after grouping. |
order_by |
List of columns to sort on. Use helper function 'make_order' or see documentation for how to build orders by hand. |
offset |
Position from which to start returning data |
limit |
Number of results to return |
An object of class 'ahrefs_api'
1 2 3 4 5 6 7 | ## Not run:
ahrefs_key <- '123456789'
get_ahrefs_data('mhairihmcneill.com', ahrefs_key, from = 'ahrefs_rank', mode = 'domain')
get_ahrefs_data('mhairihmcneill.com/blog', ahrefs_key, from = 'metrics_extended', mode = 'exact')
get_ahrefs_data('mhairihmcneill.com/blog', ahrefs_key, from = 'refdomains', mode = 'prefix', limit = 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.