@seranking/n8n-nodes-seranking 1.5.7 → 1.5.8

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 CHANGED
@@ -184,7 +184,7 @@ The node will automatically test your credentials by making a test request to th
184
184
 
185
185
  ## Operations
186
186
 
187
- This node provides access to **20 SE Ranking resources** with **171 total operations** across two API types:
187
+ This node provides access to **20 SE Ranking resources** with **172 total operations** across two API types:
188
188
 
189
189
  ### Data API (6 resources, 65 operations)
190
190
 
@@ -274,7 +274,7 @@ This node provides access to **20 SE Ranking resources** with **171 total operat
274
274
 
275
275
  ---
276
276
 
277
- ### Project API (14 resources, 106 operations)
277
+ ### Project API (14 resources, 107 operations)
278
278
 
279
279
  ### Project Management (17 operations)
280
280
 
@@ -304,7 +304,7 @@ This node provides access to **20 SE Ranking resources** with **171 total operat
304
304
  - Delete Group - Remove a project group
305
305
  - Move Projects to Group - Move projects into a group
306
306
 
307
- ### AI Result Tracker (13 operations)
307
+ ### AI Result Tracker (14 operations)
308
308
 
309
309
  - Get Site Brand - Get brand name for a site
310
310
  - Save Site Brand - Set brand name for a site
@@ -319,6 +319,7 @@ This node provides access to **20 SE Ranking resources** with **171 total operat
319
319
  - Add Prompts - Add keywords/prompts to LLM engine
320
320
  - Delete Prompts - Remove prompts from LLM engine
321
321
  - Get Prompt Rankings - Prompt ranking data over time
322
+ - Get Prompt Answer - Full AI answer text, cited sources, detected brands, and organic URLs (Google AI Overview) for a tracked prompt on a given date
322
323
 
323
324
  ### Keyword Groups (5 operations)
324
325
 
