Skip to content

Commit 295c7ed

Browse files
committed
Get Bulk Backlinks and Ranks
1 parent 91d6e23 commit 295c7ed

File tree

5 files changed

+104
-5
lines changed

5 files changed

+104
-5
lines changed

components/dataforseo/actions/get-backlink-summary/get-backlink-summary.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "dataforseo-get-backlink-summary",
66
name: "Get Backlink Summary",
77
description:
8-
"Get an overview of backlinks data available for a given domain, subdomain, or webpage. [See the documentation](https://docs.dataforseo.com/v3/backlinks/summary/live/?bash)",
8+
"Get an overview of backlinks data available for a given domain, subdomain, or webpage. [See the documentation](https://docs.dataforseo.com/v3/backlinks/summary/live/)",
99
version: "0.0.1",
1010
type: "action",
1111
methods: {
@@ -92,7 +92,7 @@ export default {
9292
dataforseo,
9393
"additionalOptions",
9494
],
95-
description: "Additional parameters to send in the request. [See the documentation](https://docs.dataforseo.com/v3/backlinks/summary/live/?bash) for all available parameters. Values will be parsed as JSON where applicable.",
95+
description: "Additional parameters to send in the request. [See the documentation](https://docs.dataforseo.com/v3/backlinks/summary/live/) for all available parameters. Values will be parsed as JSON where applicable.",
9696
},
9797
},
9898
async run({ $ }) {

components/dataforseo/actions/get-backlinks/get-backlinks.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "dataforseo-get-backlinks",
66
name: "Get Backlinks",
77
description:
8-
"Get a list of backlinks and relevant data for a given domain, subdomain, or webpage. [See the documentation](https://docs.dataforseo.com/v3/backlinks/backlinks/live/?bash)",
8+
"Get a list of backlinks and relevant data for a given domain, subdomain, or webpage. [See the documentation](https://docs.dataforseo.com/v3/backlinks/backlinks/live/)",
99
version: "0.0.1",
1010
type: "action",
1111
methods: {
@@ -73,7 +73,7 @@ export default {
7373
dataforseo,
7474
"additionalOptions",
7575
],
76-
description: "Additional parameters to send in the request. [See the documentation](https://docs.dataforseo.com/v3/backlinks/backlinks/live/?bash) for all available parameters. Values will be parsed as JSON where applicable.",
76+
description: "Additional parameters to send in the request. [See the documentation](https://docs.dataforseo.com/v3/backlinks/backlinks/live/) for all available parameters. Values will be parsed as JSON where applicable.",
7777
},
7878
},
7979
async run({ $ }) {
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
3+
export default {
4+
key: "dataforseo-get-bulk-ranks",
5+
name: "Get Bulk Ranks",
6+
description:
7+
"Get the number of backlinks pointing to specified domains, subdomains, and pages. [See the documentation](https://docs.dataforseo.com/v3/backlinks/bulk_backlinks/live/)",
8+
version: "0.0.1",
9+
type: "action",
10+
methods: {
11+
getBulkBacklinks(args = {}) {
12+
return this._makeRequest({
13+
path: "/backlinks/bulk_backlinks/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
targets: {
22+
type: "string[]",
23+
label: "Targets",
24+
description: "Up to 1000 domains, subdomains or webpages to get number of backlinks for. A domain or a subdomain should be specified without `https://` and `www`. A page should be specified with absolute URL (including `http://` or `https://`",
25+
},
26+
tag: {
27+
propDefinition: [
28+
dataforseo,
29+
"tag",
30+
],
31+
},
32+
},
33+
async run({ $ }) {
34+
const response = await this.getBulkBacklinks({
35+
$,
36+
data: [
37+
{
38+
targets: this.targets,
39+
tag: this.tag,
40+
},
41+
],
42+
});
43+
$.export("$summary", "Successfully retrieved bulk backlinks");
44+
return response;
45+
},
46+
};
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
3+
export default {
4+
key: "dataforseo-get-bulk-ranks",
5+
name: "Get Bulk Ranks",
6+
description:
7+
"Get rank scores of specified domains, subdomains, and pages. [See the documentation](https://docs.dataforseo.com/v3/backlinks/bulk_ranks/live/)",
8+
version: "0.0.1",
9+
type: "action",
10+
methods: {
11+
getBacklinksBulkRanks(args = {}) {
12+
return this._makeRequest({
13+
path: "/backlinks/bulk_ranks/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
targets: {
22+
type: "string[]",
23+
label: "Targets",
24+
description: "Up to 1000 domains, subdomains or webpages to get `rank` for. A domain or a subdomain should be specified without `https://` and `www`. A page should be specified with absolute URL (including `http://` or `https://`",
25+
},
26+
rankScale: {
27+
propDefinition: [
28+
dataforseo,
29+
"rankScale",
30+
],
31+
},
32+
tag: {
33+
propDefinition: [
34+
dataforseo,
35+
"tag",
36+
],
37+
},
38+
},
39+
async run({ $ }) {
40+
const response = await this.getBacklinksBulkRanks({
41+
$,
42+
data: [
43+
{
44+
targets: this.targets,
45+
rank_scale: this.rankScale,
46+
tag: this.tag,
47+
},
48+
],
49+
});
50+
$.export("$summary", "Successfully retrieved bulk ranks");
51+
return response;
52+
},
53+
};

components/dataforseo/dataforseo.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
type: "string[]",
9797
label: "Backlinks Filters",
9898
description:
99-
"You can use this field to filter the initial backlinks that will be included in the dataset for aggregated metrics for your target. [See the documentation](https://docs.dataforseo.com/v3/backlinks/filters/?bash) for more information. Example: `[\"dofollow\", \"=\", true]`",
99+
"You can use this field to filter the initial backlinks that will be included in the dataset for aggregated metrics for your target. [See the documentation](https://docs.dataforseo.com/v3/backlinks/filters/) for more information. Example: `[\"dofollow\", \"=\", true]`",
100100
optional: true,
101101
},
102102
rankScale: {

0 commit comments

Comments
 (0)