Read a run's results
One line per row called (or skipped as invalid), in row order, a page at a time; total counts the lines matching the filters. While the run goes, the rows stored so far. A retry's results hold only its own rows: GET /v1/runs/{id}/export?merged=true gives the run with its retries. 410 once the results were deleted, 30 days after the run finished.
A search (q) reads the run's lines in row order, those the other filters keep, up to 50,000 lines or 128 MB per request: past that, truncated is true and total counts the matches among the searched lines only (narrow it with status or http_status, or export with q, which reads the whole run). A finished run's matches are kept a while, so its next pages are quick.
ApiKeyAuthX-Api-Key<token>id*stringThe run's id (GET /v1/projects/{id}/runs, or the answer of POST /v1/projects/{id}/runs)
1 <= lengthoffset?|Lines to skip, among those matching the filters
0 <= value0limit?integerLines to return
1 <= value <= 500100status?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, case-insensitive: in an input value, a parameter sent, the error, or the answer read as JSON text (its keys included). Not in the row's number, status or HTTP status. Empty: no search
length <= 200Results in input order
application/json- response
total*integeritems*array<>truncated?booleanWith q only: true when the search stopped at its limit, lines after the searched ones unread
searched?integerWith q only: the lines the search read, among those status and http_status keep
curl -X GET 'https://dataflow.piloterr.com/v1/runs/string/results'{
"total": 2,
"items": [
{
"row": 0,
"input": {
"asin": "B09DFCB66S",
"marketplace": "com"
},
"params": {
"query": "B09DFCB66S",
"domain": "com"
},
"status": "ok",
"http_status": 200,
"duration_ms": 1840,
"data": {
"asin": "B09DFCB66S",
"title": "PlayStation PS5 HW 1115 STANDARD_US - PlayStation 5",
"stock": "Only 5 left in stock - order soon."
},
"credits": 1
},
{
"row": 2,
"input": {
"asin": "",
"marketplace": "fr"
},
"params": {
"domain": "fr"
},
"status": "invalid",
"http_status": null,
"duration_ms": 0,
"error": "Missing required parameter: query",
"credits": 0
}
]
}