Sources
A data loader reads one source each run. The sample on the Extract step comes from the platform, read exactly as a run reads it.
Dates in the URL
| Placeholder | Becomes |
|---|---|
{date:FORMAT} | The date being loaded, in a Java date pattern, e.g. {date:yyyyMMdd} gives 20261105. Today, unless the run is given a date. |
{previous:FORMAT} | The business day before the date being loaded, e.g. {previous:yyyy-MM-dd} on a Monday gives the Friday. |
A URL can have several placeholders. The line under the URL shows the address for the Date to load.
Variables and secrets
Many APIs take values in the URL and a key to prove who you are, such as the OpenWeather current weather API, https://api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}&appid={API key}. The Variables and secrets card of the Extract step fills these placeholders.

Variables
A variable is a name, such as lat, and a value for each set. With several sets the source is read once for each set and the rows of all of them are loaded together. Northgate reads the weather at four of its wind farms:

| What | Notes |
|---|---|
| Add a variable, Add a set | A variable's name is letters, digits and _. Renaming a variable renames it in the URL too. |
| Paste sets | The names on the first line, then one set a line, separated by commas, semicolons or tabs: copy them from a spreadsheet. Replaces the variables. |
| In the URL | Values are URL-encoded, so Berlin Mitte & Co is sent as Berlin%20Mitte%20%26%20Co. |
| In the headers | Values are used as they are. |
| In the rows | Each row gets its set's values as columns of the same names (unless the row already has a column with that name), so the Map step can use site as a field or in the event id. |
A sample reads the first 3 sets; Extract all and a run read them all.
Secrets
A secret is an API key, a token or a password, used by name in the URL or the headers, such as {API key} or Authorization&Bearer {token}.
| What | Notes |
|---|---|
| Name | Letters, digits, spaces, _ and -. |
| Secret record | Where the value is kept in the platform's secret store, etl_<code>_<name> by default. Give several loaders the same record to share one key. |
| Set the value | Saves the value in the secret store. It is never shown again, and Value says only whether it is set. |
The value is never stored in the loader, the process or the workflow: the etl_extract action reads it from the secret store when it runs. The URL in previews and run reports, and any error message, show it as ****. A run whose secret has no value fails at once, with the secret's name.

A value used in a header cannot contain ,, ; or &: the headers option is split on them.
CSV or text file
| Setting | Notes |
|---|---|
| Separator | Comma, semicolon, tab, pipe or spaces. |
| Header line | The line with the column names; 0 when there is none. |
| Lines to skip after the header | Lines between the header and the first row. |
| Request headers, Request body (POST), Body type | Optional, as for a JSON API. |
Header names keep only their letters and digits (Trade Date is TradeDate). Values that are plain numbers with a point are read as numbers; others, such as 31,25, stay text until the mapping converts them.
JSON API
| Setting | Notes |
|---|---|
| Records path | Where the list of records is, with dots, e.g. data.readings. Empty when the document is the list. |
| Request headers | Optional, as Name&Value;Name2&Value2, e.g. Accept&application/json. |
| Request body (POST), Body type | Optional: see Sending a request body. |
Each record's fields are columns; fields of objects inside it are paths such as reading.mw.
XML document
| Setting | Notes |
|---|---|
| Records path | The repeated element, e.g. row or report.rows.row. |
Attributes are columns; child elements are paths. The text of an element is its content, e.g. price.content.
Sending a request body
Some data feeds only answer a POST request with a body, such as a list of the codes you want. CSV, JSON and web page sources can send one: leave Request body (POST) empty to read the URL as a web browser does (a GET), or fill it in to send a POST.

| Body type | Use for | Content-Type sent |
|---|---|---|
| Form fields | name=value&name2=value2, as a web form sends | application/x-www-form-urlencoded |
| JSON | A JSON document, such as {"codes": ["XAUUSD", "XAGUSD"]} | application/json |
| Plain text | Anything else | text/plain |
A Content-Type in Request headers is used instead. The body can use the dates ({date:yyyy-MM-dd}, {previous:yyyyMMdd}), variables and secrets, as the URL does; in form fields their values are URL-encoded. With sets of variables, one request is sent for each set. Backslashes in the body are taken out by the platform.
Example: prices a page loads with its scripts
A page of live metal prices fills its tables with a script, so the tables the platform reads are empty. The browser's developer tools (the Network tab) show the script calling a data feed: a POST to https://www.metalsdaily.com/__dta/pd.ashx with the form field com=XAUUSD|XAGUSD, which answers {"p": [{"a": "XAUUSD", "b": "4068.35", ...}]}. Read it as a JSON API:
| Setting | Value |
|---|---|
| URL | https://www.metalsdaily.com/__dta/pd.ashx |
| Records path | p |
| Request body (POST) | com=XAUUSD|XAGUSD|XPTUSD|XPDUSD |
| Body type | Form fields |
Each code is a row, with the fields a (the code), b (bid), c (ask) and so on. A data feed that a page uses for itself is not a published API: it can change without notice, and the site's terms may limit how its data can be used.
Table on a web page
For prices published on a web page as an HTML table.
| Setting | Notes |
|---|---|
| Table | The table, as a CSS selector such as div#main > table:nth-of-type(1). Select Show the page and choose the table to fill it in. |
| Header row | The row of the table with the column names, counting rows of the head, body and foot; 0 when there is none. The data starts on the next row. |
| Request headers | Optional, as for a JSON API. |
| Request body (POST), Body type | Optional: see Sending a request body. |
Show the page and choose the table opens the page as the platform reads it, without its scripts. Every table is outlined; point at one and click it, or choose it from the list on the right, which says how many rows and columns each has. The selected table's first rows are shown under its selector. Use this table fills in the selector.


