mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 14:09:43 -08:00
3b2078c3ca
Co-authored-by: Michael Kret <michael.k@radency.com>
1869 lines
38 KiB
JSON
1869 lines
38 KiB
JSON
{
|
|
"name": "HTTP Pagination Test",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
},
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 3
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "c42631bf-5122-4b84-86c7-00ad9dcdcdfb",
|
|
"name": "Page Limit",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
1980
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true,
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "337101b7-9815-466b-8920-b69529c90c73",
|
|
"name": "Response Empty",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
2160
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
},
|
|
"paginationCompleteWhen": "receiveSpecificStatusCodes",
|
|
"statusCodesWhenComplete": "404",
|
|
"limitPagesFetched": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "a2953ca3-e17c-4e83-8bf0-149587c14088",
|
|
"name": "Receive Status Code",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
2320
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true,
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
},
|
|
"paginationCompleteWhen": "other",
|
|
"completeExpression": "={{ $response.statusCode === 404 }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "aad6795d-4156-445b-8b6c-968692ed3620",
|
|
"name": "Complete Expression",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
2500
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Next URL\nResponse Format: JSON",
|
|
"height": 223.6542431762359,
|
|
"width": 365.5274479049966
|
|
},
|
|
"id": "036cf1e4-0534-4422-9aea-36a9bb308e79",
|
|
"name": "Sticky Note",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
920,
|
|
3100
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Update a Parameter in Each Request\nResponse Format: JSON",
|
|
"height": 1140.0832129820226,
|
|
"width": 354.2110090941684
|
|
},
|
|
"id": "e36564a0-d1d9-4f15-9c78-b4713f75b13f",
|
|
"name": "Sticky Note1",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
927,
|
|
1901
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "4"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true,
|
|
"responseFormat": "text"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"paginationCompleteWhen": "receiveSpecificStatusCodes",
|
|
"statusCodesWhenComplete": "404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "83ca19dd-f110-4b36-8c52-836c0b501a7e",
|
|
"name": "Response Empty - Text",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
3420
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "4"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 3
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "2b770b1b-0c66-4668-a037-f7b2986fd793",
|
|
"name": "Response Empty Next with Max Pages",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
3160
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Next URL\nResponse Format: Text",
|
|
"height": 388.6542431762359,
|
|
"width": 363.5274479049966
|
|
},
|
|
"id": "fee3b5a3-9af9-44d6-8814-a8334e29ed0e",
|
|
"name": "Sticky Note2",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
920,
|
|
3360
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true,
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
},
|
|
"paginationCompleteWhen": "other",
|
|
"completeExpression": "={{ $response.statusCode === 404 }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "d91beb91-8716-4817-a729-91114a8d4a63",
|
|
"name": "Complete Expression - JSON",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
1700
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Update a Parameter in Each Request\nResponse Format: JSON",
|
|
"height": 232.15942469988397,
|
|
"width": 323.21100909416833
|
|
},
|
|
"id": "693b1adb-1be8-4e87-bad8-23936c685155",
|
|
"name": "Sticky Note3",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
920,
|
|
1632.366284408126
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "4"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"fullResponse": true,
|
|
"neverError": true,
|
|
"responseFormat": "text"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"paginationCompleteWhen": "receiveSpecificStatusCodes",
|
|
"statusCodesWhenComplete": "404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "72a3ce0d-f428-41cc-a93e-8692f5ed97f9",
|
|
"name": "Response Empty - Include Full Response",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
3600
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true,
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "b579b38a-ac67-40ab-ab82-b465dc6387dc",
|
|
"name": "Pagination Off",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
3820
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Pagination Off",
|
|
"height": 373,
|
|
"width": 363
|
|
},
|
|
"id": "601cef96-0ac0-4890-b1c3-8ca15fbc2571",
|
|
"name": "Sticky Note4",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
920,
|
|
3780
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true,
|
|
"responseFormat": "json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "bdd6cf22-746e-4fda-84b2-df178f5d3dab",
|
|
"name": "Pagination Not Set",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
4000
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Detect identical responses\nThrow then error",
|
|
"height": 232.15942469988397,
|
|
"width": 394.89100909416834
|
|
},
|
|
"id": "1e7bfcfb-93d0-4ee2-8c0f-380ee2dd7fcb",
|
|
"name": "Sticky Note5",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
920,
|
|
4220
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"fields": {
|
|
"values": [
|
|
{
|
|
"name": "Error",
|
|
"stringValue": "={{ $json.error.name }}"
|
|
}
|
|
]
|
|
},
|
|
"include": "none",
|
|
"options": {}
|
|
},
|
|
"id": "35a1f1f3-d701-4252-9dea-5b2b0ef7f32f",
|
|
"name": "Edit Fields",
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 3.2,
|
|
"position": [
|
|
1160,
|
|
4300
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "does_not_matter",
|
|
"value": "0"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "12f6310f-e88e-490f-9dd1-2012586bf9c9",
|
|
"name": "Loop",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
4300
|
|
],
|
|
"continueOnFail": true
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Next URL\nResponse Format: Autodetect\nActual Response Format: JSON",
|
|
"height": 650.4724697091658,
|
|
"width": 323.21100909416833
|
|
},
|
|
"id": "0074b955-3217-4fc9-b7c4-58f11fc323c1",
|
|
"name": "Sticky Note6",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
900,
|
|
507.8499967658788
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "# Response Format: Autodetect\n",
|
|
"width": 545.8929725020898
|
|
},
|
|
"id": "e7b7440f-aad2-49df-9c10-695497aec7c5",
|
|
"name": "Sticky Note7",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
280,
|
|
708
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "# Response Format: set",
|
|
"width": 545.8929725020898
|
|
},
|
|
"id": "1ad4fad8-4c66-4afe-8893-2727c852ba44",
|
|
"name": "Sticky Note8",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
1640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "415e52cd-bdb4-42a8-af18-fec7eb9e6a1f",
|
|
"name": "Complete Expression - JSON Autodetect set",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
960,
|
|
600
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "a111a0a4-ae9c-4b27-af04-5ab9584798ae",
|
|
"name": "Complete Expression - JSON unset",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
960,
|
|
780
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "aaa4d56b-5d72-4ecb-bcc4-9ccdf0c7c139",
|
|
"name": "No Operation, do nothing1",
|
|
"type": "n8n-nodes-base.noOp",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
500,
|
|
2500
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "6fbde1fb-8f7d-4947-84f1-2695b919cc43",
|
|
"name": "Data 2",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
200,
|
|
1980
|
|
]
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"id": "f13379f2-5867-46d9-9af1-48b9ff9524d0",
|
|
"name": "Data 1",
|
|
"type": "n8n-nodes-base.noOp",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
520,
|
|
960
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "4"
|
|
}
|
|
]
|
|
},
|
|
"sendHeaders": true,
|
|
"headerParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "content-type",
|
|
"value": "text/plain"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"neverError": true
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"paginationCompleteWhen": "receiveSpecificStatusCodes",
|
|
"statusCodesWhenComplete": "404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "bcbb8fe5-1613-4dc6-a92c-89f1415c1821",
|
|
"name": "Response Empty - Text1",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
960,
|
|
1260
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"content": "### Next URL\nResponse Format: Autodetect\nActual Response Format: text",
|
|
"height": 437.60980047313967,
|
|
"width": 323.31395441111135
|
|
},
|
|
"id": "4e73a489-5c9f-4b8f-a32f-ad6d91fc187a",
|
|
"name": "Sticky Note9",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
900,
|
|
1173.7738085909446
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"sendQuery": true,
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "4"
|
|
}
|
|
]
|
|
},
|
|
"sendHeaders": true,
|
|
"headerParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "content-type",
|
|
"value": "text/plain"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"fullResponse": true,
|
|
"neverError": true
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"nextURL": "={{ $response.headers[\"next-url\"] }}",
|
|
"paginationCompleteWhen": "receiveSpecificStatusCodes",
|
|
"statusCodesWhenComplete": "404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "c02661c0-b6e7-45f8-8049-ef1a97f4b590",
|
|
"name": "Response Empty - Include Full Response1",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
960,
|
|
1440
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"method": "POST",
|
|
"url": "https://dummyjson.com/users",
|
|
"sendBody": true,
|
|
"contentType": "multipart-form-data",
|
|
"bodyParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
},
|
|
{
|
|
"name": "skip",
|
|
"value": "0"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"type": "body",
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
},
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 3
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "69569627-0e1b-45e0-a279-bf53c3f99c8f",
|
|
"name": "POST Form Data",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
2860
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"method": "POST",
|
|
"url": "https://dummyjson.com/users",
|
|
"sendBody": true,
|
|
"bodyParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "limit",
|
|
"value": "3"
|
|
},
|
|
{
|
|
"name": "skip",
|
|
"value": "0"
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"response": {
|
|
"response": {
|
|
"responseFormat": "json"
|
|
}
|
|
},
|
|
"pagination": {
|
|
"pagination": {
|
|
"parameters": {
|
|
"parameters": [
|
|
{
|
|
"type": "body",
|
|
"name": "skip",
|
|
"value": "={{ $pageCount * 3 }}"
|
|
}
|
|
]
|
|
},
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 3
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "c68c8649-298e-42fe-bc61-df4a4b9d5c39",
|
|
"name": "POST JSON",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
980,
|
|
2680
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "https://dummyjson.com/users",
|
|
"options": {
|
|
"pagination": {
|
|
"pagination": {
|
|
"paginationMode": "responseContainsNextURL",
|
|
"limitPagesFetched": true,
|
|
"maxRequests": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": "c004d7eb-d755-4d65-b359-6e0ddab0406d",
|
|
"name": "Complete Expression - JSON unset1",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.1,
|
|
"position": [
|
|
960,
|
|
980
|
|
],
|
|
"onError": "continueRegularOutput"
|
|
}
|
|
],
|
|
"pinData": {
|
|
"Page Limit": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
}
|
|
],
|
|
"Response Empty": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 9
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 10
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 11
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 12
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 13
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 14
|
|
}
|
|
}
|
|
],
|
|
"Receive Status Code": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 9
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 10
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 11
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 12
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 13
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 14
|
|
}
|
|
}
|
|
],
|
|
"Complete Expression": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 9
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 10
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 11
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 12
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 13
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 14
|
|
}
|
|
}
|
|
],
|
|
"Response Empty - Text": [
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":0},{\"id\":1},{\"id\":2},{\"id\":3}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":4},{\"id\":5},{\"id\":6},{\"id\":7}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":8},{\"id\":9},{\"id\":10},{\"id\":11}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":12},{\"id\":13},{\"id\":14}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[]"
|
|
}
|
|
}
|
|
],
|
|
"Response Empty Next with Max Pages": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 9
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 10
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 11
|
|
}
|
|
}
|
|
],
|
|
"Response Empty - Include Full Response": [
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":0},{\"id\":1},{\"id\":2},{\"id\":3}]",
|
|
"headers": {
|
|
"content-type": "application/json",
|
|
"next-url": "https://dummyjson.com/users?skip=4&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":4},{\"id\":5},{\"id\":6},{\"id\":7}]",
|
|
"headers": {
|
|
"content-type": "application/json",
|
|
"next-url": "https://dummyjson.com/users?skip=8&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":8},{\"id\":9},{\"id\":10},{\"id\":11}]",
|
|
"headers": {
|
|
"content-type": "application/json",
|
|
"next-url": "https://dummyjson.com/users?skip=12&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":12},{\"id\":13},{\"id\":14}]",
|
|
"headers": {
|
|
"content-type": "application/json",
|
|
"next-url": "https://dummyjson.com/users?skip=16&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[]",
|
|
"headers": {
|
|
"content-type": "application/json",
|
|
"next-url": "https://dummyjson.com/users?skip=20&limit=4"
|
|
},
|
|
"statusCode": 404,
|
|
"statusMessage": null
|
|
}
|
|
}
|
|
],
|
|
"Complete Expression - JSON": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 9
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 10
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 11
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 12
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 13
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 14
|
|
}
|
|
}
|
|
],
|
|
"Pagination Off": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
}
|
|
],
|
|
"Pagination Not Set": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
}
|
|
],
|
|
"Edit Fields": [
|
|
{
|
|
"json": {
|
|
"Error": "NodeOperationError"
|
|
}
|
|
}
|
|
],
|
|
"Complete Expression - JSON Autodetect set": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
}
|
|
],
|
|
"Complete Expression - JSON unset": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
}
|
|
],
|
|
"Response Empty - Text1": [
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":0},{\"id\":1},{\"id\":2},{\"id\":3}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":4},{\"id\":5},{\"id\":6},{\"id\":7}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":8},{\"id\":9},{\"id\":10},{\"id\":11}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":12},{\"id\":13},{\"id\":14}]"
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[]"
|
|
}
|
|
}
|
|
],
|
|
"Response Empty - Include Full Response1": [
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":0},{\"id\":1},{\"id\":2},{\"id\":3}]",
|
|
"headers": {
|
|
"content-type": "text/plain",
|
|
"next-url": "https://dummyjson.com/users?skip=4&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":4},{\"id\":5},{\"id\":6},{\"id\":7}]",
|
|
"headers": {
|
|
"content-type": "text/plain",
|
|
"next-url": "https://dummyjson.com/users?skip=8&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":8},{\"id\":9},{\"id\":10},{\"id\":11}]",
|
|
"headers": {
|
|
"content-type": "text/plain",
|
|
"next-url": "https://dummyjson.com/users?skip=12&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[{\"id\":12},{\"id\":13},{\"id\":14}]",
|
|
"headers": {
|
|
"content-type": "text/plain",
|
|
"next-url": "https://dummyjson.com/users?skip=16&limit=4"
|
|
},
|
|
"statusCode": 200,
|
|
"statusMessage": null
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"data": "[]",
|
|
"headers": {
|
|
"content-type": "text/plain",
|
|
"next-url": "https://dummyjson.com/users?skip=20&limit=4"
|
|
},
|
|
"statusCode": 404,
|
|
"statusMessage": null
|
|
}
|
|
}
|
|
],
|
|
"POST Form Data": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
}
|
|
],
|
|
"POST JSON": [
|
|
{
|
|
"json": {
|
|
"id": 0
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 1
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 2
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 3
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 4
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 5
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 6
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 7
|
|
}
|
|
},
|
|
{
|
|
"json": {
|
|
"id": 8
|
|
}
|
|
}
|
|
],
|
|
"Complete Expression - JSON unset1": [
|
|
{
|
|
"json": {
|
|
"error": {
|
|
"message": "'' is not a valid URL.",
|
|
"name": "NodeOperationError",
|
|
"description": "Make sure the \"Next URL\" parameter evaluates to a valid URL.",
|
|
"context": {}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"connections": {
|
|
"Loop": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Edit Fields",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"No Operation, do nothing1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Receive Status Code",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Complete Expression",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Response Empty Next with Max Pages",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Response Empty - Text",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Response Empty - Include Full Response",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Pagination Off",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Pagination Not Set",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Loop",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Response Empty",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Page Limit",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Complete Expression - JSON",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "POST JSON",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "POST Form Data",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Data 2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Data 1",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "No Operation, do nothing1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Data 1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Complete Expression - JSON Autodetect set",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Complete Expression - JSON unset",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Response Empty - Text1",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Response Empty - Include Full Response1",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Complete Expression - JSON unset1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"versionId": "5189ec73-b659-4740-83f5-d5bf3995f5df",
|
|
"meta": {
|
|
"templateCredsSetupCompleted": true,
|
|
"instanceId": "27cc9b56542ad45b38725555722c50a1c3fee1670bbb67980558314ee08517c4"
|
|
},
|
|
"id": "4WORX7JyBFP94dXM",
|
|
"tags": []
|
|
}
|