Columns in CSV and Excel
How results become CSV and Excel columns, how to pick the columns, and how formulas are kept from running.
CSV and Excel files turn each result into one flat line:
| Column | Holds |
|---|---|
input.<column> | Each column of the input row: input.company, input.website… |
_status | ok, error or invalid. |
_http_status | The API's answer; empty for invalid rows. |
_error | The error message, if any. |
| The answer's fields | Nested objects become dotted columns: company_name, headquarters.city… |
- Lists of plain values are joined with
|:tag1 | tag2 | tag3. - Lists of objects are kept as JSON text in one cell.
- An answer that is a single value or a list goes in a
valuecolumn. nullvalues leave the cell empty.- The columns are every field found across the rows, in the order they first appear. A field missing from a row leaves its cell empty.
Use JSON or NDJSON to keep the answers exactly as the API sent them.
Pick the columns
columns lists the CSV and Excel columns you want, comma-separated, in that order, instead of all of them:
curl "https://dataflow.piloterr.com/v1/runs/RUN_ID/export?format=csv&columns=input.*,_status,_credits,organic_results.0.title" \
-H "x-api-key: YOUR_API_KEY" -o titles.csv| Name | Column |
|---|---|
input.* | Every input column, as input.<column>. |
_status, _http_status, _error | As in the full export. |
_credits | What the row cost (empty on rows stored before November 2026). |
| A column of the full export | company_name, headquarters.city… |
| A path into the answer | Dotted, list positions as numbers: organic_results.0.title is the first result's title. A list or an object there is written as JSON. |
A column no row has stays, empty. JSON and NDJSON ignore columns. A name holding a comma cannot be asked for.
In the dashboard, Columns above a run's results picks fields from the answers on the page, such as organic_results.0.title, and shows them in the table instead of the one-line preview. The choice is kept for the project, in your browser, and the run's CSV and Excel exports use it: every input column, _status, _http_status, _error, _credits, then the fields picked. The table also shows each row's credits.
Formula protection
Spreadsheet apps run a CSV cell that starts with =, +, - or @ as a formula, which a scraped page could abuse (CSV injection). In CSV exports, such text gets a leading ': it shows as text and never runs. So does text starting with their full-width forms (=, +, -, @), which some apps read the same way, with a tab or a carriage return, or with one of these signs after spaces or a leading ; or ,. The header row is treated the same way, since column names come from the answers. Numbers are never changed: an answer's -12 stays -12, while an input value -12, which is text, reads '-12.
Excel files need no such mark. Their cells keep their type: the answer's numbers and true or false are number and boolean cells, which add up and sort as such, and everything else is a text cell, which Excel shows as it is and never runs. A text value like =HYPERLINK("x") therefore reads exactly that, without a '.
JSON and NDJSON exports are left untouched.