Thank you so much for your answer. The explanation is pretty clear. Since my knowledge is not enough to execute all these advices I will ask more help and I will try to be more clear.
As you mentioned, these arrays are going to be extracted from 2 different requests and the array s will be compared to find out the the second request array has but first request array has not.
1- Here is the my 1. request :
{
"avg30_SALES_gte": 1,
"avg30_SALES_lte": 10000,
"buyBoxSellerId": [
"A2UUWCCR4G5EFA"
],
"current_BUY_BOX_SHIPPING_gte": 0,
"sort": [
[
"current_SALES",
"asc"
]
],
"productType": [
0,1
],
"perPage": 300,
"page": 0
}
1. request response
{
"timestamp": 1647990090084,
"tokensLeft": 258,
"refillIn": 27274,
"refillRate": 5,
"tokenFlowReduction": 0.9150000354275107,
"tokensConsumed": 10,
"processingTimeInMs": 145,
"asinList": [
"B00GHPAC1O",
"B00PXL9TG2",
"B006GP8SGG",
"B00PXL9ZCK",
"B00G3BRNZ0",
"B0002Z9QRG",
"B005SEKCN8",
"B004BTBP9Q",
"B005JVHIZ0",
"B005JVE2HC",
"B005SEKCOW",
"B005JVE20O",
"B00ELHT3PG",
"B005JVE286",
"B005JVE1S2",
"B081Y63G64",
"B000BO052S",
"B000BNYMX2",
"B00HSKW09Y",
"B00JIOUZ68",
"B00ELHT3M4",
"B081K728C4",
"B084QBSP9X",
"B081K8447W",
"B081K8MC2D",
"B000BO22OW",
"B00SVM7XS6"
],
"totalResults": 27
Here is my 2. request :
{
"avg30_SALES_gte": 1,
"avg30_SALES_lte": 10000,
"buyBoxSellerId": [
"A2UUWCCR4G5EFA"
],
"current_BUY_BOX_SHIPPING_gte": 0,
"sort": [
[
"current_SALES",
"asc"
]
],
"productType": [
0,1
],
"perPage": 300,
"page": 0
}
2. request response
{
"timestamp": 1647990394924,
"tokensLeft": 258,
"refillIn": 23149,
"refillRate": 5,
"tokenFlowReduction": 0.9150000354275107,
"tokensConsumed": 10,
"processingTimeInMs": 441,
"asinList": [
"B00GHPAC1O",
"B00PXL9TG2",
"B006GP8SGG",
"B00PXL9ZCK",
"B00G3BRNZ0",
"B0002Z9QRG",
"B005SEKCN8",
"B004BTBP9Q",
"B005JVHIZ0",
"B005JVE2HC",
"B005SEKCOW",
"B005JVE20O",
"B00ELHT3PG",
"B005JVE286",
"B005JVE1S2",
"B081Y63G64",
"B000BO052S",
"B000BNYMX2",
"B00HSKW09Y",
"B00JIOUZ68",
"B00ELHT3M4",
"B081K728C4",
"B084QBSP9X",
"B081K8447W",
"B081K8MC2D",
"B07KYWH2W8",
"B000BO22OW",
"B00SVM7XS6",
"B07WWJPZGQ",
"B084TRHM8J",
"B016MEFS4K"
],
"totalResults": 31
Lastly I have tried to create a variable for the first response but I was not able to get only array “asinList” and not able to recall the variable in the second request.
The test I used is :
let response = pm.response.json(),
savedData = JSON.stringify(response);
pm.collectionVariables.set("savedData", savedData);
My plan is :
1- Running the first request every day and getting dynamic array daily. After that running the second request by testing the different values in “asinList” array that request 2 has but request 1 hasn’t.
Note : 1. and 2. requests are identical. Response data is changing depending on request running time.
Thank you again.
Please let me know if you need other info.