n8n Lab

Access the First Item of an Array in n8n

Your API request returned a list of line items in an order. In JavaScript and n8n, arrays start at index 0. Extract the name of the first item.

Incoming Payload / Data:

{
  "items": [
    { "name": "Pro Subscription", "price": 49 },
    { "name": "Setup Fee", "price": 99 }
  ]
}
$json.
Pro Store

Ready-to-Use Make & n8n Blueprints

Stop building from scratch. Download production-ready automation templates, AI agent workflows, and JSON packs.

Explore Blueprints Store →

Looking for another topic?

Use our interactive search drawer to filter exercises by Make.com or n8n.