Documentation Index Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
Use this file to discover all available pages before exploring further.
The CSV Tools connector provides operations for working with CSV data — parsing, converting to and from JSON, filtering rows, and transforming columns.
No connection required — this utility connector works out of the box.
to-json — Convert CSV to JSON
Example request: {
"csv" : "name,age,city \n Alice,30,Portland \n Bob,25,Seattle"
}
Example response: {
"items" : [
{ "name" : "Alice" , "age" : 30 , "city" : "Portland" },
{ "name" : "Bob" , "age" : 25 , "city" : "Seattle" }
],
"count" : 2
}
from-json — Convert JSON to CSV
Array of objects to convert.
Specific columns to include.
Example request: {
"data" : [
{ "name" : "Alice" , "age" : 30 , "city" : "Portland" },
{ "name" : "Bob" , "age" : 25 , "city" : "Seattle" }
],
"columns" : [ "name" , "city" ]
}
Example response: {
"csv" : "name,city \n Alice,Portland \n Bob,Seattle" ,
"rows" : 2
}
parse — Parse CSV with options
Parse CSV with detailed configuration. Auto-convert values to numbers.
Only parse the first N rows.
Example request: {
"csv" : "product;price;stock \n Widget;9.99;150 \n Gadget;24.50;75 \n Doohickey;4.99;300" ,
"delimiter" : ";" ,
"preview" : 2
}
Example response: {
"items" : [
{ "product" : "Widget" , "price" : 9.99 , "stock" : 150 },
{ "product" : "Gadget" , "price" : 24.5 , "stock" : 75 }
],
"count" : 2 ,
"meta" : {
"delimiter" : ";" ,
"linebreak" : " \n " ,
"fields" : [ "product" , "price" , "stock" ]
}
}
filter — Filter rows by condition
Column name to filter on.
Operator: equals, not_equals, contains, not_contains, gt, gte, lt, lte, or regex.
Example request: {
"csv" : "name,age,city \n Alice,30,Portland \n Bob,25,Seattle \n Carol,35,Portland" ,
"column" : "city" ,
"operator" : "equals" ,
"value" : "Portland"
}
Example response: {
"csv" : "name,age,city \n Alice,30,Portland \n Carol,35,Portland" ,
"rows" : 2
}
Sort order for each column: asc or desc.
Example request: {
"csv" : "name,age,city \n Alice,30,Portland \n Bob,25,Seattle \n Carol,35,Portland" ,
"columns" : [ "city" , "age" ],
"orders" : [ "asc" , "desc" ]
}
Example response: {
"csv" : "name,age,city \n Carol,35,Portland \n Alice,30,Portland \n Bob,25,Seattle" ,
"rows" : 3
}
dedupe — Remove duplicate rows
Columns to check for uniqueness (all columns if omitted).
Keep the first occurrence (or last if false).
Example request: {
"csv" : "name,department \n Alice,Engineering \n Bob,Sales \n Carol,Engineering \n Dave,Sales" ,
"columns" : [ "department" ]
}
Example response: {
"csv" : "name,department \n Alice,Engineering \n Bob,Sales" ,
"rows" : 2
}
transform — Rename, reorder, or select columns
merge — Merge multiple CSVs
Array of CSV strings to merge.
Example request: {
"csvs" : [
"name,role \n Alice,Admin" ,
"name,role \n Bob,User \n Carol,Editor"
]
}
Example response: {
"csv" : "name,role \n Alice,Admin \n Bob,User \n Carol,Editor" ,
"rows" : 3
}
info — Get CSV statistics
Number of sample rows to include.
Example request: {
"csv" : "name,age,city \n Alice,30,Portland \n Bob,25,Seattle \n Carol,35,Portland \n Dave,28,Denver" ,
"sampleSize" : 2
}
Example response: {
"rowCount" : 4 ,
"columnCount" : 3 ,
"columns" : [ "name" , "age" , "city" ],
"delimiter" : "," ,
"sample" : [
{ "name" : "Alice" , "age" : 30 , "city" : "Portland" },
{ "name" : "Bob" , "age" : 25 , "city" : "Seattle" }
]
}
add-column — Add a new column
value
string | number | boolean
required
Fixed value or column reference (e.g., $existingColumn).
Example request: {
"csv" : "name,age \n Alice,30 \n Bob,25" ,
"columnName" : "status" ,
"value" : "active"
}
Example response: {
"csv" : "name,age,status \n Alice,30,active \n Bob,25,active" ,
"rows" : 2
}
slice — Get a range of rows
Example request: {
"csv" : "name,age \n Alice,30 \n Bob,25 \n Carol,35 \n Dave,28" ,
"start" : 1 ,
"end" : 3
}
Example response: {
"csv" : "name,age \n Bob,25 \n Carol,35" ,
"rows" : 2
}