| Good to know | |
|---|---|
| Cells | The text of each cell: header cells (th) first, then data cells (td), for each row. Empty cells give no value. Dots in header names become spaces, and repeated names get a number. |
| Tables built by scripts | Pages that fill their tables with JavaScript after they load have empty tables (or none) in the page the platform reads. Look for the data feed the page calls and read it as a JSON API (often with a request body), or use custom ODSL. |
| Pages that change | The selector follows the page's structure. If the page is rearranged, a run fails with No table rows found and you choose the table again. |
| Secrets in the URL | The page cannot be shown when its URL needs a secret: type the selector yourself. |
Excel workbook
| Setting | Notes |
|---|---|
| Sheet | The sheet name, or its number: 1 is the first sheet, 2 the second. Default: the first sheet. A name that is not in the workbook reads the first sheet. |
| Header row | The row number of the column names; the data starts on the next row. Rows with no values are skipped. |
| First row of data | Optional: the row number of the first row to read, when the data does not start right after the header row, for example below yearly figures. |
| Last row of data | Optional: the row number of the last row to read, to leave out ratios, totals, notes or another table below. |
| Stop at the first empty row | The data ends at the first row with nothing in it, after the data starts. For a sheet that grows at the bottom, with an empty row and then a totals line below the data, where a fixed last row would not do. With a last row too, it stops at whichever comes first. A cell with only spaces counts as empty. |
| Request headers | Optional, as for a JSON API, for example an API key the file's site asks for. |
The platform names itself to the file's site as OpenDataDSL/1.0, unless the request headers set a User-Agent. Up to 104 columns (A to CZ) are read. Column names are put on one line: line breaks and runs of spaces (full-width spaces too) become one space, and a dot becomes a space. A column with no name is called Column and its letter, such as Column C. When two columns have the same name, the second is numbered: Price, Price 2. A heading merged across several columns gives each of them the same name, so they are numbered too; Columns to use on the Examine step shows each column's letter.
Before November 2026 a column name kept its line breaks and dots, and a second column of the same name replaced the first. Open an older Excel loader and select Extract to see the new names, then check the mapping.
Example: Japanese timber prices from e-Stat
The Ministry of Agriculture, Forestry and Fisheries publishes monthly timber prices (木材価格統計) on e-Stat as an Excel workbook. The sheet 素材・木材チップ価格 (log and wood chip prices) has headings over several rows, yearly figures, then the months, then ratios, then a table of prefectures, with notes at the end. Each product has two columns: the price and the change on the previous month. … means no data and nc could not be calculated.
To load the monthly prices of the national average:
- Excel workbook, the URL of the file, Sheet
素材・木材チップ価格(or2), Header row the row with the product names, First row of data the first month and Last row of data the last month. - Map: Event time from column C, data type date, date format Japanese. Add a field for each price with an English name, such as
sugi_medium_logfor すぎ中丸太, data type number, and…, ncas Empty values. Leave out the change columns (the ones numbered2). - Or ask Fusion AI: it proposes the English names and translates values such as prefectures with a value map.
For the prefecture table, load another sheet range with a field such as prefecture from column C and a value map from 北海道 to Hokkaido and so on, or use a record for each value of a field.
e-Stat gives each month's file its own id in the URL (sinfid), so the URL of the latest file changes every month. Its API, which needs an application id, can find the latest file of a statistic.
Files on an FTP or SFTP server
A CSV or text file, a JSON or XML document or an Excel workbook can be read from an FTP or SFTP server instead of a web address. Choose the kind of file as usual, and give its location as the URL:
| Server | URL |
|---|---|
| FTP | ftp://ftp.example.com/prices/settle_{date:yyyyMMdd}.csv (port 21), or ftp://ftp.example.com:2121/... |
| SFTP (over SSH) | sftp://sftp.example.com/prices/settle_{date:yyyyMMdd}.csv (port 22), or sftp://sftp.example.com:2222/... |
The dates, variables and secrets in braces work as in any URL. When the URL starts with ftp:// or sftp://, Signing in to the server appears under it:

