Read a CSV File

Any way to read a basic CSV file?

That should be possible with the Spreadsheet node:
https://n8n.io/nodes/n8n-nodes-base.spreadsheetFile

Here an example:

{
  "nodes": [
    {
      "parameters": {
        "url": "http://www.dickimaw-books.com/latex/admin/html/examples/booklist.csv",
        "responseFormat": "file",
        "options": {}
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        533,
        372
      ]
    },
    {
      "parameters": {},
      "name": "Spreadsheet File",
      "type": "n8n-nodes-base.spreadsheetFile",
      "typeVersion": 1,
      "position": [
        683,
        372
      ]
    }
  ],
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

I’m lost on where you put that JSON. If I create a Spreadsheet File node, how do I tell the node the file path of the CSV?

You would simply copy the above, then click once in the n8n window and do CTRL + v (paste). It will then create the nodes and connections.

You would do the file loading with a different node. The “Read Binary File”
https://n8n.io/nodes/n8n-nodes-base.readBinaryFile

Awesome, that’s just what I was looking for! Thanks! :smiley:

Great to hear that it works. Have a good night!