Choose an endpoint
List the endpoints a project can run, with their parameters and credit cost.
GET /v1/endpoints lists every endpoint you can run, with its parameters:
{
"items": [
{
"id": "ENDPOINT_ID",
"name": "Company Database",
"path": "/v2/company",
"method": "GET",
"is_async": false,
"credit_cost": 1,
"billing_mode": "per_call",
"status": "active",
"params": [
{ "name": "query", "type": "string", "required": true, "description": "…", "deprecated": false }
]
}
]
}When the input is a search, the endpoint is usually the same site's detail endpoint, fed by a column of each result: see From a search to each product.
Every Piloterr endpoint can run in Dataflow, except those that take a file as input, those with no parameters, draft, deprecated or inactive ones, and those switched off for Dataflow. GET /v1/endpoints leaves them out, and creating a project on one of them, or on an unknown id, answers 422 endpoint_not_eligible. Endpoints that answer asynchronously are handled for you: Dataflow waits for the job, up to 10 minutes, and stores its result.