| Setting | Notes |
|---|---|
| User | The user to sign in as. Leave it empty to read an FTP server anonymously. It can use variables and secrets, such as {user}. |
| Password | One of the loader's secrets. Add it under Secrets first, set its value, then choose it here. |
| Private key | SFTP only: a secret whose value is the text of an SSH private key (PEM or OpenSSH, from its -----BEGIN line to its -----END line), to sign in with the key instead of a password. Its Set the value box takes several lines. |
Things to know:
- The file is read in the format of the kind chosen, whatever its name ends with, so a CSV file called
rates.sdvis read as CSV. - Request headers and a request body are not used on an FTP or SFTP server, so they are hidden.
- A table of a web page cannot be read from an FTP server.
- Do not put the user or password in the URL (
ftp://me:pass@host/...): use Signing in to the server, so the password stays a secret. Previews, run reports and messages show the URL without them. - FTP sends the password unencrypted; use SFTP when the server offers it.
- The server must accept connections from the OpenDataDSL platform. If it only accepts known addresses, ask your administrator or OpenDataDSL for the addresses to allow.
Until the platform update of November 2026 is in use, a password for an FTP server cannot contain @, :, /, %, ? or #, a password for an SFTP server cannot contain a comma, and a refused sign-in or a missing file both give the server did not send the file: check the user, the password and the path. With the update, any password works and the message says which it was.
Custom ODSL
For sources the others cannot read: several files, a page that needs a login, a source that needs reshaping. Your code sets rows to a list of rows: CSV rows, objects read from JSON or XML, or SimpleObjects you build. ondate is the date being loaded.
rows = []
for hub in ["TTF", "NBP"]
part = ${csv:"https://files.northgate-energy.example/brokers/" + hub + "_" + format(ondate, "yyyyMMdd") + ".csv", "separator=;"}
for r in part
rows.add(r)
next
next
Deploying saves the code as the action etl_extract_<code>.
Variables and secrets in your code
The Variables and secrets card works for custom code too; your code reads them by name instead of from the URL. Click a name under the table to put it into your code at the cursor.

| In your code | Is |
|---|---|
variable(secrets, "API key") | The value of the secret API key, read from the secret store when the run starts. |
variable(vars, "hub") | The value of the variable hub in the set being read. |
With variables, your code runs once for each set, with that set's values in vars. Each set's values are added to its rows as columns, unless a row already has a column of that name, so the Map step can use hub as a field or in the event id. Extract a sample runs the first 3 sets; a run runs them all. If the code fails for a set, the run stops there with the error.
In custom code a secret whose value is only digits loses its leading zeros (0071 becomes 71). The standard sources keep them.
A file in Azure storage is read from its URL with a SAS token, like any other URL.
Your own action
When the extract is more than a few lines, or you want to use the same steps in several loaders, write it as an action of your own (e.g. with Script Manager) and choose Your own action. The loader runs it with values for its inputs; etl_extract passes the dates, variables and secrets in, so the action itself needs no settings.

| What | Notes |
|---|---|
| Action | The id of your action. The list offers your actions; the Data Loaders' own (etl_...) cannot be used. Read the action shows its inputs. |
| Inputs | A value for each input. Values can have {date:FORMAT} and {previous:FORMAT}, the loader's variables such as {curve} and its secrets such as {client_secret}. An input left empty is not passed. The line under the table shows the values for the Date to load and the first set, with secrets as ****. |
ondate | Always passed: the date being loaded, yyyy-MM-dd. |
| Variables | With several sets the action runs once for each set, and each set's values are added to its rows as columns, unless a row has a column of that name. A sample runs the first 3 sets. |
| What it returns | output.rows, a list of rows (CSV rows, objects read from JSON or XML, or SimpleObjects). To fail, set output.message and return "failed": the run fails with that message, secrets shown as ****. An action that sets no rows fails the run too. |
| Errors | The loader runs your action with errors ignored, as it runs custom ODSL code: a step that fails is skipped and the action carries on. Set error = null at the start and check if error != null after each step that can fail, as below. |
An action for a price curve API (Ridgeline Analytics, a made-up provider), which gets a token with the client id and secret and then reads a curve:
ridgeline_extract = action in "ridgeline"
// Reads a Ridgeline Analytics price curve
in curve as Scalar "The curve name"
in client_id as Scalar "Ridgeline client id"
in client_secret as Scalar "Ridgeline client secret"
in from as Scalar "The first date, yyyy-MM-dd"
in ondate as Scalar "The date being loaded" optional
out rows as List "One row per value"
out message as Scalar "Why it failed"
exit "ok", "failed"
error = null
body = '{"client_id": "' + input.client_id + '", "client_secret": "' + input.client_secret + '"}'
tk = ${json:"https://api.ridgeline-analytics.example/v1/auth/token", "headers=Content-Type&application/json,base64_requestbody=" + encodeBase64(body)}
if error != null
output.message = "Could not get a token: " + error
return "failed"
end
url = "https://api.ridgeline-analytics.example/v1/curves?name=" + replace(encodeURI(input.curve), "+", "%20") + "&from=" + input.from + "&to=" + input.ondate
data = ${json:url, "headers=Authorization&Bearer " + tk.access_token}
if error != null
output.message = "Could not read the curve: " + error
return "failed"
end
output.rows = data
return "ok"
end
An action cannot define functions, but it can run other actions (${action:"name"}.run(in, out)), so steps used by several extracts can be actions of their own.
Publishing a loader to the library puts its action in the plug-in, so a client gets it when they install the loader. It replaces an action of theirs with the same id.