semrush-api-client 0.1.24 → 0.1.25
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDomainOverview, getDomainOrganicSearchKeywords, getDomainPaidSearchKeywords, getAdsCopies } from "../domain";
|
|
2
|
-
import { getKeywordOverview, getKeywordDifficulty, getRelatedKeywords, getPhraseQuestions, getBroadMatchKeywords } from "../keyword";
|
|
2
|
+
import { getKeywordOverview, getKeywordDifficulty, getRelatedKeywords, getPhraseQuestions, getBroadMatchKeywords, getKeywordOrganic } from "../keyword";
|
|
3
3
|
import { getBacklinksOverview, getBacklinks, getAnchors, getIndexedPages, getReferringDomains } from "../backlinks";
|
|
4
4
|
import { getRankDifference, getSemrushRank } from "../overview";
|
|
5
5
|
import { getTrafficSummary } from "../trend";
|
|
@@ -23,6 +23,7 @@ export declare class SemrushAPIClient {
|
|
|
23
23
|
getRelatedKeywords: typeof getRelatedKeywords;
|
|
24
24
|
getPhraseQuestions: typeof getPhraseQuestions;
|
|
25
25
|
getBroadMatchKeywords: typeof getBroadMatchKeywords;
|
|
26
|
+
getKeywordOrganic: typeof getKeywordOrganic;
|
|
26
27
|
getBacklinksOverview: typeof getBacklinksOverview;
|
|
27
28
|
getBacklinks: typeof getBacklinks;
|
|
28
29
|
getAnchors: typeof getAnchors;
|
package/dist/client/index.js
CHANGED
|
@@ -67,6 +67,7 @@ class SemrushAPIClient {
|
|
|
67
67
|
getRelatedKeywords = keyword_1.getRelatedKeywords;
|
|
68
68
|
getPhraseQuestions = keyword_1.getPhraseQuestions;
|
|
69
69
|
getBroadMatchKeywords = keyword_1.getBroadMatchKeywords;
|
|
70
|
+
getKeywordOrganic = keyword_1.getKeywordOrganic;
|
|
70
71
|
// Backlinks methods
|
|
71
72
|
getBacklinksOverview = backlinks_1.getBacklinksOverview;
|
|
72
73
|
getBacklinks = backlinks_1.getBacklinks;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SemrushAPIClient } from "../client";
|
|
2
|
+
import { Database } from "../type/general/database";
|
|
3
|
+
type KeywordExportColumns = "Po" | "Pt" | "Dn" | "Ur" | "Fk" | "Fp" | "Fl";
|
|
4
|
+
export declare function getKeywordOrganic(this: SemrushAPIClient, { phrase, export_columns, database, outputObj, // Default to true for output object
|
|
5
|
+
display_limit, }: {
|
|
6
|
+
display_limit?: number;
|
|
7
|
+
phrase: string;
|
|
8
|
+
export_columns?: KeywordExportColumns[];
|
|
9
|
+
database?: Database;
|
|
10
|
+
outputObj?: boolean;
|
|
11
|
+
}): Promise<Record<string, string>[]>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getKeywordOrganic = getKeywordOrganic;
|
|
4
|
+
async function getKeywordOrganic({ phrase, export_columns = ["Po", "Pt", "Dn", "Ur", "Fk", "Fp", "Fl"], database = "us", outputObj = true, // Default to true for output object
|
|
5
|
+
display_limit = 10, }) {
|
|
6
|
+
const params = {
|
|
7
|
+
type: "phrase_organic",
|
|
8
|
+
export_columns: export_columns.join(","),
|
|
9
|
+
phrase,
|
|
10
|
+
database,
|
|
11
|
+
display_limit,
|
|
12
|
+
};
|
|
13
|
+
return this.get(this.BASE_URL, params, outputObj);
|
|
14
|
+
}
|
package/dist/keyword/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export { getKeywordDifficulty } from "./getKeywordDifficulty";
|
|
|
3
3
|
export { getRelatedKeywords } from "./getRelatedKeywords";
|
|
4
4
|
export { getPhraseQuestions } from "./getPhraseQuestions";
|
|
5
5
|
export { getBroadMatchKeywords } from "./getBroadMatchKeywords";
|
|
6
|
+
export { getKeywordOrganic } from "./getKeywordOrganic";
|
package/dist/keyword/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBroadMatchKeywords = exports.getPhraseQuestions = exports.getRelatedKeywords = exports.getKeywordDifficulty = exports.getKeywordOverview = void 0;
|
|
3
|
+
exports.getKeywordOrganic = exports.getBroadMatchKeywords = exports.getPhraseQuestions = exports.getRelatedKeywords = exports.getKeywordDifficulty = exports.getKeywordOverview = void 0;
|
|
4
4
|
var getKeywordOverview_1 = require("./getKeywordOverview");
|
|
5
5
|
Object.defineProperty(exports, "getKeywordOverview", { enumerable: true, get: function () { return getKeywordOverview_1.getKeywordOverview; } });
|
|
6
6
|
var getKeywordDifficulty_1 = require("./getKeywordDifficulty");
|
|
@@ -11,3 +11,5 @@ var getPhraseQuestions_1 = require("./getPhraseQuestions");
|
|
|
11
11
|
Object.defineProperty(exports, "getPhraseQuestions", { enumerable: true, get: function () { return getPhraseQuestions_1.getPhraseQuestions; } });
|
|
12
12
|
var getBroadMatchKeywords_1 = require("./getBroadMatchKeywords");
|
|
13
13
|
Object.defineProperty(exports, "getBroadMatchKeywords", { enumerable: true, get: function () { return getBroadMatchKeywords_1.getBroadMatchKeywords; } });
|
|
14
|
+
var getKeywordOrganic_1 = require("./getKeywordOrganic");
|
|
15
|
+
Object.defineProperty(exports, "getKeywordOrganic", { enumerable: true, get: function () { return getKeywordOrganic_1.getKeywordOrganic; } });
|