Skip to content

Commit 7942a9c

Browse files
committed
2 parents c0590f8 + 2cb8fb5 commit 7942a9c

File tree

41 files changed

+1297
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1297
-59
lines changed

components/all_voice_lab/all_voice_lab.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
console.log(Object.keys(this.$auth));
99
},
1010
},
11-
};
11+
};
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
3+
export default {
4+
key: "dataforseo-get-backlinks-history",
5+
name: "Get Backlinks History",
6+
description:
7+
"Get historical backlinks data back to the beginning of 2019. [See the documentation](https://docs.dataforseo.com/v3/backlinks/history/live/)",
8+
version: "0.0.1",
9+
type: "action",
10+
methods: {
11+
getBacklinksHistory(args = {}) {
12+
return this.dataforseo._makeRequest({
13+
path: "/backlinks/history/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
target: {
22+
type: "string",
23+
label: "Target Domain",
24+
description: "Domain should be specified without `https://` and `www`",
25+
},
26+
dateFrom: {
27+
type: "string",
28+
label: "Starting Date",
29+
description:
30+
"Starting date of the time range, in `YYYY-MM-DD` format. Default and minimum value is `2019-01-01`",
31+
optional: true,
32+
},
33+
dateTo: {
34+
type: "string",
35+
label: "End Date",
36+
description:
37+
"End date of the time range, in `YYYY-MM-DD` format. Default is today's date",
38+
optional: true,
39+
},
40+
rankScale: {
41+
propDefinition: [
42+
dataforseo,
43+
"rankScale",
44+
],
45+
},
46+
tag: {
47+
propDefinition: [
48+
dataforseo,
49+
"tag",
50+
],
51+
},
52+
},
53+
async run({ $ }) {
54+
const response = await this.getBacklinksHistory({
55+
$,
56+
data: [
57+
{
58+
target: this.target,
59+
date_from: this.dateFrom,
60+
date_to: this.dateTo,
61+
rank_scale: this.rankScale,
62+
tag: this.tag,
63+
},
64+
],
65+
});
66+
$.export("$summary", "Successfully retrieved backlinks history");
67+
return response;
68+
},
69+
};
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
import { parseObjectEntries } from "../../common/utils.mjs";
3+
4+
export default {
5+
key: "dataforseo-get-backlinks-summary",
6+
name: "Get Backlinks Summary",
7+
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/)",
9+
version: "0.0.1",
10+
type: "action",
11+
methods: {
12+
getBacklinksSummary(args = {}) {
13+
return this.dataforseo._makeRequest({
14+
path: "/backlinks/summary/live",
15+
method: "post",
16+
...args,
17+
});
18+
},
19+
},
20+
props: {
21+
dataforseo,
22+
target: {
23+
propDefinition: [
24+
dataforseo,
25+
"backlinksTarget",
26+
],
27+
},
28+
includeSubdomains: {
29+
propDefinition: [
30+
dataforseo,
31+
"includeSubdomains",
32+
],
33+
},
34+
includeIndirectLinks: {
35+
propDefinition: [
36+
dataforseo,
37+
"includeIndirectLinks",
38+
],
39+
},
40+
excludeInternalBacklinks: {
41+
propDefinition: [
42+
dataforseo,
43+
"excludeInternalBacklinks",
44+
],
45+
},
46+
backlinksStatusType: {
47+
propDefinition: [
48+
dataforseo,
49+
"backlinksStatusType",
50+
],
51+
},
52+
backlinksFilters: {
53+
propDefinition: [
54+
dataforseo,
55+
"backlinksFilters",
56+
],
57+
},
58+
rankScale: {
59+
propDefinition: [
60+
dataforseo,
61+
"rankScale",
62+
],
63+
},
64+
tag: {
65+
propDefinition: [
66+
dataforseo,
67+
"tag",
68+
],
69+
},
70+
additionalOptions: {
71+
propDefinition: [
72+
dataforseo,
73+
"additionalOptions",
74+
],
75+
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.",
76+
},
77+
},
78+
async run({ $ }) {
79+
const response = await this.getBacklinksSummary({
80+
$,
81+
data: [
82+
{
83+
target: this.target,
84+
include_subdomains: this.includeSubdomains,
85+
include_indirect_links: this.includeIndirectLinks,
86+
exclude_internal_backlinks: this.excludeInternalBacklinks,
87+
backlinks_status_type: this.backlinksStatusType,
88+
backlinks_filters: this.backlinksFilters,
89+
rank_scale: this.rankScale,
90+
tag: this.tag,
91+
...parseObjectEntries(this.additionalOptions),
92+
},
93+
],
94+
});
95+
$.export(
96+
"$summary",
97+
"Successfully retrieved backlink summary",
98+
);
99+
return response;
100+
},
101+
};
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
import { parseObjectEntries } from "../../common/utils.mjs";
2+
import dataforseo from "../../dataforseo.app.mjs";
3+
4+
export default {
5+
key: "dataforseo-get-backlinks",
6+
name: "Get Backlinks",
7+
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/)",
9+
version: "0.0.1",
10+
type: "action",
11+
methods: {
12+
getBacklinks(args = {}) {
13+
return this.dataforseo._makeRequest({
14+
path: "/backlinks/backlinks/live",
15+
method: "post",
16+
...args,
17+
});
18+
},
19+
},
20+
props: {
21+
dataforseo,
22+
target: {
23+
propDefinition: [
24+
dataforseo,
25+
"backlinksTarget",
26+
],
27+
},
28+
mode: {
29+
type: "string",
30+
label: "Mode",
31+
description: "Select the mode of grouping the results",
32+
options: [
33+
{
34+
value: "as_is",
35+
label: "returns all backlinks",
36+
},
37+
{
38+
value: "one_per_domain",
39+
label: "returns one backlink per domain",
40+
},
41+
{
42+
value: "one_per_anchor",
43+
label: "returns one backlink per anchor",
44+
},
45+
],
46+
default: "as_is",
47+
},
48+
filters: {
49+
propDefinition: [
50+
dataforseo,
51+
"backlinksFilters",
52+
],
53+
},
54+
order_by: {
55+
type: "string[]",
56+
label: "Order By",
57+
description: "One or more rules to sort results with, with each entry being a field and a direction (`asc` for ascending or `desc` for descending). Example: [\"domain_from_rank,desc\",\"page_from_rank,asc\"]",
58+
},
59+
rankScale: {
60+
propDefinition: [
61+
dataforseo,
62+
"rankScale",
63+
],
64+
},
65+
tag: {
66+
propDefinition: [
67+
dataforseo,
68+
"tag",
69+
],
70+
},
71+
additionalOptions: {
72+
propDefinition: [
73+
dataforseo,
74+
"additionalOptions",
75+
],
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.",
77+
},
78+
},
79+
async run({ $ }) {
80+
const response = await this.getBacklinks({
81+
$,
82+
data: [
83+
{
84+
target: this.target,
85+
mode: this.mode,
86+
filters: this.filters,
87+
order_by: this.order_by,
88+
rank_scale: this.rankScale,
89+
tag: this.tag,
90+
...parseObjectEntries(this.additionalOptions),
91+
},
92+
],
93+
});
94+
$.export("$summary", "Successfully retrieved backlinks data");
95+
return response;
96+
},
97+
};
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import dataforseo from "../../dataforseo.app.mjs";
2+
3+
export default {
4+
key: "dataforseo-get-bulk-backlinks",
5+
name: "Get Bulk Backlinks",
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.dataforseo._makeRequest({
13+
path: "/backlinks/bulk_backlinks/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
targets: {
22+
propDefinition: [
23+
dataforseo,
24+
"targets",
25+
],
26+
},
27+
tag: {
28+
propDefinition: [
29+
dataforseo,
30+
"tag",
31+
],
32+
},
33+
},
34+
async run({ $ }) {
35+
const response = await this.getBulkBacklinks({
36+
$,
37+
data: [
38+
{
39+
targets: this.targets,
40+
tag: this.tag,
41+
},
42+
],
43+
});
44+
$.export("$summary", "Successfully retrieved bulk backlinks");
45+
return response;
46+
},
47+
};
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.dataforseo._makeRequest({
13+
path: "/backlinks/bulk_ranks/live",
14+
method: "post",
15+
...args,
16+
});
17+
},
18+
},
19+
props: {
20+
dataforseo,
21+
targets: {
22+
propDefinition: [
23+
dataforseo,
24+
"targets",
25+
],
26+
},
27+
rankScale: {
28+
propDefinition: [
29+
dataforseo,
30+
"rankScale",
31+
],
32+
},
33+
tag: {
34+
propDefinition: [
35+
dataforseo,
36+
"tag",
37+
],
38+
},
39+
},
40+
async run({ $ }) {
41+
const response = await this.getBacklinksBulkRanks({
42+
$,
43+
data: [
44+
{
45+
targets: this.targets,
46+
rank_scale: this.rankScale,
47+
tag: this.tag,
48+
},
49+
],
50+
});
51+
$.export("$summary", "Successfully retrieved bulk ranks");
52+
return response;
53+
},
54+
};

0 commit comments

Comments
 (0)