Skip to main content
The API Call transformation calls an HTTP API once per input row and enriches that row with fields parsed from the JSON response. Rows flow in, the component makes a request (using values from each row), and rows flow out with the response fields you selected appended. It is the first-class way to do mid-pipeline API lookups, replacing hand-written Curl() expressions and manual JSON parsing.

Overview

  • Operates per record: one API call for each input row.
  • Enriches 1:1 by default: every input row passes through unchanged and gains the response fields you select. Optionally, expand a response list into one output row per item.
  • Builds the request from row values using #{field} placeholders in the URL, headers, and body.
  • Parses the response with a JSON Path and projects the fields you choose.
  • Supports None and Basic authentication.
A common pattern is “list and get”: a REST API Source lists items (each carrying a detail URL), then the API Call transformation calls #{url} for each row to fetch and attach the details.

Configuration

Drop the API Call component into the pipeline designer, connect an input to it, and open it to configure the request and the response.

Request

Authentication

Response and Fields

Two reserved response fields are available under the Meta Data tab of the field picker, populated from the HTTP response itself rather than its body: These stay populated even when a call returns an error and Fail on error is off, so a downstream component can branch on the real status while the body fields are null.

Detecting fields

Because #{field} placeholders are only resolved at run time, the component can sample a real response so you do not have to define fields manually.
1

Configure the request

Set the method, URL, authentication, and any headers or body.
2

Click Detect fields from API

The component makes a single sample request through the upstream data, then displays the response and suggests a JSON Path.
3

Apply the suggestion and select fields

Accept the suggested JSON Path (or enter your own) and choose the fields to add to your rows.
If you enter a JSON Path yourself before clicking Detect, detection builds the field list from the node that path resolves to instead of auto-locating records. If the path resolves to a scalar, the message points at the containing object so you can adjust the path. A response field whose name collides with an input column is offered under a de-duplicated alias (for example, id becomes id_1) so it stays selectable. The underlying JSON key the UDF reads is unchanged. Select all also picks up the Meta Data predefined fields (http_status_code and http_headers).

Returning one row per bag item

When a response returns a list nested inside each item, you can either enrich each input row with a single element (using Array item index) or expand the list into one output row per item. To expand a list:
1

Set the JSON Path to the containing object

Point the JSON Path at the object that holds the list, not at the list itself. For a response like { "results": [ { "tags": [...] } ] }, set the path to $.results[*] and add tags as a response field.
2

Type the list field as Bag

In the Response fields grid, set the field’s Type to Bag.
3

Select Return one row per bag item

The checkbox appears once a response field is typed Bag. Each input row is emitted once per item in the bag.
The component adds a <field>_item column downstream that carries each item as JSON text. Read values out of it in a following Select with JsonStringToMap. Notes:
  • An empty bag still emits one row for the input, with an empty item.
  • If two or more response fields are typed Bag, their items are combined as a cross product. One input row becomes as many rows as the item counts multiplied together.
  • If the derived <field>_item name matches another response field, _flattened is appended to it (for example tags_item_flattened).
  • If the derived <field>_item name matches an existing input column, saving is blocked. Rename the response field or drop the clashing input column first.

Example

Enrich a list of records with details fetched per row.
  1. A REST API Source reads a list endpoint, producing one row per item with fields such as url and title.
  2. An API Call transformation is connected after it:
    • Method: GET
    • URL: #{url}
    • JSON Path: $
    • Response fields: director, release_date
  3. For each input row, the component calls that row’s url, parses the response, and appends director and release_date.
The output has the same number of rows as the input. Each row keeps its original fields (url, title) and gains the selected response fields (director, release_date), which are then available to downstream components.

Best Practices

  • Set a request sleep interval when the target API enforces rate limits. Each row is a separate call, so high-volume inputs can hit limits quickly.
  • Decide on Fail on error deliberately. Leave it on to stop the job on bad responses, or turn it off to let rows pass through with null enrichment (and inspect http_status_code downstream).
  • Use #{field} placeholders to drive per-row URLs, headers, and bodies from upstream data.
  • Remember that Preview makes real API calls to the configured endpoint, just like a job run.

Redirect handling

When the component follows an HTTP redirect, it drops the Authorization header if the next hop is on a different host than the configured URL, or if the redirect downgrades https to http. Same-host redirects that keep the scheme send the header as usual. Only the Authorization header is stripped. Other headers, including custom auth headers and Cookie, are still sent to the redirect target.

FAQ

How many API calls does this component make? One call per input row during a job run. Detect fields from API makes a single call, regardless of how many rows are upstream, because it only needs one sample response to infer the fields. Does the API Call transformation change the number of rows? By default it enriches each input row 1:1, so the output row count equals the input row count. With Return one row per bag item on, each input row is expanded into one row per item in the selected Bag field. See Returning one row per bag item. What happens when a request fails? It depends on Fail on error. When on, a non-2xx response, a network error, or a JSON Path with no match fails the job. When off, the row passes through with null response fields and the job continues, while http_status_code and http_headers still reflect the real response.

ETL: REST API Source

ETL: AI Transformation

ETL: Connecting to any API with OAuth

Last modified on October 27, 2026