The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Dynamic API Call Caching",
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-496,
-352
],
"id": "ef27f4ff-e228-46eb-ba45-5c2b92ee611f"
},
{
"parameters": {
"url": "https://jsonplaceholder.typicode.com/posts",
"options": {}
},
"name": "Get All Posts",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
-288,
-352
],
"id": "04a9a438-e0b9-406f-8081-5806e749461d"
},
{
"parameters": {
"force": false,
"cacheKeyFields": "id",
"bucket": "my-bucket",
"cacheDir": "$smartcache/dynamic-api-calls"
},
"name": "SmartCache",
"type": "n8n-nodes-smartcache.smartCache",
"typeVersion": 1,
"position": [
160,
-336
],
"id": "49d54524-e1a0-4dff-b727-b0814f0354f4"
},
{
"parameters": {
"url": "=https://jsonplaceholder.typicode.com/posts/{{$json.id}}",
"options": {}
},
"name": "Get Post Details",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
352,
-240
],
"id": "ef452a82-efba-4794-bcad-ea46d40fa6dd"
},
{
"parameters": {},
"name": "Final Result",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
544,
-336
],
"id": "1e80a65f-bd21-4a3d-acd9-ba7de0860323"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "967d140d-00c8-4e93-9f20-6ba0d68e8e96",
"leftValue": "={{ $json.userId }}",
"rightValue": 1,
"operator": {
"type": "number",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.filter",
"typeVersion": 2.2,
"position": [
-80,
-352
],
"id": "bae5a0d2-565f-44cb-9572-d1add81f53c0",
"name": "Posts Created by User 1"
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Get All Posts",
"type": "main",
"index": 0
}
]
]
},
"Get All Posts": {
"main": [
[
{
"node": "Posts Created by User 1",
"type": "main",
"index": 0
}
]
]
},
"SmartCache": {
"main": [
[
{
"node": "Final Result",
"type": "main",
"index": 0
}
],
[
{
"node": "Get Post Details",
"type": "main",
"index": 0
}
]
]
},
"Get Post Details": {
"main": [
[
{
"node": "SmartCache",
"type": "main",
"index": 1
}
]
]
},
"Posts Created by User 1": {
"main": [
[
{
"node": "SmartCache",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "f3699e56-74d3-4a22-b9ab-a8c48289f856",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "lpjnl6TNpHfYZICG",
"tags": []
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Dynamic API Call Caching. Uses httpRequest, n8n-nodes-smartcache. Event-driven trigger; 6 nodes.
Source: https://github.com/skadaai/n8n-nodes-smartcache/blob/dbc2bc515b9b6e2418f0e5d51eb8a2f79a3b6258/workflows/api_caching.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow allows you to import any workflow from a file or another n8n instance and map the credentials easily. A multi-form setup guides you through the entire process At the beginning you have t
[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration. Uses splitInBatches, stickyNote, httpRequest, html. Event-driven trigger; 56 nodes.
[](https://youtu.be/c7yCZhmMjtI)
This automation organizes your n8n workflows files into categorizes (Active, Template, Done, Archived) and uploads them directly to a categorized Google Drive folders. It is designed to help users man
Create Animated Stories using GPT-4o-mini, Midjourney, Kling and Creatomate API. Uses httpRequest. Event-driven trigger; 51 nodes.