1. Go to this page and download the library: Download nticaric/majestic-seo-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nticaric / majestic-seo-api example snippets
use Nticaric\Majestic\MajesticAPIService;
//if the second parameter is set to true, the sanbox mode is used
$service = new MajesticAPIService("your_api_key", true);
$params = array(
'MaxSameSourceURLs' => 1
);
$response = $service->getBackLinkData('example.com', $params);
print_r( (string) $response->getBody());
use Nticaric\Majestic\MajesticAPIService;
//if the second parameter is set to true, the sanbox mode is used
$service = new MajesticAPIService("your_api_key", true);
$params = array(
'item' => 'example.com',
'MaxSameSourceURLs' => 1
);
$response = $service->executeCommand('GetBackLinkData', $params);
print_r( (string) $response->getBody());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.