Piloterr
API referenceRuns

Read a run's results

GET
/v1/runs/{id}/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.

Authorization

ApiKeyAuth
headerX-Api-Key<token>

Path Parameters

id*string

The run's id (GET /v1/projects/{id}/runs, or the answer of POST /v1/projects/{id}/runs)

Length1 <= length

Query Parameters

offset?|

Lines to skip, among those matching the filters

Range0 <= value
Default0
limit?integer

Lines to return

Range1 <= value <= 500
Default100
status?string

Only the rows with this status; failed: those that failed or were invalid, as many as the run's ko

Value in"ok""error""invalid""failed"
http_status?integer

Only the rows the API answered with this HTTP status

Range100 <= value <= 599
q?string

Only 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

Lengthlength <= 200

Response Body

Results in input order

application/json
  1. response
total*integer
items*array<>
truncated?boolean

With q only: true when the search stopped at its limit, lines after the searched ones unread

searched?integer

With q only: the lines the search read, among those status and http_status keep

Example Request
curl -X GET 'https://dataflow.piloterr.com/v1/runs/string/results'
Example Response
{
  "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
    }
  ]
}