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": "HTTP API + Code Processing",
"nodes": [
{
"id": "manual-trigger",
"type": "n8n-nodes-base.manualTrigger",
"position": [
250,
300
],
"parameters": {}
},
{
"id": "http-request",
"type": "n8n-nodes-base.httpRequest",
"position": [
450,
300
],
"parameters": {
"method": "GET",
"url": "https://api.github.com/events",
"options": {}
}
},
{
"id": "code-process",
"type": "n8n-nodes-base.code",
"position": [
650,
300
],
"parameters": {
"jsCode": "// Process the API response\nconst items = $input.all()[0].json;\nconst filtered = items.slice(0, 5).map(event => ({\n type: event.type,\n actor: event.actor?.login,\n repo: event.repo?.name,\n created: event.created_at\n}));\nreturn filtered.map(item => ({ json: item }));"
}
}
],
"connections": {
"manual-trigger": {
"main": [
[
{
"node": "http-request",
"type": "main",
"index": 0
}
]
]
},
"http-request": {
"main": [
[
{
"node": "code-process",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
HTTP API + Code Processing. Uses httpRequest. Event-driven trigger; 3 nodes.
Source: https://github.com/stackconsult/n8n-workflows/blob/main/http-api-code.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 listens for an “Approved” label on a Trello card, reads the AI draft bookkeeping JSON from card comments, and posts the corresponding transaction to Xero. It then adds a Xero deep link b
02_LLM_Pipeline v1.0. Uses executeWorkflowTrigger, httpRequest, seaTable. Event-driven trigger; 65 nodes.
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)