laravel-keywords-ahrefs maintained by aimeos
Description
Ahrefs driver for Laravel Keywords Bridge
Last update
2026/10/27 12:55
(dev-master)
License
Downloads
0
Tags
Laravel Keywords Ahrefs
Ahrefs Keywords Explorer driver for the Laravel Keywords Bridge using the Ahrefs API v3.
Installation
composer require aimeos/laravel-keywords-ahrefs
Configuration
Add these settings to your .env file and set KEYWORDS_DRIVER=ahrefs:
AHREFS_API_KEY=...
AHREFS_COUNTRY=us
AHREFS_API_KEY: API key from your Ahrefs account settings (requires a plan with API access)AHREFS_COUNTRY: Two letter ISO country code sent if no country is passed (the API requires one)
Optional settings in the ahrefs section of ./config/keywords-bridge.php:
timeout: Request timeout in seconds (default:30)
Usage
use Aimeos\KeywordsBridge\Facades\Keywords;
// worldwide search volume
$result = Keywords::volume(['laravel cms', 'headless cms']);
// related keywords in Germany
$result = Keywords::related('laravel cms', 'de', 100);
- Without a country, the worldwide volume (
global_volume) is returned. - Volume uses the
keywords-explorer/overviewendpoint (100 keywords per request). - Related keywords use the
keywords-explorer/related-termsendpoint, ordered by volume (at most 1000). - Keywords containing commas can't be passed to the API and are returned with a
nullvolume. - Each request consumes API units of your Ahrefs plan.
License
This package is released under the LGPL-2.1+ License.