Contains the referring domains that contain backlinks to the target.
Request
https://apiv2.ahrefs.com?from=refdomains_by_type&target=ahrefs.com&mode=domain&limit=3&where=gov%3Dtrue&output=xml
Response
<?xml version="1.0" encoding="UTF-8"?>
<AhrefsApiResponse>
<refdomains>
<refdomain>
<refdomain>
anbg.gov.au
</refdomain>
<refdomain_top>
anbg.gov.au
</refdomain_top>
<backlinks>
16
</backlinks>
<backlinks_dofollow>
8
</backlinks_dofollow>
<refpages>
14
</refpages>
<first_seen>
2013-05-03T17:34:57Z
</first_seen>
<last_visited>
2013-05-03T17:37:25Z
</last_visited>
<domain_rating>
64
</domain_rating>
</refdomain>
<refdomain>
<refdomain>
bhgtj.gov.cn
</refdomain>
<refdomain_top>
bhgtj.gov.cn
</refdomain_top>
<backlinks>
1
</backlinks>
<backlinks_dofollow>
0
</backlinks_dofollow>
<refpages>
1
</refpages>
<first_seen>
2014-07-01T13:41:03Z
</first_seen>
<last_visited>
2014-07-01T13:41:03Z
</last_visited>
<domain_rating>
46
</domain_rating>
</refdomain>
<refdomain>
<refdomain>
bjfsh.gov.cn
</refdomain>
<refdomain_top>
bjfsh.gov.cn
</refdomain_top>
<backlinks>
4
</backlinks>
<backlinks_dofollow>
1
</backlinks_dofollow>
<refpages>
4
</refpages>
<first_seen>
2013-05-08T01:13:29Z
</first_seen>
<last_visited>
2013-05-08T01:24:43Z
</last_visited>
<domain_rating>
61
</domain_rating>
</refdomain>
</refdomains>
<stats>
<refdomains>
5
</refdomains>
<ips>
5960
</ips>
<class_c>
4293
</class_c>
<max_backlinks>
16
</max_backlinks>
<max_refpages>
14
</max_refpages>
<total_backlinks>
21
</total_backlinks>
<total_backlinks_dofollow>
9
</total_backlinks_dofollow>
<all>
6502
</all>
<text>
6127
</text>
<image>
231
</image>
<nofollow>
1927
</nofollow>
<dofollow>
4515
</dofollow>
<redirect>
220
</redirect>
<canonical>
0
</canonical>
<gov>
5
</gov>
<edu>
70
</edu>
</stats>
<tlds>
<tld>
<tld>
cn
</tld>
<count>
2
</count>
</tld>
<tld>
<tld>
au
</tld>
<count>
1
</count>
</tld>
<tld>
<tld>
ph
</tld>
<count>
1
</count>
</tld>
<tld>
<tld>
vn
</tld>
<count>
1
</count>
</tld>
</tlds>
</AhrefsApiResponse>
Request
https://apiv2.ahrefs.com?from=refdomains_by_type&target=ahrefs.com&mode=domain&limit=3&where=gov%3Dtrue&output=json
Response
{
"refdomains":[
{
"refdomain":"anbg.gov.au",
"refdomain_top":"anbg.gov.au",
"backlinks":16,
"backlinks_dofollow":8,
"refpages":14,
"first_seen":"2013-05-03T17:34:57Z",
"last_visited":"2013-05-03T17:37:25Z",
"domain_rating":64
},
{
"refdomain":"bhgtj.gov.cn",
"refdomain_top":"bhgtj.gov.cn",
"backlinks":1,
"backlinks_dofollow":0,
"refpages":1,
"first_seen":"2014-07-01T13:41:03Z",
"last_visited":"2014-07-01T13:41:03Z",
"domain_rating":46
},
{
"refdomain":"bjfsh.gov.cn",
"refdomain_top":"bjfsh.gov.cn",
"backlinks":4,
"backlinks_dofollow":1,
"refpages":4,
"first_seen":"2013-05-08T01:13:29Z",
"last_visited":"2013-05-08T01:24:43Z",
"domain_rating":61
}
],
"stats":{
"refdomains":5,
"ips":5960,
"class_c":4293,
"max_backlinks":16,
"max_refpages":14,
"total_backlinks":21,
"total_backlinks_dofollow":9,
"all":6502,
"text":6127,
"image":231,
"nofollow":1927,
"dofollow":4515,
"redirect":220,
"canonical":0,
"gov":5,
"edu":70
},
"tlds":[
{
"tld":"cn",
"count":2
},
{
"tld":"au",
"count":1
},
{
"tld":"ph",
"count":1
},
{
"tld":"vn",
"count":1
}
]
}