| Command status: | Active |
| Supported by OpenApps API: | Yes |
| Supported by Internal/Reseller API: | Yes |
| Possibly queued processing: | No |
This function returns information of the backlinks at domain, subdomain or URL level.
N.B. This function does NOT return links flagged as Alt Text or Mentions (FlagAltText|FlagMention)
| Resource | Description |
|---|---|
AnalysisResUnits |
5000 |
RetrievalResUnits |
This resource will be decreased by actual number of rows of data retrieved (returned) by this function. |
This function accepts the following parameters:
| Parameter | Description |
|---|---|
cmd |
Required: must be set to: GetBackLinkData |
datasource |
Optional - defaults to historic |
item |
Usual URL, domain or subdomain |
Count |
Number of results to be returned back.
Default: 100 |
Mode |
Optional, 0 by default which means top links included deleted ones will be returned(GetTopBackLinks removes deleted links), If set to 1 it will also remove deleted links - should be switch for customers |
ShowDomainInfo |
Optional: if enabled (set to 1) then additional data table with information on referring domains present in backlinks will be returned. Default: 0 (Disabled) |
MaxSourceURLsPerRefDomain |
If set to greater than 0, then this value will limit number of source urls taken from any given referring domain. If set to 1, then it will effectively produce list of referring domains with just 1 best backlink from each of them. Default: -1 (not set) |
MaxSameSourceURLs |
Some index items (usually domains) may have more than one link out from any given source url, sometimes with different anchor text, sometimes with different flags. This parameter is designed to control maximum number of such backlinks returned. If set to greater than 0, then it will set a limit to number of same source urls returned. Note: Usage of this option will result in some anchor text/flags combinations not returned back. If set to 1 it will guarantee that only unique source urls returned. Default: -1 (not set) Example: http://www.example.com (source URL) links to http://www.example.org with anchor text "example" http://www.example.com (source URL) links to http://www.example.org with anchor text "another example" If this parameter is set to 1, then only the first source URL/anchor text combination will be returned. It is undefined which precise anchor text/flags combination will get priority in such case. It is recommended to use filtering flags to ensure undesired backlinks are eliminated before this parameter takes effect. |
This produces the following XML:
This produces the following JSON:
Data table Backlinks will contain data with the following headers:
(Possible values: TextLink_Normal | TextLink_AltText | TextLink_Normal_HighContent* | TextLink_AltText_HighContent* | ImageLink_Normal | ImageLink_HiddenImage | ImageLink_HighContent* | Redirect_Mixed | Redirect_Permanent | Redirect_Temporary | Redirect_META | Redirect_Permanent_Chain | Redirect_Temporary_Chain | Redirect_Other | Redirect_Canonical | Frame_Mixed | Frame_FRAME | Frame_IFRAME | Mention_Mixed | Mention_HighContent*)
For more information about access to the Majestic API suite, visit our Plans & Pricing page.