Run a published extraction template
POST/v1/template
Runs one of the published templates against a supported site and returns records shaped by that template's output schema. Costs a flat 5 credits per execution.
Request body
templatestringrequiredGET /v1/templates.paramsobjectrequireddata.data.params_schema from GET /v1/templates/{template_id}; it describes the whole request body (template plus params), and unknown keys are rejected.Identifier key per template:
| Template | Key | Format |
|---|---|---|
amazon_product | asin | 10 uppercase letters/digits |
amazon_search | query | 1–256 characters |
amazon_bestsellers | url | https://www.amazon.com/... best-sellers ranking page |
walmart_product | item_id | 5–15 digits |
walmart_search | query | 1–256 characters |
walmart_category | url | Walmart category page |
Common optional params keys:
| Key | Type | Default | Description |
|---|---|---|---|
zipcode | string | none | US 5-digit ZIP code used for pricing and availability. When omitted the target site decides the delivery location — flowda deliberately does not inject a default. |
pages | integer | 1 | Which results page to collect. List templates only; sending it to a detail template is rejected. |
timeout_ms | integer | 60000 | Execution budget, 1000 … 120000. |
Reading the result
data.outputsis an array of records (ornullwhen there was no content); detail templates return one record.data.meta.fieldsexplains the record fields that apply to this template, keyed by field path (for examplevariants[].price) — use it to render labels in your own UI. Descriptions are provided by the template's published schema.- A successful but empty result is not a failure:
data.successistrue,data.outputsisnull, and the 5 credits are still charged. - A failed execution reports
data.success: falsewith a platformcode(for exampleTEMPLATE_MISMATCHorTARGET_SITE_ERROR) and is not charged.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- 504
Template result, possibly a platform-level failure in data
Response Headers
Always no-store — no intermediary may cache these responses.
The fetch service's own request identifier for this call. Quote it together with
the envelope's request_id in support requests.
The request was rejected — see the error table for the code
The credential is missing, invalid, or expired
The credential is valid but not allowed to do this
The target does not exist, or does not belong to this account
Too many requests — back off and retry
A fault on our side — retry later, and contact us if it persists
The fetch service did not answer in time — retry later