Dataflow
Run any Piloterr endpoint over a list of inputs, once or on a schedule, and get the results as a file, an alert or a webhook.
Dataflow calls a Piloterr endpoint once for every row of a list. You bring the list (a file, a list of values, a URL or the results of searches), pick the endpoint, say which column goes into which parameter, and Dataflow makes the calls for you: at a steady pace, with retries, and on a schedule if you want. You then download the results, or receive them by webhook.
Typical uses: enrich 20,000 companies from a CSV every Monday, check a list of domains every night, or scrape the same 300 pages every hour.
How it works
Add an input
Upload a CSV, TSV, Excel, ODS, Numbers, JSON or NDJSON file (up to 50 MB and 100,000 rows), paste up to 500 values, point to a URL that Dataflow reads again before each run, or run up to 100 searches (Amazon, Allegro…) whose results become the rows, then fetch each product with the site's product endpoint. See Inputs.
Create a project
A project ties the input to one endpoint, with a mapping: each parameter of the endpoint takes a column of the input, or a fixed value. It also sets the pace, a cap on the credits of each run, and the API key its calls go out with. See Mapping.
Run it
Start a run by hand, or give the project a schedule. Each row becomes one call to api.piloterr.com. Follow the run live, cancel it, retry its failed rows. See Runs.
Get the results
Download them as JSON, NDJSON, CSV or Excel, read them page by page with the API, receive them by webhook or queue, or have them emailed or uploaded to your own bucket with deliveries. See Results and exports.
Concepts
| Term | What it is |
|---|---|
| Input | The rows to process: an uploaded file, a list of values, a remote URL, or the results of searches. Each row is a set of named columns. |
| Project | One endpoint, one input, a mapping, settings (pace, cost cap, output formats, API key) and an optional schedule. |
| Mapping | For each parameter of the endpoint: a column of the input, or a fixed value. |
| Run | One pass over the input. It freezes the rows when it starts, so changing the input never changes a run in progress. |
| Schedule | When a project runs on its own: once, hourly, daily, weekly, monthly, or a cron expression in your time zone. |
| Alert channel | A Slack or Discord webhook, or email recipients, that hears about runs. |
| Webhook destination | Your HTTPS endpoint, which receives signed events and, if you want, the result rows. |
Credits
Dataflow costs nothing on top of the endpoints it calls. Every row is a normal call to the Piloterr API, billed like a call you make yourself: same credit cost, and only billable answers are charged. See Credits.
- By default, the calls use a key Dataflow creates for your workspace, named Dataflow (managed). They show up in your API logs under that key.
- A project can run with one of your own keys instead (
api_key_id, fromGET /v1/api-keys): its calls then count on that key, its limits and its logs. When that key is deactivated, expires or is deleted, the project is disabled (api_key_invalid) until you choose another one: it never falls back to the managed key. See API key. - Before a run starts, Dataflow checks that your balance covers what the run may spend: every row at the endpoint's credit cost, or less when the project caps the run (
402 insufficient_creditsotherwise). You can start anyway (force=true): the run pauses when credits run out and resumes on its own after a top-up. A run still paused after 7 days fails. - A project can cap the credits of each run (
max_cost_per_run). The cap counts that run's calls only, retries being runs of their own: once it is reached with rows left, no new row starts and the run fails with reasonmax_cost, over the cap by less than one row's cost. - A search input's searches are calls too, billed like any call. They run first, when the run starts: their cost is in the run's
credits(andsearch_credits), counts in its cap, and the balance check counts what is left after them. - For endpoints billed per result or per GB, a row's cost is only known from its answer: the balance check counts each row at the endpoint's
credit_cost, its minimum. The cap counts each row under way at the dearest row the run billed so far for an endpoint billed per result, atcredit_costfor one billed per GB. A project on such an endpoint must setmax_cost_per_run. - A project has no estimated cost of its own: see Know the cost before a run.
Managing projects, inputs and runs through the Dataflow API is free and does not count against your API key's quotas; only a search input costs something outside runs: previewing it, or saving a project that uses it, makes one call of the search endpoint. It has its own rate limit: see Limits.
Where to use it
- Dashboard: Dataflow in the menu of your dashboard, at
/app/<account>/dataflow. - API:
https://dataflow.piloterr.com, with the samex-api-keyas the Piloterr API, once that key has Dataflow access (below). See the API reference. - AI assistants: Claude, ChatGPT, Grok Build and other MCP clients, through the Piloterr MCP server's
dataflow_tools, with the same key access and no tool that deletes. See Quickstart with an AI assistant.
What a key can do
Each API key has its own Dataflow access, set when you create or edit it under API → API keys. Each level includes the ones above it:
| Access | What the key can do in the Dataflow API |
|---|---|
| None | Nothing but GET /v1/account. Keys created before Dataflow access existed start here. |
| Read | Read projects, runs, results and their exports, alerts and templates. |
| Read and write | Also create, edit, run, cancel and delete projects (without purge=true), upload inputs and manage alert channels. |
| Admin | Also webhooks (their signing secrets included), cloud storage connections, deliveries and their email addresses, and deleting a project for good (DELETE /v1/projects/{id}?purge=true). |
A key in the development category never gets what admin adds, whatever its access: webhooks, cloud storage, deliveries and purge=true send results out of your workspace or erase them, so they take a production key.
A route the key's access does not cover answers 403 api_key_scope; error.details says the access it needs (required) and the key's (access). GET /v1/account returns the key's dataflow_access. Only members who can edit Dataflow projects can give a key Read and write or Admin.
The Dataflow (managed) key the dashboard uses has admin access. It is shown by its last 4 characters only and works for Dataflow alone: the Piloterr API refuses it (403) on any call Dataflow did not make itself. Use one of your own keys for your scripts.