Référence de l'APIProjects
Read a project's URL or search now
POST
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.
ApiKeyAuthheader
X-Api-Key<token>id*stringThe project's id
Length
1 <= lengthWhat the URL or the search holds now (id is empty: nothing is stored)
application/json- response
id*stringfilename*string|nullcolumns*array<string>row_count*integersample*array<>sheets*array<string>stats*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": []
}
}