-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathSemRush_test_case.php
45 lines (26 loc) · 1.06 KB
/
SemRush_test_case.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?PHP
include_once('SemRush.php');
$s = new SemRush('http://reddit.com');
echo "Main Report: ";
print_r($s->getMainReport());
//you can also use the SEMRush PHP API to call different types of reports not listed
print_r($s->callReport("domain_rank", array("export_columns"=>"Dn,Rk,Or,Ot,Oc,Ad,At,Ac")));
//echo "getMainKeywordReport: ";
//print_r($s->getMainKeywordReport("Seo"));
//echo "getOrganicKeywordsReport: ";
//print_r($s->getOrganicKeywordsReport());
//echo "getAdwordsKeywordReport: ";
//print_r($s->getAdwordsKeywordReport());
//echo "getOrganicURLReport";
//print_r($s->getOrganicURLReport());
//echo "getAdwordsURLReport";
//print_r($s->getAdwordsURLReport());
//echo 'getCompetitorsInOrganicSearchReport';
//print_r($s->getCompetitorsInOrganicSearchReport());
//echo 'getCompetitorsInAdwordsSearchReport';
//print_r($s->getCompetitorsInAdwordsSearchReport());
//echo 'getPotentialAdTrafficBuyersReport';
//print_r($s->getPotentialAdTrafficBuyersReport());
//echo 'getPotentialAdTrafficSellersReport';
//print_r($s->getPotentialAdTrafficSellersReport());
?>