semrush-api-client 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +8 -8
- package/dist/client/index.js +14 -8
- package/dist/index.d.ts +1 -9
- package/dist/index.js +0 -11
- package/package.json +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -15,22 +15,22 @@ export declare class SemrushAPIClient {
|
|
|
15
15
|
parseCsvToObjects(csvString: string, delimiter?: string): Record<string, string>[];
|
|
16
16
|
get<T>(url: string, params?: Record<string, any>, outputObj?: boolean): Promise<T>;
|
|
17
17
|
getDomainOverview: typeof getDomainOverview;
|
|
18
|
-
getKeywordOverview: typeof getKeywordOverview;
|
|
19
|
-
getBacklinksOverview: typeof getBacklinksOverview;
|
|
20
|
-
getRankDifference: typeof getRankDifference;
|
|
21
|
-
getSemrushRank: typeof getSemrushRank;
|
|
22
18
|
getDomainOrganicSearchKeywords: typeof getDomainOrganicSearchKeywords;
|
|
23
19
|
getDomainPaidSearchKeywords: typeof getDomainPaidSearchKeywords;
|
|
24
20
|
getAdsCopies: typeof getAdsCopies;
|
|
25
|
-
|
|
21
|
+
getKeywordOverview: typeof getKeywordOverview;
|
|
26
22
|
getKeywordDifficulty: typeof getKeywordDifficulty;
|
|
23
|
+
getRelatedKeywords: typeof getRelatedKeywords;
|
|
24
|
+
getPhraseQuestions: typeof getPhraseQuestions;
|
|
25
|
+
getBroadMatchKeywords: typeof getBroadMatchKeywords;
|
|
26
|
+
getBacklinksOverview: typeof getBacklinksOverview;
|
|
27
27
|
getBacklinks: typeof getBacklinks;
|
|
28
28
|
getAnchors: typeof getAnchors;
|
|
29
29
|
getIndexedPages: typeof getIndexedPages;
|
|
30
30
|
getReferringDomains: typeof getReferringDomains;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
getRankDifference: typeof getRankDifference;
|
|
32
|
+
getSemrushRank: typeof getSemrushRank;
|
|
33
|
+
getTrafficSummary: typeof getTrafficSummary;
|
|
34
34
|
getUrlOverview: typeof getUrlOverview;
|
|
35
35
|
getUrlOrganicSearchKeywords: typeof getUrlOrganicSearchKeywords;
|
|
36
36
|
getUrlPaidSearchKeywords: typeof getUrlPaidSearchKeywords;
|
package/dist/client/index.js
CHANGED
|
@@ -56,23 +56,29 @@ class SemrushAPIClient {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
// Domain methods
|
|
59
60
|
getDomainOverview = domain_1.getDomainOverview;
|
|
60
|
-
getKeywordOverview = keyword_1.getKeywordOverview;
|
|
61
|
-
getBacklinksOverview = backlinks_1.getBacklinksOverview;
|
|
62
|
-
getRankDifference = overview_1.getRankDifference;
|
|
63
|
-
getSemrushRank = overview_1.getSemrushRank;
|
|
64
61
|
getDomainOrganicSearchKeywords = domain_1.getDomainOrganicSearchKeywords;
|
|
65
62
|
getDomainPaidSearchKeywords = domain_1.getDomainPaidSearchKeywords;
|
|
66
63
|
getAdsCopies = domain_1.getAdsCopies;
|
|
67
|
-
|
|
64
|
+
// Keyword methods
|
|
65
|
+
getKeywordOverview = keyword_1.getKeywordOverview;
|
|
68
66
|
getKeywordDifficulty = keyword_1.getKeywordDifficulty;
|
|
67
|
+
getRelatedKeywords = keyword_1.getRelatedKeywords;
|
|
68
|
+
getPhraseQuestions = keyword_1.getPhraseQuestions;
|
|
69
|
+
getBroadMatchKeywords = keyword_1.getBroadMatchKeywords;
|
|
70
|
+
// Backlinks methods
|
|
71
|
+
getBacklinksOverview = backlinks_1.getBacklinksOverview;
|
|
69
72
|
getBacklinks = backlinks_1.getBacklinks;
|
|
70
73
|
getAnchors = backlinks_1.getAnchors;
|
|
71
74
|
getIndexedPages = backlinks_1.getIndexedPages;
|
|
72
75
|
getReferringDomains = backlinks_1.getReferringDomains;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
// Overview methods
|
|
77
|
+
getRankDifference = overview_1.getRankDifference;
|
|
78
|
+
getSemrushRank = overview_1.getSemrushRank;
|
|
79
|
+
// Trend methods
|
|
80
|
+
getTrafficSummary = trend_1.getTrafficSummary;
|
|
81
|
+
// URL methods
|
|
76
82
|
getUrlOverview = url_1.getUrlOverview;
|
|
77
83
|
getUrlOrganicSearchKeywords = url_1.getUrlOrganicSearchKeywords;
|
|
78
84
|
getUrlPaidSearchKeywords = url_1.getUrlPaidSearchKeywords;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
export * from "./client";
|
|
2
|
-
export
|
|
3
|
-
export * from "./keyword";
|
|
4
|
-
export * from "./backlinks";
|
|
5
|
-
export * from "./overview";
|
|
6
|
-
export * from "./trend";
|
|
7
|
-
export * from "./url";
|
|
8
|
-
export * from "./type/general/country";
|
|
9
|
-
export * from "./type/general/exportColumns";
|
|
10
|
-
export * from "./type/general/database";
|
|
2
|
+
export { Database } from "./type/general/database";
|
package/dist/index.js
CHANGED
|
@@ -20,14 +20,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
21
21
|
dotenv_1.default.config();
|
|
22
22
|
__exportStar(require("./client"), exports);
|
|
23
|
-
// Export all API functions by category
|
|
24
|
-
__exportStar(require("./domain"), exports);
|
|
25
|
-
__exportStar(require("./keyword"), exports);
|
|
26
|
-
__exportStar(require("./backlinks"), exports);
|
|
27
|
-
__exportStar(require("./overview"), exports);
|
|
28
|
-
__exportStar(require("./trend"), exports);
|
|
29
|
-
__exportStar(require("./url"), exports);
|
|
30
|
-
// Export types
|
|
31
|
-
__exportStar(require("./type/general/country"), exports);
|
|
32
|
-
__exportStar(require("./type/general/exportColumns"), exports);
|
|
33
|
-
__exportStar(require("./type/general/database"), exports);
|