Piloterr

Search results

Find the rows of a run that hold a text, in their input, parameters, error or answer.

q keeps the rows holding a text, whatever its case: in an input value, a parameter sent, the error, or the answer read as JSON text, its field names included. It never matches the row's number, status or HTTP status: use status and http_status for those, together with q if you like.

curl "https://dataflow.piloterr.com/v1/runs/RUN_ID/results?q=espresso&status=ok" \
  -H "x-api-key: YOUR_API_KEY"
{
  "total": 37,
  "items": [
    {
      "row": 112,
      "input": { "query": "espresso bar lyon" },
      "params": { "query": "espresso bar lyon" },
      "status": "ok",
      "http_status": 200,
      "duration_ms": 1043,
      "data": { "organic_results": [{ "position": 1, "title": "Best espresso in Lyon" }] },
      "credits": 1
    }
  ],
  "truncated": false,
  "searched": 18200
}

Results have no word index: a search reads the run's rows in order, those status and http_status keep, and stops after 50,000 rows or 128 MB of results per request, so a page always answers quickly.

  • searched is how many rows it read.
  • truncated: true means it stopped there: total then counts the matches among the rows read only, and later rows may match too. Narrow the search with status or http_status, or export it: an export with q reads the whole run.
  • A finished run keeps a search's matches for a while, so its next pages come at once.

Both fields are only there with q.

In the dashboard, the search box above a run's results does the same, and the run's Export menu then downloads the rows it found.