@adobe/spacecat-shared-ahrefs-client 1.8.1 → 1.9.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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/index.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-ahrefs-client-v1.9.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.8.2...@adobe/spacecat-shared-ahrefs-client-v1.9.0) (2025-06-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* fetch keyword_country and language fields, too ([#785](https://github.com/adobe/spacecat-shared/issues/785)) ([1266066](https://github.com/adobe/spacecat-shared/commit/1266066b0cdc19dede99db40b62bd39dff3c4ed3))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-ahrefs-client-v1.8.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.8.1...@adobe/spacecat-shared-ahrefs-client-v1.8.2) (2025-06-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* organic keyword import missing the url ([#784](https://github.com/adobe/spacecat-shared/issues/784)) ([ce82ed6](https://github.com/adobe/spacecat-shared/commit/ce82ed672bee61e60da713553b6c9de8f2ba32d5))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-ahrefs-client-v1.8.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-ahrefs-client-v1.8.0...@adobe/spacecat-shared-ahrefs-client-v1.8.1) (2025-06-02)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -22,9 +22,12 @@ const getLimit = (limit, upperLimit) => Math.min(limit, upperLimit);
|
|
|
22
22
|
|
|
23
23
|
export const ORGANIC_KEYWORDS_FIELDS = /** @type {const} */ ([
|
|
24
24
|
'keyword',
|
|
25
|
+
'keyword_country',
|
|
26
|
+
'language',
|
|
25
27
|
'sum_traffic',
|
|
26
28
|
'volume',
|
|
27
29
|
'best_position',
|
|
30
|
+
'best_position_url',
|
|
28
31
|
'cpc',
|
|
29
32
|
'last_update',
|
|
30
33
|
'is_branded',
|
|
@@ -218,6 +221,7 @@ export default class AhrefsAPIClient {
|
|
|
218
221
|
if (!['prefix', 'exact'].includes(mode)) {
|
|
219
222
|
throw new Error(`Invalid mode: ${mode}`);
|
|
220
223
|
}
|
|
224
|
+
this.log.info(`Getting organic keywords for ${url} with country ${country}, mode ${mode}, limit ${limit}, excludeBranded ${excludeBranded} and select:${ORGANIC_KEYWORDS_FIELDS.join(',')}`);
|
|
221
225
|
|
|
222
226
|
const queryParams = {
|
|
223
227
|
country,
|