@keystrokehq/semrush 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/account-units-balance.cjs +16 -0
- package/dist/actions/account-units-balance.cjs.map +1 -0
- package/dist/actions/account-units-balance.d.cts +9 -0
- package/dist/actions/account-units-balance.d.cts.map +1 -0
- package/dist/actions/account-units-balance.d.mts +9 -0
- package/dist/actions/account-units-balance.d.mts.map +1 -0
- package/dist/actions/account-units-balance.mjs +13 -0
- package/dist/actions/account-units-balance.mjs.map +1 -0
- package/dist/actions/ads-copies.cjs +195 -0
- package/dist/actions/ads-copies.cjs.map +1 -0
- package/dist/actions/ads-copies.d.cts +9 -0
- package/dist/actions/ads-copies.d.cts.map +1 -0
- package/dist/actions/ads-copies.d.mts +9 -0
- package/dist/actions/ads-copies.d.mts.map +1 -0
- package/dist/actions/ads-copies.mjs +192 -0
- package/dist/actions/ads-copies.mjs.map +1 -0
- package/dist/actions/anchors.cjs +48 -0
- package/dist/actions/anchors.cjs.map +1 -0
- package/dist/actions/anchors.d.cts +9 -0
- package/dist/actions/anchors.d.cts.map +1 -0
- package/dist/actions/anchors.d.mts +9 -0
- package/dist/actions/anchors.d.mts.map +1 -0
- package/dist/actions/anchors.mjs +45 -0
- package/dist/actions/anchors.mjs.map +1 -0
- package/dist/actions/authority-score-profile.cjs +23 -0
- package/dist/actions/authority-score-profile.cjs.map +1 -0
- package/dist/actions/authority-score-profile.d.cts +9 -0
- package/dist/actions/authority-score-profile.d.cts.map +1 -0
- package/dist/actions/authority-score-profile.d.mts +9 -0
- package/dist/actions/authority-score-profile.d.mts.map +1 -0
- package/dist/actions/authority-score-profile.mjs +20 -0
- package/dist/actions/authority-score-profile.mjs.map +1 -0
- package/dist/actions/backlinks-overview.cjs +54 -0
- package/dist/actions/backlinks-overview.cjs.map +1 -0
- package/dist/actions/backlinks-overview.d.cts +9 -0
- package/dist/actions/backlinks-overview.d.cts.map +1 -0
- package/dist/actions/backlinks-overview.d.mts +9 -0
- package/dist/actions/backlinks-overview.d.mts.map +1 -0
- package/dist/actions/backlinks-overview.mjs +51 -0
- package/dist/actions/backlinks-overview.mjs.map +1 -0
- package/dist/actions/backlinks.cjs +91 -0
- package/dist/actions/backlinks.cjs.map +1 -0
- package/dist/actions/backlinks.d.cts +9 -0
- package/dist/actions/backlinks.d.cts.map +1 -0
- package/dist/actions/backlinks.d.mts +9 -0
- package/dist/actions/backlinks.d.mts.map +1 -0
- package/dist/actions/backlinks.mjs +88 -0
- package/dist/actions/backlinks.mjs.map +1 -0
- package/dist/actions/batch-comparison.cjs +50 -0
- package/dist/actions/batch-comparison.cjs.map +1 -0
- package/dist/actions/batch-comparison.d.cts +9 -0
- package/dist/actions/batch-comparison.d.cts.map +1 -0
- package/dist/actions/batch-comparison.d.mts +9 -0
- package/dist/actions/batch-comparison.d.mts.map +1 -0
- package/dist/actions/batch-comparison.mjs +47 -0
- package/dist/actions/batch-comparison.mjs.map +1 -0
- package/dist/actions/batch-keyword-overview.cjs +191 -0
- package/dist/actions/batch-keyword-overview.cjs.map +1 -0
- package/dist/actions/batch-keyword-overview.d.cts +9 -0
- package/dist/actions/batch-keyword-overview.d.cts.map +1 -0
- package/dist/actions/batch-keyword-overview.d.mts +9 -0
- package/dist/actions/batch-keyword-overview.d.mts.map +1 -0
- package/dist/actions/batch-keyword-overview.mjs +188 -0
- package/dist/actions/batch-keyword-overview.mjs.map +1 -0
- package/dist/actions/broad-match-keyword.cjs +214 -0
- package/dist/actions/broad-match-keyword.cjs.map +1 -0
- package/dist/actions/broad-match-keyword.d.cts +9 -0
- package/dist/actions/broad-match-keyword.d.cts.map +1 -0
- package/dist/actions/broad-match-keyword.d.mts +9 -0
- package/dist/actions/broad-match-keyword.d.mts.map +1 -0
- package/dist/actions/broad-match-keyword.mjs +211 -0
- package/dist/actions/broad-match-keyword.mjs.map +1 -0
- package/dist/actions/categories-profile.cjs +26 -0
- package/dist/actions/categories-profile.cjs.map +1 -0
- package/dist/actions/categories-profile.d.cts +9 -0
- package/dist/actions/categories-profile.d.cts.map +1 -0
- package/dist/actions/categories-profile.d.mts +9 -0
- package/dist/actions/categories-profile.d.mts.map +1 -0
- package/dist/actions/categories-profile.mjs +23 -0
- package/dist/actions/categories-profile.mjs.map +1 -0
- package/dist/actions/categories.cjs +26 -0
- package/dist/actions/categories.cjs.map +1 -0
- package/dist/actions/categories.d.cts +9 -0
- package/dist/actions/categories.d.cts.map +1 -0
- package/dist/actions/categories.d.mts +9 -0
- package/dist/actions/categories.d.mts.map +1 -0
- package/dist/actions/categories.mjs +23 -0
- package/dist/actions/categories.mjs.map +1 -0
- package/dist/actions/competitors-in-organic-search.cjs +200 -0
- package/dist/actions/competitors-in-organic-search.cjs.map +1 -0
- package/dist/actions/competitors-in-organic-search.d.cts +9 -0
- package/dist/actions/competitors-in-organic-search.d.cts.map +1 -0
- package/dist/actions/competitors-in-organic-search.d.mts +9 -0
- package/dist/actions/competitors-in-organic-search.d.mts.map +1 -0
- package/dist/actions/competitors-in-organic-search.mjs +197 -0
- package/dist/actions/competitors-in-organic-search.mjs.map +1 -0
- package/dist/actions/competitors-in-paid-search.cjs +194 -0
- package/dist/actions/competitors-in-paid-search.cjs.map +1 -0
- package/dist/actions/competitors-in-paid-search.d.cts +9 -0
- package/dist/actions/competitors-in-paid-search.d.cts.map +1 -0
- package/dist/actions/competitors-in-paid-search.d.mts +9 -0
- package/dist/actions/competitors-in-paid-search.d.mts.map +1 -0
- package/dist/actions/competitors-in-paid-search.mjs +191 -0
- package/dist/actions/competitors-in-paid-search.mjs.map +1 -0
- package/dist/actions/competitors.cjs +41 -0
- package/dist/actions/competitors.cjs.map +1 -0
- package/dist/actions/competitors.d.cts +9 -0
- package/dist/actions/competitors.d.cts.map +1 -0
- package/dist/actions/competitors.d.mts +9 -0
- package/dist/actions/competitors.d.mts.map +1 -0
- package/dist/actions/competitors.mjs +38 -0
- package/dist/actions/competitors.mjs.map +1 -0
- package/dist/actions/domain-ad-history.cjs +201 -0
- package/dist/actions/domain-ad-history.cjs.map +1 -0
- package/dist/actions/domain-ad-history.d.cts +9 -0
- package/dist/actions/domain-ad-history.d.cts.map +1 -0
- package/dist/actions/domain-ad-history.d.mts +9 -0
- package/dist/actions/domain-ad-history.d.mts.map +1 -0
- package/dist/actions/domain-ad-history.mjs +198 -0
- package/dist/actions/domain-ad-history.mjs.map +1 -0
- package/dist/actions/domain-organic-pages.cjs +231 -0
- package/dist/actions/domain-organic-pages.cjs.map +1 -0
- package/dist/actions/domain-organic-pages.d.cts +9 -0
- package/dist/actions/domain-organic-pages.d.cts.map +1 -0
- package/dist/actions/domain-organic-pages.d.mts +9 -0
- package/dist/actions/domain-organic-pages.d.mts.map +1 -0
- package/dist/actions/domain-organic-pages.mjs +228 -0
- package/dist/actions/domain-organic-pages.mjs.map +1 -0
- package/dist/actions/domain-organic-search-keywords.cjs +263 -0
- package/dist/actions/domain-organic-search-keywords.cjs.map +1 -0
- package/dist/actions/domain-organic-search-keywords.d.cts +9 -0
- package/dist/actions/domain-organic-search-keywords.d.cts.map +1 -0
- package/dist/actions/domain-organic-search-keywords.d.mts +9 -0
- package/dist/actions/domain-organic-search-keywords.d.mts.map +1 -0
- package/dist/actions/domain-organic-search-keywords.mjs +260 -0
- package/dist/actions/domain-organic-search-keywords.mjs.map +1 -0
- package/dist/actions/domain-organic-subdomains.cjs +198 -0
- package/dist/actions/domain-organic-subdomains.cjs.map +1 -0
- package/dist/actions/domain-organic-subdomains.d.cts +9 -0
- package/dist/actions/domain-organic-subdomains.d.cts.map +1 -0
- package/dist/actions/domain-organic-subdomains.d.mts +9 -0
- package/dist/actions/domain-organic-subdomains.d.mts.map +1 -0
- package/dist/actions/domain-organic-subdomains.mjs +195 -0
- package/dist/actions/domain-organic-subdomains.mjs.map +1 -0
- package/dist/actions/domain-paid-search-keywords.cjs +231 -0
- package/dist/actions/domain-paid-search-keywords.cjs.map +1 -0
- package/dist/actions/domain-paid-search-keywords.d.cts +9 -0
- package/dist/actions/domain-paid-search-keywords.d.cts.map +1 -0
- package/dist/actions/domain-paid-search-keywords.d.mts +9 -0
- package/dist/actions/domain-paid-search-keywords.d.mts.map +1 -0
- package/dist/actions/domain-paid-search-keywords.mjs +228 -0
- package/dist/actions/domain-paid-search-keywords.mjs.map +1 -0
- package/dist/actions/domain-pla-search-keywords.cjs +209 -0
- package/dist/actions/domain-pla-search-keywords.cjs.map +1 -0
- package/dist/actions/domain-pla-search-keywords.d.cts +9 -0
- package/dist/actions/domain-pla-search-keywords.d.cts.map +1 -0
- package/dist/actions/domain-pla-search-keywords.d.mts +9 -0
- package/dist/actions/domain-pla-search-keywords.d.mts.map +1 -0
- package/dist/actions/domain-pla-search-keywords.mjs +206 -0
- package/dist/actions/domain-pla-search-keywords.mjs.map +1 -0
- package/dist/actions/domain-vs-domain.cjs +230 -0
- package/dist/actions/domain-vs-domain.cjs.map +1 -0
- package/dist/actions/domain-vs-domain.d.cts +9 -0
- package/dist/actions/domain-vs-domain.d.cts.map +1 -0
- package/dist/actions/domain-vs-domain.d.mts +9 -0
- package/dist/actions/domain-vs-domain.d.mts.map +1 -0
- package/dist/actions/domain-vs-domain.mjs +227 -0
- package/dist/actions/domain-vs-domain.mjs.map +1 -0
- package/dist/actions/historical-data.cjs +32 -0
- package/dist/actions/historical-data.cjs.map +1 -0
- package/dist/actions/historical-data.d.cts +9 -0
- package/dist/actions/historical-data.d.cts.map +1 -0
- package/dist/actions/historical-data.d.mts +9 -0
- package/dist/actions/historical-data.d.mts.map +1 -0
- package/dist/actions/historical-data.mjs +29 -0
- package/dist/actions/historical-data.mjs.map +1 -0
- package/dist/actions/index.cjs +75 -0
- package/dist/actions/index.d.cts +38 -0
- package/dist/actions/index.d.mts +38 -0
- package/dist/actions/index.mjs +38 -0
- package/dist/actions/indexed-pages.cjs +52 -0
- package/dist/actions/indexed-pages.cjs.map +1 -0
- package/dist/actions/indexed-pages.d.cts +9 -0
- package/dist/actions/indexed-pages.d.cts.map +1 -0
- package/dist/actions/indexed-pages.d.mts +9 -0
- package/dist/actions/indexed-pages.d.mts.map +1 -0
- package/dist/actions/indexed-pages.mjs +49 -0
- package/dist/actions/indexed-pages.mjs.map +1 -0
- package/dist/actions/keyword-difficulty.cjs +168 -0
- package/dist/actions/keyword-difficulty.cjs.map +1 -0
- package/dist/actions/keyword-difficulty.d.cts +9 -0
- package/dist/actions/keyword-difficulty.d.cts.map +1 -0
- package/dist/actions/keyword-difficulty.d.mts +9 -0
- package/dist/actions/keyword-difficulty.d.mts.map +1 -0
- package/dist/actions/keyword-difficulty.mjs +165 -0
- package/dist/actions/keyword-difficulty.mjs.map +1 -0
- package/dist/actions/keyword-overview-all-databases.cjs +189 -0
- package/dist/actions/keyword-overview-all-databases.cjs.map +1 -0
- package/dist/actions/keyword-overview-all-databases.d.cts +9 -0
- package/dist/actions/keyword-overview-all-databases.d.cts.map +1 -0
- package/dist/actions/keyword-overview-all-databases.d.mts +9 -0
- package/dist/actions/keyword-overview-all-databases.d.mts.map +1 -0
- package/dist/actions/keyword-overview-all-databases.mjs +186 -0
- package/dist/actions/keyword-overview-all-databases.mjs.map +1 -0
- package/dist/actions/keyword-overview-one-database.cjs +188 -0
- package/dist/actions/keyword-overview-one-database.cjs.map +1 -0
- package/dist/actions/keyword-overview-one-database.d.cts +9 -0
- package/dist/actions/keyword-overview-one-database.d.cts.map +1 -0
- package/dist/actions/keyword-overview-one-database.d.mts +9 -0
- package/dist/actions/keyword-overview-one-database.d.mts.map +1 -0
- package/dist/actions/keyword-overview-one-database.mjs +185 -0
- package/dist/actions/keyword-overview-one-database.mjs.map +1 -0
- package/dist/actions/keywords-ads-history.cjs +194 -0
- package/dist/actions/keywords-ads-history.cjs.map +1 -0
- package/dist/actions/keywords-ads-history.d.cts +9 -0
- package/dist/actions/keywords-ads-history.d.cts.map +1 -0
- package/dist/actions/keywords-ads-history.d.mts +9 -0
- package/dist/actions/keywords-ads-history.d.mts.map +1 -0
- package/dist/actions/keywords-ads-history.mjs +191 -0
- package/dist/actions/keywords-ads-history.mjs.map +1 -0
- package/dist/actions/organic-results.cjs +189 -0
- package/dist/actions/organic-results.cjs.map +1 -0
- package/dist/actions/organic-results.d.cts +9 -0
- package/dist/actions/organic-results.d.cts.map +1 -0
- package/dist/actions/organic-results.d.mts +9 -0
- package/dist/actions/organic-results.d.mts.map +1 -0
- package/dist/actions/organic-results.mjs +186 -0
- package/dist/actions/organic-results.mjs.map +1 -0
- package/dist/actions/paid-results.cjs +180 -0
- package/dist/actions/paid-results.cjs.map +1 -0
- package/dist/actions/paid-results.d.cts +9 -0
- package/dist/actions/paid-results.d.cts.map +1 -0
- package/dist/actions/paid-results.d.mts +9 -0
- package/dist/actions/paid-results.d.mts.map +1 -0
- package/dist/actions/paid-results.mjs +177 -0
- package/dist/actions/paid-results.mjs.map +1 -0
- package/dist/actions/phrase-questions.cjs +209 -0
- package/dist/actions/phrase-questions.cjs.map +1 -0
- package/dist/actions/phrase-questions.d.cts +9 -0
- package/dist/actions/phrase-questions.d.cts.map +1 -0
- package/dist/actions/phrase-questions.d.mts +9 -0
- package/dist/actions/phrase-questions.d.mts.map +1 -0
- package/dist/actions/phrase-questions.mjs +206 -0
- package/dist/actions/phrase-questions.mjs.map +1 -0
- package/dist/actions/pla-competitors.cjs +195 -0
- package/dist/actions/pla-competitors.cjs.map +1 -0
- package/dist/actions/pla-competitors.d.cts +9 -0
- package/dist/actions/pla-competitors.d.cts.map +1 -0
- package/dist/actions/pla-competitors.d.mts +9 -0
- package/dist/actions/pla-competitors.d.mts.map +1 -0
- package/dist/actions/pla-competitors.mjs +192 -0
- package/dist/actions/pla-competitors.mjs.map +1 -0
- package/dist/actions/pla-copies.cjs +192 -0
- package/dist/actions/pla-copies.cjs.map +1 -0
- package/dist/actions/pla-copies.d.cts +9 -0
- package/dist/actions/pla-copies.d.cts.map +1 -0
- package/dist/actions/pla-copies.d.mts +9 -0
- package/dist/actions/pla-copies.d.mts.map +1 -0
- package/dist/actions/pla-copies.mjs +189 -0
- package/dist/actions/pla-copies.mjs.map +1 -0
- package/dist/actions/referring-domains-by-country.cjs +40 -0
- package/dist/actions/referring-domains-by-country.cjs.map +1 -0
- package/dist/actions/referring-domains-by-country.d.cts +9 -0
- package/dist/actions/referring-domains-by-country.d.cts.map +1 -0
- package/dist/actions/referring-domains-by-country.d.mts +9 -0
- package/dist/actions/referring-domains-by-country.d.mts.map +1 -0
- package/dist/actions/referring-domains-by-country.mjs +37 -0
- package/dist/actions/referring-domains-by-country.mjs.map +1 -0
- package/dist/actions/referring-domains.cjs +60 -0
- package/dist/actions/referring-domains.cjs.map +1 -0
- package/dist/actions/referring-domains.d.cts +9 -0
- package/dist/actions/referring-domains.d.cts.map +1 -0
- package/dist/actions/referring-domains.d.mts +9 -0
- package/dist/actions/referring-domains.d.mts.map +1 -0
- package/dist/actions/referring-domains.mjs +57 -0
- package/dist/actions/referring-domains.mjs.map +1 -0
- package/dist/actions/referring-i-ps.cjs +50 -0
- package/dist/actions/referring-i-ps.cjs.map +1 -0
- package/dist/actions/referring-i-ps.d.cts +9 -0
- package/dist/actions/referring-i-ps.d.cts.map +1 -0
- package/dist/actions/referring-i-ps.d.mts +9 -0
- package/dist/actions/referring-i-ps.d.mts.map +1 -0
- package/dist/actions/referring-i-ps.mjs +47 -0
- package/dist/actions/referring-i-ps.mjs.map +1 -0
- package/dist/actions/related-keywords.cjs +220 -0
- package/dist/actions/related-keywords.cjs.map +1 -0
- package/dist/actions/related-keywords.d.cts +9 -0
- package/dist/actions/related-keywords.d.cts.map +1 -0
- package/dist/actions/related-keywords.d.mts +9 -0
- package/dist/actions/related-keywords.d.mts.map +1 -0
- package/dist/actions/related-keywords.mjs +217 -0
- package/dist/actions/related-keywords.mjs.map +1 -0
- package/dist/actions/tld-distribution.cjs +40 -0
- package/dist/actions/tld-distribution.cjs.map +1 -0
- package/dist/actions/tld-distribution.d.cts +9 -0
- package/dist/actions/tld-distribution.d.cts.map +1 -0
- package/dist/actions/tld-distribution.d.mts +9 -0
- package/dist/actions/tld-distribution.d.mts.map +1 -0
- package/dist/actions/tld-distribution.mjs +37 -0
- package/dist/actions/tld-distribution.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +80 -0
- package/dist/index.d.cts +40 -0
- package/dist/index.d.mts +40 -0
- package/dist/index.mjs +41 -0
- package/package.json +49 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/indexed-pages.d.ts
|
|
4
|
+
declare const SemrushIndexedPagesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SemrushIndexedPagesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const semrushIndexedPages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { semrushIndexedPages };
|
|
9
|
+
//# sourceMappingURL=indexed-pages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexed-pages.d.mts","names":[],"sources":["../../src/actions/indexed-pages.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAO2C;AAAA,cACvE,yBAAA,EAA2B,CAAA,CAAE,UAEmB;AAAA,cAEhD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const semrushIndexedPages = action("SEMRUSH_INDEXED_PAGES", {
|
|
4
|
+
slug: "semrush-indexed-pages",
|
|
5
|
+
name: "Get indexed pages",
|
|
6
|
+
description: "Retrieves a list of indexed pages from Semrush for a specified `target` (root domain, domain, or URL) and `target_type`, ensuring `target` is publicly accessible, Semrush-analyzable, and correctly matches `target_type`. Returns CSV-like text output requiring parsing before structured analysis.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
target: z.string().describe("Target URL, domain, or root domain for which to retrieve indexed pages data."),
|
|
9
|
+
target_type: z.enum([
|
|
10
|
+
"root_domain",
|
|
11
|
+
"domain",
|
|
12
|
+
"url"
|
|
13
|
+
]).describe("Type of the target."),
|
|
14
|
+
display_sort: z.enum([
|
|
15
|
+
"backlinks_num_asc",
|
|
16
|
+
"backlinks_num_desc",
|
|
17
|
+
"domains_num_asc",
|
|
18
|
+
"domains_num_desc",
|
|
19
|
+
"last_seen_asc",
|
|
20
|
+
"last_seen_desc"
|
|
21
|
+
]).default("backlinks_num_desc").describe("Sorting criteria for the results.").optional(),
|
|
22
|
+
display_limit: z.number().int().default(1e4).describe("Maximum number of results to return.").optional(),
|
|
23
|
+
display_offset: z.number().int().default(0).describe("Number of initial results to skip. Note: When using `display_offset`, the `display_limit` should be the desired number of results plus the `display_offset` (e.g., for 100 results after skipping 50, set `display_offset=50`, `display_limit=150`).").optional(),
|
|
24
|
+
export_columns: z.array(z.enum([
|
|
25
|
+
"source_url",
|
|
26
|
+
"source_title",
|
|
27
|
+
"response_code",
|
|
28
|
+
"backlinks_num",
|
|
29
|
+
"domains_num",
|
|
30
|
+
"last_seen",
|
|
31
|
+
"external_num",
|
|
32
|
+
"internal_num"
|
|
33
|
+
]).describe("Available columns for the Indexed Pages report.")).default([
|
|
34
|
+
"source_url",
|
|
35
|
+
"source_title",
|
|
36
|
+
"response_code",
|
|
37
|
+
"backlinks_num",
|
|
38
|
+
"domains_num",
|
|
39
|
+
"last_seen",
|
|
40
|
+
"external_num",
|
|
41
|
+
"internal_num"
|
|
42
|
+
]).describe("Specific columns for the report; defaults to all available columns if omitted.").optional()
|
|
43
|
+
}).describe("Request schema for retrieving indexed pages information from Semrush."),
|
|
44
|
+
output: z.object({ data: z.string().describe("A string containing the report data, typically in a CSV-like format, listing indexed pages and their selected attributes.") }).describe("Response schema for the `IndexedPages` action.")
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { semrushIndexedPages };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=indexed-pages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexed-pages.mjs","names":[],"sources":["../../src/actions/indexed-pages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemrushIndexedPagesInput: z.ZodTypeAny = z.object({\n target: z.string().describe(\"Target URL, domain, or root domain for which to retrieve indexed pages data.\"),\n target_type: z.enum([\"root_domain\", \"domain\", \"url\"]).describe(\"Type of the target.\"),\n display_sort: z.enum([\"backlinks_num_asc\", \"backlinks_num_desc\", \"domains_num_asc\", \"domains_num_desc\", \"last_seen_asc\", \"last_seen_desc\"]).default(\"backlinks_num_desc\").describe(\"Sorting criteria for the results.\").optional(),\n display_limit: z.number().int().default(10000).describe(\"Maximum number of results to return.\").optional(),\n display_offset: z.number().int().default(0).describe(\"Number of initial results to skip. Note: When using `display_offset`, the `display_limit` should be the desired number of results plus the `display_offset` (e.g., for 100 results after skipping 50, set `display_offset=50`, `display_limit=150`).\").optional(),\n export_columns: z.array(z.enum([\"source_url\", \"source_title\", \"response_code\", \"backlinks_num\", \"domains_num\", \"last_seen\", \"external_num\", \"internal_num\"]).describe(\"Available columns for the Indexed Pages report.\")).default([\"source_url\",\"source_title\",\"response_code\",\"backlinks_num\",\"domains_num\",\"last_seen\",\"external_num\",\"internal_num\"]).describe(\"Specific columns for the report; defaults to all available columns if omitted.\").optional(),\n}).describe(\"Request schema for retrieving indexed pages information from Semrush.\");\nexport const SemrushIndexedPagesOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"A string containing the report data, typically in a CSV-like format, listing indexed pages and their selected attributes.\"),\n}).describe(\"Response schema for the `IndexedPages` action.\");\n\nexport const semrushIndexedPages = action(\"SEMRUSH_INDEXED_PAGES\", {\n slug: \"semrush-indexed-pages\",\n name: \"Get indexed pages\",\n description: \"Retrieves a list of indexed pages from Semrush for a specified `target` (root domain, domain, or URL) and `target_type`, ensuring `target` is publicly accessible, Semrush-analyzable, and correctly matches `target_type`. Returns CSV-like text output requiring parsing before structured analysis.\",\n input: SemrushIndexedPagesInput,\n output: SemrushIndexedPagesOutput,\n});\n"],"mappings":";;AAgBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;EAC1G,aAAa,EAAE,KAAK;GAAC;GAAe;GAAU;EAAK,CAAC,CAAC,CAAC,SAAS,qBAAqB;EACpF,cAAc,EAAE,KAAK;GAAC;GAAqB;GAAsB;GAAmB;GAAoB;GAAiB;EAAgB,CAAC,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjO,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACzG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;EACtT,gBAAgB,EAAE,MAAM,EAAE,KAAK;GAAC;GAAc;GAAgB;GAAiB;GAAiB;GAAe;GAAa;GAAgB;EAAc,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,QAAQ;GAAC;GAAa;GAAe;GAAgB;GAAgB;GAAc;GAAY;GAAe;EAAc,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC/b,CAAC,CAAC,CAAC,SAAS,uEASH;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,EACvJ,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/keyword-difficulty.ts
|
|
4
|
+
const SemrushKeywordDifficultyInput = zod.z.object({
|
|
5
|
+
phrase: zod.z.string().describe("The keyword or keyword phrase to analyze for difficulty. Minor wording variations produce different KD scores; normalize phrases before comparing results."),
|
|
6
|
+
database: zod.z.enum([
|
|
7
|
+
"us",
|
|
8
|
+
"uk",
|
|
9
|
+
"ca",
|
|
10
|
+
"ru",
|
|
11
|
+
"de",
|
|
12
|
+
"fr",
|
|
13
|
+
"es",
|
|
14
|
+
"it",
|
|
15
|
+
"br",
|
|
16
|
+
"au",
|
|
17
|
+
"ar",
|
|
18
|
+
"be",
|
|
19
|
+
"ch",
|
|
20
|
+
"dk",
|
|
21
|
+
"fi",
|
|
22
|
+
"hk",
|
|
23
|
+
"ie",
|
|
24
|
+
"il",
|
|
25
|
+
"mx",
|
|
26
|
+
"nl",
|
|
27
|
+
"no",
|
|
28
|
+
"pl",
|
|
29
|
+
"se",
|
|
30
|
+
"sg",
|
|
31
|
+
"tr",
|
|
32
|
+
"jp",
|
|
33
|
+
"in",
|
|
34
|
+
"hu",
|
|
35
|
+
"af",
|
|
36
|
+
"al",
|
|
37
|
+
"dz",
|
|
38
|
+
"ao",
|
|
39
|
+
"am",
|
|
40
|
+
"at",
|
|
41
|
+
"az",
|
|
42
|
+
"bh",
|
|
43
|
+
"bd",
|
|
44
|
+
"by",
|
|
45
|
+
"bz",
|
|
46
|
+
"bo",
|
|
47
|
+
"ba",
|
|
48
|
+
"bw",
|
|
49
|
+
"bn",
|
|
50
|
+
"bg",
|
|
51
|
+
"cv",
|
|
52
|
+
"kh",
|
|
53
|
+
"cm",
|
|
54
|
+
"cl",
|
|
55
|
+
"co",
|
|
56
|
+
"cr",
|
|
57
|
+
"hr",
|
|
58
|
+
"cy",
|
|
59
|
+
"cz",
|
|
60
|
+
"cd",
|
|
61
|
+
"do",
|
|
62
|
+
"ec",
|
|
63
|
+
"eg",
|
|
64
|
+
"sv",
|
|
65
|
+
"ee",
|
|
66
|
+
"et",
|
|
67
|
+
"ge",
|
|
68
|
+
"gh",
|
|
69
|
+
"gr",
|
|
70
|
+
"gt",
|
|
71
|
+
"gy",
|
|
72
|
+
"ht",
|
|
73
|
+
"hn",
|
|
74
|
+
"is",
|
|
75
|
+
"id",
|
|
76
|
+
"jm",
|
|
77
|
+
"jo",
|
|
78
|
+
"kz",
|
|
79
|
+
"kw",
|
|
80
|
+
"lv",
|
|
81
|
+
"lb",
|
|
82
|
+
"lt",
|
|
83
|
+
"lu",
|
|
84
|
+
"mg",
|
|
85
|
+
"my",
|
|
86
|
+
"mt",
|
|
87
|
+
"mu",
|
|
88
|
+
"md",
|
|
89
|
+
"mn",
|
|
90
|
+
"me",
|
|
91
|
+
"ma",
|
|
92
|
+
"mz",
|
|
93
|
+
"na",
|
|
94
|
+
"np",
|
|
95
|
+
"nz",
|
|
96
|
+
"ni",
|
|
97
|
+
"ng",
|
|
98
|
+
"om",
|
|
99
|
+
"py",
|
|
100
|
+
"pe",
|
|
101
|
+
"ph",
|
|
102
|
+
"pt",
|
|
103
|
+
"ro",
|
|
104
|
+
"sa",
|
|
105
|
+
"sn",
|
|
106
|
+
"rs",
|
|
107
|
+
"sk",
|
|
108
|
+
"si",
|
|
109
|
+
"za",
|
|
110
|
+
"kr",
|
|
111
|
+
"lk",
|
|
112
|
+
"th",
|
|
113
|
+
"bs",
|
|
114
|
+
"tt",
|
|
115
|
+
"tn",
|
|
116
|
+
"ua",
|
|
117
|
+
"ae",
|
|
118
|
+
"uy",
|
|
119
|
+
"ve",
|
|
120
|
+
"vn",
|
|
121
|
+
"zm",
|
|
122
|
+
"zw",
|
|
123
|
+
"ly",
|
|
124
|
+
"mobile-us",
|
|
125
|
+
"mobile-uk",
|
|
126
|
+
"mobile-ca",
|
|
127
|
+
"mobile-de",
|
|
128
|
+
"mobile-fr",
|
|
129
|
+
"mobile-es",
|
|
130
|
+
"mobile-it",
|
|
131
|
+
"mobile-br",
|
|
132
|
+
"mobile-au",
|
|
133
|
+
"mobile-dk",
|
|
134
|
+
"mobile-mx",
|
|
135
|
+
"mobile-nl",
|
|
136
|
+
"mobile-se",
|
|
137
|
+
"mobile-tr",
|
|
138
|
+
"mobile-in",
|
|
139
|
+
"mobile-id",
|
|
140
|
+
"mobile-il",
|
|
141
|
+
"il-ext",
|
|
142
|
+
"tr-ext",
|
|
143
|
+
"dk-ext",
|
|
144
|
+
"no-ext",
|
|
145
|
+
"se-ext",
|
|
146
|
+
"fi-ext",
|
|
147
|
+
"ch-ext",
|
|
148
|
+
"mobile-il-ext",
|
|
149
|
+
"pa",
|
|
150
|
+
"pk",
|
|
151
|
+
"tw",
|
|
152
|
+
"qa"
|
|
153
|
+
]).describe("The Semrush regional database to use for the analysis (e.g., 'us', 'gb', 'ca'). Refer to the Semrush API documentation for a complete list of valid database codes: https://developer.semrush.com/api/v3/analytics/basic-docs/#databases."),
|
|
154
|
+
export_escape: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).default(1).describe("Set to 1 to wrap output columns in double quotes (\"), or 0 to disable.").optional(),
|
|
155
|
+
export_columns: zod.z.array(zod.z.enum(["Ph", "Kd"])).default(["Ph", "Kd"]).describe("Specifies columns to include in the output (e.g., 'Ph' for Phrase, 'Kd' for Keyword Difficulty). Uses all available columns if omitted.").optional()
|
|
156
|
+
});
|
|
157
|
+
const SemrushKeywordDifficultyOutput = zod.z.object({ data: zod.z.string().describe("The raw keyword difficulty report data, typically in CSV format, as returned by the Semrush API.") }).describe("Contains the keyword difficulty report data from the Semrush API.");
|
|
158
|
+
const semrushKeywordDifficulty = require_action.action("SEMRUSH_KEYWORD_DIFFICULTY", {
|
|
159
|
+
slug: "semrush-keyword-difficulty",
|
|
160
|
+
name: "Get keyword difficulty",
|
|
161
|
+
description: "Determines the Keyword Difficulty (KD) score (0-100, higher means greater difficulty) for a given phrase in a specific Semrush regional database to assess its SEO competitiveness. Returns CSV-formatted text; parse before programmatic use.",
|
|
162
|
+
input: SemrushKeywordDifficultyInput,
|
|
163
|
+
output: SemrushKeywordDifficultyOutput
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
exports.semrushKeywordDifficulty = semrushKeywordDifficulty;
|
|
167
|
+
|
|
168
|
+
//# sourceMappingURL=keyword-difficulty.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyword-difficulty.cjs","names":["z","action"],"sources":["../../src/actions/keyword-difficulty.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemrushKeywordDifficultyInput: z.ZodTypeAny = z.object({\n phrase: z.string().describe(\"The keyword or keyword phrase to analyze for difficulty. Minor wording variations produce different KD scores; normalize phrases before comparing results.\"),\n database: z.enum([\"us\", \"uk\", \"ca\", \"ru\", \"de\", \"fr\", \"es\", \"it\", \"br\", \"au\", \"ar\", \"be\", \"ch\", \"dk\", \"fi\", \"hk\", \"ie\", \"il\", \"mx\", \"nl\", \"no\", \"pl\", \"se\", \"sg\", \"tr\", \"jp\", \"in\", \"hu\", \"af\", \"al\", \"dz\", \"ao\", \"am\", \"at\", \"az\", \"bh\", \"bd\", \"by\", \"bz\", \"bo\", \"ba\", \"bw\", \"bn\", \"bg\", \"cv\", \"kh\", \"cm\", \"cl\", \"co\", \"cr\", \"hr\", \"cy\", \"cz\", \"cd\", \"do\", \"ec\", \"eg\", \"sv\", \"ee\", \"et\", \"ge\", \"gh\", \"gr\", \"gt\", \"gy\", \"ht\", \"hn\", \"is\", \"id\", \"jm\", \"jo\", \"kz\", \"kw\", \"lv\", \"lb\", \"lt\", \"lu\", \"mg\", \"my\", \"mt\", \"mu\", \"md\", \"mn\", \"me\", \"ma\", \"mz\", \"na\", \"np\", \"nz\", \"ni\", \"ng\", \"om\", \"py\", \"pe\", \"ph\", \"pt\", \"ro\", \"sa\", \"sn\", \"rs\", \"sk\", \"si\", \"za\", \"kr\", \"lk\", \"th\", \"bs\", \"tt\", \"tn\", \"ua\", \"ae\", \"uy\", \"ve\", \"vn\", \"zm\", \"zw\", \"ly\", \"mobile-us\", \"mobile-uk\", \"mobile-ca\", \"mobile-de\", \"mobile-fr\", \"mobile-es\", \"mobile-it\", \"mobile-br\", \"mobile-au\", \"mobile-dk\", \"mobile-mx\", \"mobile-nl\", \"mobile-se\", \"mobile-tr\", \"mobile-in\", \"mobile-id\", \"mobile-il\", \"il-ext\", \"tr-ext\", \"dk-ext\", \"no-ext\", \"se-ext\", \"fi-ext\", \"ch-ext\", \"mobile-il-ext\", \"pa\", \"pk\", \"tw\", \"qa\"]).describe(\"The Semrush regional database to use for the analysis (e.g., 'us', 'gb', 'ca'). Refer to the Semrush API documentation for a complete list of valid database codes: https://developer.semrush.com/api/v3/analytics/basic-docs/#databases.\"),\n export_escape: z.union([z.literal(0), z.literal(1)]).default(1).describe(\"Set to 1 to wrap output columns in double quotes (\\\"), or 0 to disable.\").optional(),\n export_columns: z.array(z.enum([\"Ph\", \"Kd\"])).default([\"Ph\",\"Kd\"]).describe(\"Specifies columns to include in the output (e.g., 'Ph' for Phrase, 'Kd' for Keyword Difficulty). Uses all available columns if omitted.\").optional(),\n});\nexport const SemrushKeywordDifficultyOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"The raw keyword difficulty report data, typically in CSV format, as returned by the Semrush API.\"),\n}).describe(\"Contains the keyword difficulty report data from the Semrush API.\");\n\nexport const semrushKeywordDifficulty = action(\"SEMRUSH_KEYWORD_DIFFICULTY\", {\n slug: \"semrush-keyword-difficulty\",\n name: \"Get keyword difficulty\",\n description: \"Determines the Keyword Difficulty (KD) score (0-100, higher means greater difficulty) for a given phrase in a specific Semrush regional database to assess its SEO competitiveness. Returns CSV-formatted text; parse before programmatic use.\",\n input: SemrushKeywordDifficultyInput,\n output: SemrushKeywordDifficultyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;CACxL,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAU;EAAU;EAAU;EAAU;EAAU;EAAU;EAAU;EAAiB;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,2OAA2O;CACjxC,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC7J,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAK,IAAI,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;AAClO,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,EAC9H,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/keyword-difficulty.d.ts
|
|
4
|
+
declare const SemrushKeywordDifficultyInput: z.ZodTypeAny;
|
|
5
|
+
declare const SemrushKeywordDifficultyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const semrushKeywordDifficulty: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { semrushKeywordDifficulty };
|
|
9
|
+
//# sourceMappingURL=keyword-difficulty.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyword-difficulty.d.cts","names":[],"sources":["../../src/actions/keyword-difficulty.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAK5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAEiC;AAAA,cAEnE,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/keyword-difficulty.d.ts
|
|
4
|
+
declare const SemrushKeywordDifficultyInput: z.ZodTypeAny;
|
|
5
|
+
declare const SemrushKeywordDifficultyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const semrushKeywordDifficulty: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { semrushKeywordDifficulty };
|
|
9
|
+
//# sourceMappingURL=keyword-difficulty.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyword-difficulty.d.mts","names":[],"sources":["../../src/actions/keyword-difficulty.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAK5C;AAAA,cACW,8BAAA,EAAgC,CAAA,CAAE,UAEiC;AAAA,cAEnE,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const semrushKeywordDifficulty = action("SEMRUSH_KEYWORD_DIFFICULTY", {
|
|
4
|
+
slug: "semrush-keyword-difficulty",
|
|
5
|
+
name: "Get keyword difficulty",
|
|
6
|
+
description: "Determines the Keyword Difficulty (KD) score (0-100, higher means greater difficulty) for a given phrase in a specific Semrush regional database to assess its SEO competitiveness. Returns CSV-formatted text; parse before programmatic use.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
phrase: z.string().describe("The keyword or keyword phrase to analyze for difficulty. Minor wording variations produce different KD scores; normalize phrases before comparing results."),
|
|
9
|
+
database: z.enum([
|
|
10
|
+
"us",
|
|
11
|
+
"uk",
|
|
12
|
+
"ca",
|
|
13
|
+
"ru",
|
|
14
|
+
"de",
|
|
15
|
+
"fr",
|
|
16
|
+
"es",
|
|
17
|
+
"it",
|
|
18
|
+
"br",
|
|
19
|
+
"au",
|
|
20
|
+
"ar",
|
|
21
|
+
"be",
|
|
22
|
+
"ch",
|
|
23
|
+
"dk",
|
|
24
|
+
"fi",
|
|
25
|
+
"hk",
|
|
26
|
+
"ie",
|
|
27
|
+
"il",
|
|
28
|
+
"mx",
|
|
29
|
+
"nl",
|
|
30
|
+
"no",
|
|
31
|
+
"pl",
|
|
32
|
+
"se",
|
|
33
|
+
"sg",
|
|
34
|
+
"tr",
|
|
35
|
+
"jp",
|
|
36
|
+
"in",
|
|
37
|
+
"hu",
|
|
38
|
+
"af",
|
|
39
|
+
"al",
|
|
40
|
+
"dz",
|
|
41
|
+
"ao",
|
|
42
|
+
"am",
|
|
43
|
+
"at",
|
|
44
|
+
"az",
|
|
45
|
+
"bh",
|
|
46
|
+
"bd",
|
|
47
|
+
"by",
|
|
48
|
+
"bz",
|
|
49
|
+
"bo",
|
|
50
|
+
"ba",
|
|
51
|
+
"bw",
|
|
52
|
+
"bn",
|
|
53
|
+
"bg",
|
|
54
|
+
"cv",
|
|
55
|
+
"kh",
|
|
56
|
+
"cm",
|
|
57
|
+
"cl",
|
|
58
|
+
"co",
|
|
59
|
+
"cr",
|
|
60
|
+
"hr",
|
|
61
|
+
"cy",
|
|
62
|
+
"cz",
|
|
63
|
+
"cd",
|
|
64
|
+
"do",
|
|
65
|
+
"ec",
|
|
66
|
+
"eg",
|
|
67
|
+
"sv",
|
|
68
|
+
"ee",
|
|
69
|
+
"et",
|
|
70
|
+
"ge",
|
|
71
|
+
"gh",
|
|
72
|
+
"gr",
|
|
73
|
+
"gt",
|
|
74
|
+
"gy",
|
|
75
|
+
"ht",
|
|
76
|
+
"hn",
|
|
77
|
+
"is",
|
|
78
|
+
"id",
|
|
79
|
+
"jm",
|
|
80
|
+
"jo",
|
|
81
|
+
"kz",
|
|
82
|
+
"kw",
|
|
83
|
+
"lv",
|
|
84
|
+
"lb",
|
|
85
|
+
"lt",
|
|
86
|
+
"lu",
|
|
87
|
+
"mg",
|
|
88
|
+
"my",
|
|
89
|
+
"mt",
|
|
90
|
+
"mu",
|
|
91
|
+
"md",
|
|
92
|
+
"mn",
|
|
93
|
+
"me",
|
|
94
|
+
"ma",
|
|
95
|
+
"mz",
|
|
96
|
+
"na",
|
|
97
|
+
"np",
|
|
98
|
+
"nz",
|
|
99
|
+
"ni",
|
|
100
|
+
"ng",
|
|
101
|
+
"om",
|
|
102
|
+
"py",
|
|
103
|
+
"pe",
|
|
104
|
+
"ph",
|
|
105
|
+
"pt",
|
|
106
|
+
"ro",
|
|
107
|
+
"sa",
|
|
108
|
+
"sn",
|
|
109
|
+
"rs",
|
|
110
|
+
"sk",
|
|
111
|
+
"si",
|
|
112
|
+
"za",
|
|
113
|
+
"kr",
|
|
114
|
+
"lk",
|
|
115
|
+
"th",
|
|
116
|
+
"bs",
|
|
117
|
+
"tt",
|
|
118
|
+
"tn",
|
|
119
|
+
"ua",
|
|
120
|
+
"ae",
|
|
121
|
+
"uy",
|
|
122
|
+
"ve",
|
|
123
|
+
"vn",
|
|
124
|
+
"zm",
|
|
125
|
+
"zw",
|
|
126
|
+
"ly",
|
|
127
|
+
"mobile-us",
|
|
128
|
+
"mobile-uk",
|
|
129
|
+
"mobile-ca",
|
|
130
|
+
"mobile-de",
|
|
131
|
+
"mobile-fr",
|
|
132
|
+
"mobile-es",
|
|
133
|
+
"mobile-it",
|
|
134
|
+
"mobile-br",
|
|
135
|
+
"mobile-au",
|
|
136
|
+
"mobile-dk",
|
|
137
|
+
"mobile-mx",
|
|
138
|
+
"mobile-nl",
|
|
139
|
+
"mobile-se",
|
|
140
|
+
"mobile-tr",
|
|
141
|
+
"mobile-in",
|
|
142
|
+
"mobile-id",
|
|
143
|
+
"mobile-il",
|
|
144
|
+
"il-ext",
|
|
145
|
+
"tr-ext",
|
|
146
|
+
"dk-ext",
|
|
147
|
+
"no-ext",
|
|
148
|
+
"se-ext",
|
|
149
|
+
"fi-ext",
|
|
150
|
+
"ch-ext",
|
|
151
|
+
"mobile-il-ext",
|
|
152
|
+
"pa",
|
|
153
|
+
"pk",
|
|
154
|
+
"tw",
|
|
155
|
+
"qa"
|
|
156
|
+
]).describe("The Semrush regional database to use for the analysis (e.g., 'us', 'gb', 'ca'). Refer to the Semrush API documentation for a complete list of valid database codes: https://developer.semrush.com/api/v3/analytics/basic-docs/#databases."),
|
|
157
|
+
export_escape: z.union([z.literal(0), z.literal(1)]).default(1).describe("Set to 1 to wrap output columns in double quotes (\"), or 0 to disable.").optional(),
|
|
158
|
+
export_columns: z.array(z.enum(["Ph", "Kd"])).default(["Ph", "Kd"]).describe("Specifies columns to include in the output (e.g., 'Ph' for Phrase, 'Kd' for Keyword Difficulty). Uses all available columns if omitted.").optional()
|
|
159
|
+
}),
|
|
160
|
+
output: z.object({ data: z.string().describe("The raw keyword difficulty report data, typically in CSV format, as returned by the Semrush API.") }).describe("Contains the keyword difficulty report data from the Semrush API.")
|
|
161
|
+
});
|
|
162
|
+
//#endregion
|
|
163
|
+
export { semrushKeywordDifficulty };
|
|
164
|
+
|
|
165
|
+
//# sourceMappingURL=keyword-difficulty.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyword-difficulty.mjs","names":[],"sources":["../../src/actions/keyword-difficulty.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemrushKeywordDifficultyInput: z.ZodTypeAny = z.object({\n phrase: z.string().describe(\"The keyword or keyword phrase to analyze for difficulty. Minor wording variations produce different KD scores; normalize phrases before comparing results.\"),\n database: z.enum([\"us\", \"uk\", \"ca\", \"ru\", \"de\", \"fr\", \"es\", \"it\", \"br\", \"au\", \"ar\", \"be\", \"ch\", \"dk\", \"fi\", \"hk\", \"ie\", \"il\", \"mx\", \"nl\", \"no\", \"pl\", \"se\", \"sg\", \"tr\", \"jp\", \"in\", \"hu\", \"af\", \"al\", \"dz\", \"ao\", \"am\", \"at\", \"az\", \"bh\", \"bd\", \"by\", \"bz\", \"bo\", \"ba\", \"bw\", \"bn\", \"bg\", \"cv\", \"kh\", \"cm\", \"cl\", \"co\", \"cr\", \"hr\", \"cy\", \"cz\", \"cd\", \"do\", \"ec\", \"eg\", \"sv\", \"ee\", \"et\", \"ge\", \"gh\", \"gr\", \"gt\", \"gy\", \"ht\", \"hn\", \"is\", \"id\", \"jm\", \"jo\", \"kz\", \"kw\", \"lv\", \"lb\", \"lt\", \"lu\", \"mg\", \"my\", \"mt\", \"mu\", \"md\", \"mn\", \"me\", \"ma\", \"mz\", \"na\", \"np\", \"nz\", \"ni\", \"ng\", \"om\", \"py\", \"pe\", \"ph\", \"pt\", \"ro\", \"sa\", \"sn\", \"rs\", \"sk\", \"si\", \"za\", \"kr\", \"lk\", \"th\", \"bs\", \"tt\", \"tn\", \"ua\", \"ae\", \"uy\", \"ve\", \"vn\", \"zm\", \"zw\", \"ly\", \"mobile-us\", \"mobile-uk\", \"mobile-ca\", \"mobile-de\", \"mobile-fr\", \"mobile-es\", \"mobile-it\", \"mobile-br\", \"mobile-au\", \"mobile-dk\", \"mobile-mx\", \"mobile-nl\", \"mobile-se\", \"mobile-tr\", \"mobile-in\", \"mobile-id\", \"mobile-il\", \"il-ext\", \"tr-ext\", \"dk-ext\", \"no-ext\", \"se-ext\", \"fi-ext\", \"ch-ext\", \"mobile-il-ext\", \"pa\", \"pk\", \"tw\", \"qa\"]).describe(\"The Semrush regional database to use for the analysis (e.g., 'us', 'gb', 'ca'). Refer to the Semrush API documentation for a complete list of valid database codes: https://developer.semrush.com/api/v3/analytics/basic-docs/#databases.\"),\n export_escape: z.union([z.literal(0), z.literal(1)]).default(1).describe(\"Set to 1 to wrap output columns in double quotes (\\\"), or 0 to disable.\").optional(),\n export_columns: z.array(z.enum([\"Ph\", \"Kd\"])).default([\"Ph\",\"Kd\"]).describe(\"Specifies columns to include in the output (e.g., 'Ph' for Phrase, 'Kd' for Keyword Difficulty). Uses all available columns if omitted.\").optional(),\n});\nexport const SemrushKeywordDifficultyOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"The raw keyword difficulty report data, typically in CSV format, as returned by the Semrush API.\"),\n}).describe(\"Contains the keyword difficulty report data from the Semrush API.\");\n\nexport const semrushKeywordDifficulty = action(\"SEMRUSH_KEYWORD_DIFFICULTY\", {\n slug: \"semrush-keyword-difficulty\",\n name: \"Get keyword difficulty\",\n description: \"Determines the Keyword Difficulty (KD) score (0-100, higher means greater difficulty) for a given phrase in a specific Semrush regional database to assess its SEO competitiveness. Returns CSV-formatted text; parse before programmatic use.\",\n input: SemrushKeywordDifficultyInput,\n output: SemrushKeywordDifficultyOutput,\n});\n"],"mappings":";;AAcA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyD,EAAE,OAAO;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J;EACxL,UAAU,EAAE,KAAK;GAAC;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAM;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAa;GAAU;GAAU;GAAU;GAAU;GAAU;GAAU;GAAU;GAAiB;GAAM;GAAM;GAAM;EAAI,CAAC,CAAC,CAAC,SAAS,2OAA2O;EACjxC,eAAe,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAC7J,gBAAgB,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAK,IAAI,CAAC,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAClO,CASS;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,EAC9H,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/keyword-overview-all-databases.ts
|
|
4
|
+
const SemrushKeywordOverviewAllDatabasesInput = zod.z.object({
|
|
5
|
+
phrase: zod.z.string().describe("Keyword or keyword phrase to investigate."),
|
|
6
|
+
database: zod.z.enum([
|
|
7
|
+
"us",
|
|
8
|
+
"uk",
|
|
9
|
+
"ca",
|
|
10
|
+
"ru",
|
|
11
|
+
"de",
|
|
12
|
+
"fr",
|
|
13
|
+
"es",
|
|
14
|
+
"it",
|
|
15
|
+
"br",
|
|
16
|
+
"au",
|
|
17
|
+
"ar",
|
|
18
|
+
"be",
|
|
19
|
+
"ch",
|
|
20
|
+
"dk",
|
|
21
|
+
"fi",
|
|
22
|
+
"hk",
|
|
23
|
+
"ie",
|
|
24
|
+
"il",
|
|
25
|
+
"mx",
|
|
26
|
+
"nl",
|
|
27
|
+
"no",
|
|
28
|
+
"pl",
|
|
29
|
+
"se",
|
|
30
|
+
"sg",
|
|
31
|
+
"tr",
|
|
32
|
+
"jp",
|
|
33
|
+
"in",
|
|
34
|
+
"hu",
|
|
35
|
+
"af",
|
|
36
|
+
"al",
|
|
37
|
+
"dz",
|
|
38
|
+
"ao",
|
|
39
|
+
"am",
|
|
40
|
+
"at",
|
|
41
|
+
"az",
|
|
42
|
+
"bh",
|
|
43
|
+
"bd",
|
|
44
|
+
"by",
|
|
45
|
+
"bz",
|
|
46
|
+
"bo",
|
|
47
|
+
"ba",
|
|
48
|
+
"bw",
|
|
49
|
+
"bn",
|
|
50
|
+
"bg",
|
|
51
|
+
"cv",
|
|
52
|
+
"kh",
|
|
53
|
+
"cm",
|
|
54
|
+
"cl",
|
|
55
|
+
"co",
|
|
56
|
+
"cr",
|
|
57
|
+
"hr",
|
|
58
|
+
"cy",
|
|
59
|
+
"cz",
|
|
60
|
+
"cd",
|
|
61
|
+
"do",
|
|
62
|
+
"ec",
|
|
63
|
+
"eg",
|
|
64
|
+
"sv",
|
|
65
|
+
"ee",
|
|
66
|
+
"et",
|
|
67
|
+
"ge",
|
|
68
|
+
"gh",
|
|
69
|
+
"gr",
|
|
70
|
+
"gt",
|
|
71
|
+
"gy",
|
|
72
|
+
"ht",
|
|
73
|
+
"hn",
|
|
74
|
+
"is",
|
|
75
|
+
"id",
|
|
76
|
+
"jm",
|
|
77
|
+
"jo",
|
|
78
|
+
"kz",
|
|
79
|
+
"kw",
|
|
80
|
+
"lv",
|
|
81
|
+
"lb",
|
|
82
|
+
"lt",
|
|
83
|
+
"lu",
|
|
84
|
+
"mg",
|
|
85
|
+
"my",
|
|
86
|
+
"mt",
|
|
87
|
+
"mu",
|
|
88
|
+
"md",
|
|
89
|
+
"mn",
|
|
90
|
+
"me",
|
|
91
|
+
"ma",
|
|
92
|
+
"mz",
|
|
93
|
+
"na",
|
|
94
|
+
"np",
|
|
95
|
+
"nz",
|
|
96
|
+
"ni",
|
|
97
|
+
"ng",
|
|
98
|
+
"om",
|
|
99
|
+
"py",
|
|
100
|
+
"pe",
|
|
101
|
+
"ph",
|
|
102
|
+
"pt",
|
|
103
|
+
"ro",
|
|
104
|
+
"sa",
|
|
105
|
+
"sn",
|
|
106
|
+
"rs",
|
|
107
|
+
"sk",
|
|
108
|
+
"si",
|
|
109
|
+
"za",
|
|
110
|
+
"kr",
|
|
111
|
+
"lk",
|
|
112
|
+
"th",
|
|
113
|
+
"bs",
|
|
114
|
+
"tt",
|
|
115
|
+
"tn",
|
|
116
|
+
"ua",
|
|
117
|
+
"ae",
|
|
118
|
+
"uy",
|
|
119
|
+
"ve",
|
|
120
|
+
"vn",
|
|
121
|
+
"zm",
|
|
122
|
+
"zw",
|
|
123
|
+
"ly",
|
|
124
|
+
"mobile-us",
|
|
125
|
+
"mobile-uk",
|
|
126
|
+
"mobile-ca",
|
|
127
|
+
"mobile-de",
|
|
128
|
+
"mobile-fr",
|
|
129
|
+
"mobile-es",
|
|
130
|
+
"mobile-it",
|
|
131
|
+
"mobile-br",
|
|
132
|
+
"mobile-au",
|
|
133
|
+
"mobile-dk",
|
|
134
|
+
"mobile-mx",
|
|
135
|
+
"mobile-nl",
|
|
136
|
+
"mobile-se",
|
|
137
|
+
"mobile-tr",
|
|
138
|
+
"mobile-in",
|
|
139
|
+
"mobile-id",
|
|
140
|
+
"mobile-il",
|
|
141
|
+
"il-ext",
|
|
142
|
+
"tr-ext",
|
|
143
|
+
"dk-ext",
|
|
144
|
+
"no-ext",
|
|
145
|
+
"se-ext",
|
|
146
|
+
"fi-ext",
|
|
147
|
+
"ch-ext",
|
|
148
|
+
"mobile-il-ext",
|
|
149
|
+
"pa",
|
|
150
|
+
"pk",
|
|
151
|
+
"tw",
|
|
152
|
+
"qa"
|
|
153
|
+
]).describe("Regional database to query (e.g., 'us', 'gb'); if omitted, data is retrieved from all regional databases.").optional(),
|
|
154
|
+
export_decode: zod.z.number().int().default(1).describe("Set to 1 for a URL-decoded response, 0 for URL-encoded.").optional(),
|
|
155
|
+
export_escape: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).default(1).describe("Set to 1 to wrap output columns in double quotes, 0 to disable.").optional(),
|
|
156
|
+
export_columns: zod.z.array(zod.z.enum([
|
|
157
|
+
"Dt",
|
|
158
|
+
"Db",
|
|
159
|
+
"Ph",
|
|
160
|
+
"Nq",
|
|
161
|
+
"Cp",
|
|
162
|
+
"Co",
|
|
163
|
+
"Nr",
|
|
164
|
+
"In",
|
|
165
|
+
"Kd"
|
|
166
|
+
])).default([
|
|
167
|
+
"Dt",
|
|
168
|
+
"Db",
|
|
169
|
+
"Ph",
|
|
170
|
+
"Nq",
|
|
171
|
+
"Cp",
|
|
172
|
+
"Co",
|
|
173
|
+
"Nr",
|
|
174
|
+
"In",
|
|
175
|
+
"Kd"
|
|
176
|
+
]).describe("Specific columns for the report (e.g., 'Ph', 'Nq', 'Cp'). Defaults to all columns, including Date (Dt), Database (Db), Phrase (Ph), Search Volume (Nq), CPC (Cp), Competition (Co), Number of Results (Nr), Intent (In), and Keyword Difficulty (Kd).").optional()
|
|
177
|
+
});
|
|
178
|
+
const SemrushKeywordOverviewAllDatabasesOutput = zod.z.object({ keyword_data: zod.z.string().describe("Raw text response from the API with keyword overview data, typically CSV formatted.") });
|
|
179
|
+
const semrushKeywordOverviewAllDatabases = require_action.action("SEMRUSH_KEYWORD_OVERVIEW_ALL_DATABASES", {
|
|
180
|
+
slug: "semrush-keyword-overview-all-databases",
|
|
181
|
+
name: "Keyword overview all databases",
|
|
182
|
+
description: "Fetches a keyword overview from Semrush for a specified phrase, including metrics like search volume, CPC, and competition. Response is returned as a CSV-like string; parse headers and rows into a structured table before extracting values like Nq, Cp, or Kd.",
|
|
183
|
+
input: SemrushKeywordOverviewAllDatabasesInput,
|
|
184
|
+
output: SemrushKeywordOverviewAllDatabasesOutput
|
|
185
|
+
});
|
|
186
|
+
//#endregion
|
|
187
|
+
exports.semrushKeywordOverviewAllDatabases = semrushKeywordOverviewAllDatabases;
|
|
188
|
+
|
|
189
|
+
//# sourceMappingURL=keyword-overview-all-databases.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyword-overview-all-databases.cjs","names":["z","action"],"sources":["../../src/actions/keyword-overview-all-databases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemrushKeywordOverviewAllDatabasesInput: z.ZodTypeAny = z.object({\n phrase: z.string().describe(\"Keyword or keyword phrase to investigate.\"),\n database: z.enum([\"us\", \"uk\", \"ca\", \"ru\", \"de\", \"fr\", \"es\", \"it\", \"br\", \"au\", \"ar\", \"be\", \"ch\", \"dk\", \"fi\", \"hk\", \"ie\", \"il\", \"mx\", \"nl\", \"no\", \"pl\", \"se\", \"sg\", \"tr\", \"jp\", \"in\", \"hu\", \"af\", \"al\", \"dz\", \"ao\", \"am\", \"at\", \"az\", \"bh\", \"bd\", \"by\", \"bz\", \"bo\", \"ba\", \"bw\", \"bn\", \"bg\", \"cv\", \"kh\", \"cm\", \"cl\", \"co\", \"cr\", \"hr\", \"cy\", \"cz\", \"cd\", \"do\", \"ec\", \"eg\", \"sv\", \"ee\", \"et\", \"ge\", \"gh\", \"gr\", \"gt\", \"gy\", \"ht\", \"hn\", \"is\", \"id\", \"jm\", \"jo\", \"kz\", \"kw\", \"lv\", \"lb\", \"lt\", \"lu\", \"mg\", \"my\", \"mt\", \"mu\", \"md\", \"mn\", \"me\", \"ma\", \"mz\", \"na\", \"np\", \"nz\", \"ni\", \"ng\", \"om\", \"py\", \"pe\", \"ph\", \"pt\", \"ro\", \"sa\", \"sn\", \"rs\", \"sk\", \"si\", \"za\", \"kr\", \"lk\", \"th\", \"bs\", \"tt\", \"tn\", \"ua\", \"ae\", \"uy\", \"ve\", \"vn\", \"zm\", \"zw\", \"ly\", \"mobile-us\", \"mobile-uk\", \"mobile-ca\", \"mobile-de\", \"mobile-fr\", \"mobile-es\", \"mobile-it\", \"mobile-br\", \"mobile-au\", \"mobile-dk\", \"mobile-mx\", \"mobile-nl\", \"mobile-se\", \"mobile-tr\", \"mobile-in\", \"mobile-id\", \"mobile-il\", \"il-ext\", \"tr-ext\", \"dk-ext\", \"no-ext\", \"se-ext\", \"fi-ext\", \"ch-ext\", \"mobile-il-ext\", \"pa\", \"pk\", \"tw\", \"qa\"]).describe(\"Regional database to query (e.g., 'us', 'gb'); if omitted, data is retrieved from all regional databases.\").optional(),\n export_decode: z.number().int().default(1).describe(\"Set to 1 for a URL-decoded response, 0 for URL-encoded.\").optional(),\n export_escape: z.union([z.literal(0), z.literal(1)]).default(1).describe(\"Set to 1 to wrap output columns in double quotes, 0 to disable.\").optional(),\n export_columns: z.array(z.enum([\"Dt\", \"Db\", \"Ph\", \"Nq\", \"Cp\", \"Co\", \"Nr\", \"In\", \"Kd\"])).default([\"Dt\",\"Db\",\"Ph\",\"Nq\",\"Cp\",\"Co\",\"Nr\",\"In\",\"Kd\"]).describe(\"Specific columns for the report (e.g., 'Ph', 'Nq', 'Cp'). Defaults to all columns, including Date (Dt), Database (Db), Phrase (Ph), Search Volume (Nq), CPC (Cp), Competition (Co), Number of Results (Nr), Intent (In), and Keyword Difficulty (Kd).\").optional(),\n});\nexport const SemrushKeywordOverviewAllDatabasesOutput: z.ZodTypeAny = z.object({\n keyword_data: z.string().describe(\"Raw text response from the API with keyword overview data, typically CSV formatted.\"),\n});\n\nexport const semrushKeywordOverviewAllDatabases = action(\"SEMRUSH_KEYWORD_OVERVIEW_ALL_DATABASES\", {\n slug: \"semrush-keyword-overview-all-databases\",\n name: \"Keyword overview all databases\",\n description: \"Fetches a keyword overview from Semrush for a specified phrase, including metrics like search volume, CPC, and competition. Response is returned as a CSV-like string; parse headers and rows into a structured table before extracting values like Nq, Cp, or Kd.\",\n input: SemrushKeywordOverviewAllDatabasesInput,\n output: SemrushKeywordOverviewAllDatabasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAa;EAAU;EAAU;EAAU;EAAU;EAAU;EAAU;EAAU;EAAiB;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC5pC,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxH,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrJ,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,CAAC,QAAQ;EAAC;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;EAAK;CAAI,CAAC,CAAC,CAAC,SAAS,uPAAuP,CAAC,CAAC,SAAS;AAC7Z,CAAC;AACD,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,EACzH,CAAC;AAED,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|