Piloterr
Référence de l'APIProjects

Read a project's URL or search now

POST
/v1/projects/{id}/input/preview

Reads the project's URL once, as a run would and with its stored headers, and returns what it holds (its first 20 rows); for a search, runs the first page of its first search with the project's key (one billed call of the search endpoint). Nothing is stored. For a file or a list, GET /v1/projects/{id}/input already holds the first rows. Counts against the workspace's 10 previews a minute, every preview route together.

Authentification

ApiKeyAuth
headerX-Api-Key<token>

Paramètres de chemin

id*string

The project's id

Length1 <= length

Corps de la réponse

What the URL or the search holds now (id is empty: nothing is stored)

application/json
  1. response
id*string
filename*string|null
columns*array<string>
row_count*integer
sample*array<>
sheets*array<string>
stats*
Example Request
curl -X POST 'https://dataflow.piloterr.com/v1/projects/string/input/preview'
Example Response
{
  "id": "",
  "filename": "asins.csv",
  "columns": [
    "asin",
    "marketplace"
  ],
  "row_count": 3,
  "sample": [
    {
      "asin": "B09DFCB66S",
      "marketplace": "com"
    },
    {
      "asin": "B08N5WRWNW",
      "marketplace": "com"
    },
    {
      "asin": "",
      "marketplace": "fr"
    }
  ],
  "sheets": [],
  "stats": {
    "empty_rows": 0,
    "duplicate_rows": 0,
    "deduplicated": false,
    "row_error_count": 0,
    "row_errors": []
  }
}