@@ -718,7 +719,12 @@ For detailed API specifications, visit [SE Ranking API Documentation](https://se
718
719
 
719
720
  ## Version History
720
721
 
721
- ### v1.3.6 (Current)
722
+ ### v1.5.8 (Current)
723
+
724
+ * ✅ **NEW: Get Prompt Answer (AI Result Tracker)** - Returns full AI answer text, cited source URLs, detected brand mentions, and (for Google AI Overview) top organic URLs for a tracked prompt on a given date. Cost: 0 credits.
725
+ * 📝 **Note on SE Ranking docs quirk** - The endpoint's path param is documented as `keyword_id` but actually requires `k2site_llm_id` from `List Prompts`. The node field is labeled accordingly.
726
+
727
+ ### v1.3.6
722
728
 
723
729
  * 🔧 **FIX: Rate limiting compatibility** - Replaced setTimeout with n8n-workflow sleep function for n8n verified node compliance
724
730
 
@@ -793,7 +799,7 @@ For detailed API specifications, visit [SE Ranking API Documentation](https://se
793
799
 
794
800
  ## Features
795
801
 
796
- ✅ **171 Operations** - Comprehensive coverage across 20 resources (Data API + Project API)
802
+ ✅ **172 Operations** - Comprehensive coverage across 20 resources (Data API + Project API)
797
803
 
798
804
  ✅ **Pingback Webhooks** - Event-driven notifications for SERP task completion
799
805
 
@@ -55,6 +55,12 @@ exports.aiResultTrackerOperations = [
55
55
  description: 'Get tracking status and progress for an LLM engine',
56
56
  action: 'Get LLM status',
57
57
  },
58
+ {
59
+ name: 'Get Prompt Answer',
60
+ value: 'getPromptAnswer',
61
+ description: 'Get the full AI answer text, sources, brands, and organic URLs for a tracked prompt',
62
+ action: 'Get prompt answer',
63
+ },
58
64
  {
59
65
  name: 'Get Prompt Rankings',
60
66
  value: 'getPromptRankings',
@@ -127,6 +133,7 @@ exports.aiResultTrackerFields = [
127
133
  'addPrompts',
128
134
  'deletePrompts',
129
135
  'getPromptRankings',
136
+ 'getPromptAnswer',
130
137
  ],
131
138
  },
132
139
  },
@@ -262,7 +269,7 @@ exports.aiResultTrackerFields = [
262
269
  name: 'from',
263
270
  type: 'string',
264
271
  default: '',
265
- placeholder: '2024-01-01',
272
+ placeholder: '2026-01-01',
266
273
  description: 'Start date (YYYY-MM-DD). Defaults to current date.',
267
274
  },
268
275
  {
@@ -270,7 +277,7 @@ exports.aiResultTrackerFields = [
270
277
  name: 'to',
271
278
  type: 'string',
272
279
  default: '',
273
- placeholder: '2024-01-31',
280
+ placeholder: '2026-01-31',
274
281
  description: 'End date (YYYY-MM-DD). Defaults to current date.',
275
282
  },
276
283
  {
@@ -359,7 +366,7 @@ exports.aiResultTrackerFields = [
359
366
  name: 'dateFrom',
360
367
  type: 'string',
361
368
  default: '',
362
- placeholder: '2024-01-01',
369
+ placeholder: '2026-01-01',
363
370
  description: 'Start date (YYYY-MM-DD). Defaults to current date.',
364
371
  },
365
372
  {
@@ -367,7 +374,7 @@ exports.aiResultTrackerFields = [
367
374
  name: 'dateTo',
368
375
  type: 'string',
369
376
  default: '',
370
- placeholder: '2024-01-31',
377
+ placeholder: '2026-01-31',
371
378
  description: 'End date (YYYY-MM-DD). Defaults to current date.',
372
379
  },
373
380
  {
@@ -386,4 +393,41 @@ exports.aiResultTrackerFields = [
386
393
  },
387
394
  ],
388
395
  },
396
+ {
397
+ displayName: 'Keyword-LLM Link ID',
398
+ name: 'k2siteLlmId',
399
+ type: 'number',
400
+ required: true,
401
+ displayOptions: {
402
+ show: {
403
+ resource: ['aiResultTracker'],
404
+ operation: ['getPromptAnswer'],
405
+ },
406
+ },
407
+ default: 0,
408
+ description: 'Value of the <code>k2site_llm_id</code> field from List Prompts (the SE Ranking docs call this parameter <code>keyword_id</code>, but the endpoint actually expects <code>k2site_llm_id</code>)',
409
+ },
410
+ {
411
+ displayName: 'Additional Fields',
412
+ name: 'additionalFields',
413
+ type: 'collection',
414
+ placeholder: 'Add Field',
415
+ default: {},
416
+ displayOptions: {
417
+ show: {
418
+ resource: ['aiResultTracker'],
419
+ operation: ['getPromptAnswer'],
420
+ },
421
+ },
422
+ options: [
423
+ {
424
+ displayName: 'Date',
425
+ name: 'date',
426
+ type: 'string',
427
+ default: '',
428
+ placeholder: '2026-04-01',
429
+ description: 'Date of the cached answer (YYYY-MM-DD). Defaults to current date. Full text retained for last 30 days only.',
430
+ },
431
+ ],
432
+ },
389
433
  ];
@@ -108,6 +108,15 @@ async function AiResultTrackerOperations(index) {
108
108
  query.offset = additionalFields.offset;
109
109
  return await apiRequest_1.apiRequest.call(this, 'GET', `/sites/${siteId}/airt/llm/${llmId}/prompts/rankings`, {}, query, index);
110
110
  }
111
+ case 'getPromptAnswer': {
112
+ const llmId = this.getNodeParameter('llmId', index);
113
+ const k2siteLlmId = this.getNodeParameter('k2siteLlmId', index);
114
+ const additionalFields = this.getNodeParameter('additionalFields', index, {});
115
+ const query = {};
116
+ if (additionalFields.date)
117
+ query.date = additionalFields.date;
118
+ return await apiRequest_1.apiRequest.call(this, 'GET', `/sites/${siteId}/airt/llm/${llmId}/prompts/${k2siteLlmId}/answer`, {}, query, index);
119
+ }
111
120
  default:
112
121
  throw new Error(`Unknown AI Result Tracker operation: ${operation}`);
113
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seranking/n8n-nodes-seranking",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "n8n connector for SE Ranking API - AI Search, Backlinks, Domain Analysis, Keyword Research, Website Audit, Project Management, Project Groups, AI Result Tracker, Keyword Groups, Competitors, URL Tags, Analytics Traffic, Account System, Sub-Account Management, General Data, Marketing Plan, Backlink Checker, Search Volume",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/seranking/n8n-nodes-seranking",