Download a run's results
The run's results as a file, in any format whatever the project's output_formats, as an attachment named run-{id}.{format}. JSON and NDJSON hold the result lines; CSV and XLSX flatten nested fields into dotted columns; CSV prefixes text that looks like a formula with ' (its header too), never a number; XLSX keeps the answer's numbers and booleans as typed cells and the rest as text cells, which never run. rows, status and http_status keep some rows, as /results filters them. While the run goes, the rows stored so far. The file is streamed, never zipped: JSON, NDJSON and CSV come gzipped (Content-Encoding: gzip) to a client that sends Accept-Encoding: gzip; XLSX is compressed already. For a link that downloads without the API key, GET /v1/runs/{id}/export/link.
ApiKeyAuthX-Api-Key<token>id*stringThe run's id (GET /v1/projects/{id}/runs, or the answer of POST /v1/projects/{id}/runs)
1 <= lengthformat?stringThe file's format
"json""json""ndjson""csv""xlsx"merged?stringThe run with its retries: one line per row, the latest attempt winning (from any run of the family), in a file named run-{first run's id}-merged.{format}; the filters then apply to each row's latest attempt
"true""false"rows?stringok: only the rows that succeeded (as status=ok), ko: only those that failed or were invalid (as status=failed). status wins when both are sent. Same columns as the full export; the file name ends in -ok or -ko.
"all""all""ok""ko"status?stringOnly the rows with this status; failed: those that failed or were invalid, as many as the run's ko
"ok""error""invalid""failed"http_status?integerOnly the rows the API answered with this HTTP status
100 <= value <= 599q?stringOnly the rows holding this text, as /results?q= finds them, but across the whole run: the file is streamed, without the search's limit. The file name ends in -search- and 8 characters of the search's hash
length <= 200columns?stringCSV and XLSX only: these columns, comma-separated, in this order, instead of all of them. input.* for every input column; _status, _http_status, _error, _credits (what the row cost); any column of the full export (organic_results, hq.city); or a dotted path into the answer, array positions as numbers (organic_results.0.title). A column no row has stays, empty. JSON and NDJSON ignore it. The file name ends in -columns- and 8 characters of their hash
length <= 8000The file (content-type of its format)
response?unknownapplication/octet-streamcurl -X GET 'https://dataflow.piloterr.com/v1/runs/string/export'null