Generic REST Adaptor

This article applies to IFS Cloud 26R2 and later.

The Generic REST adaptors connect IFS OI Server to REST web services that return JSON, without custom code. You describe how to call the service and where the data sits in its response, and the adaptor turns that response into time series or dataset data.

Related: Dataset Datasources, Tag Datasources

Overview

Every REST API arranges its JSON differently. The Generic REST adaptors handle this with a shape configuration: a short JSON description that says where each value is in the response. The adaptor calls the service, applies the shape, and returns data that Explorer understands.

There are two Generic REST adaptors:

Both adaptors share the same connection, authentication and shape configuration options. Both are read-only.

Choosing an Adaptor

Choose the adaptor that matches the type of data returned by the REST service and how Explorer will use that data.

  Time Series Dataset
Use it for Sensor readings, process values: anything with a tag name, a time and a value Lists and tables: work orders, assets, events, reference data
Output Values per tag: name, timestamp, value, confidence A table whose columns you define
Shape is set Once, on the datasource On each dataset, in its query
Values filled into the request {tag}, {tags}, {startTime}, {endTime} Dataset parameters through PARAM() and PARAMS()
Paging No. Each request is a single time-bounded call Yes. Turn on Enable Paging in Explorer; see Paging
Tag browsing Yes Not applicable

If the service is an OData service, try the OData adaptors first; they understand OData queries natively. Use the Generic REST adaptors for services that are not OData, or when the response needs reshaping.

Quick Start

This example uses a public OData sample service so that you can see the whole flow before connecting your own API.

  1. Create a datasource that uses the Generic REST Dataset Adaptor. Set Base URL to https://services.odata.org/V4/Northwind/Northwind.svc and leave Authentication Mode as None and set Paging Style to NextLink.
  2. Use Test Connection. The adaptor sends a GET to the Base URL; a success response marks the datasource as operational.
  3. Create a dataset on the datasource and enter this query:
{  
  "path": "Products?$top=20",  
  "shape": {  
    "rowsPath": "$.value[*]",  
    "emit": {  
      "ProductID":   { "path": "ProductID", "type": "int" },  
      "ProductName": { "path": "ProductName" },  
      "UnitPrice":   { "path": "UnitPrice", "type": "decimal" }  
    }  
  }  
}
  1. Preview the dataset. You should see 20 rows with the columns ProductID, ProductName and UnitPrice.

The path is appended to the Base URL. The shape says that each item in the response's value array is a row, and which three fields to take from each item.

Connection and Authentication Settings

The following connection and authentication settings apply to both the Time Series and Dataset adaptors. The table also shows the corresponding field name and data type used in the Import/Export spreadsheet. Standard datasource settings, such as name, description, time zone, and timeouts, also apply.

Parameter Description and example Name Type
Base URI / Base URL Required. The service's address, for example https://api.example.com/v1. Request paths are appended to it. Called Base URI on the Time Series adaptor and Base URL on the Dataset adaptor. BaseURI / BaseUrl String
HTTP Method GET (default) or POST. Use POST for services that take a request body, such as GraphQL. HttpMethod String
Request Headers Extra headers, one Name: Value per line. Example: Accept: application/json. Headers String
Request Content Type Content type of a POST body. Default: application/json. RequestContentType String
Request Timeout (seconds) How long to wait for a response. 0 (default) uses the system default of 100 seconds. RequestTimeoutSeconds Integer
Verification Path Optional path that Test Connection requests instead of the Base URL. Use it when the Base URL itself returns an error. VerificationPath String
Authentication Mode None (default), Basic, Bearer, ApiKey, OAuth2ClientCredentials or Certificate. Only the settings for the chosen mode are used. AuthenticationMode String
Username User name for Basic authentication. Username String
Password Password for Basic authentication. Password EncryptedString
Bearer Token A fixed token, sent as Authorization: Bearer <token>. Replace it manually when it expires. BearerToken EncryptedString
API Key Name Name of the header or query-string parameter that carries the API key. ApiKeyName String
API Key Value The API key. ApiKeyValue EncryptedString
API Key Location Header (default) or QueryString. ApiKeyLocation String
OAuth2 Token URL Token endpoint for the OAuth 2.0 client-credentials grant. The adaptor reuses a token until shortly before it expires. If a request is rejected as unauthorized, it gets a new token and tries once more. OAuth2TokenUrl String
OAuth2 Client Id Client ID for the client-credentials grant. OAuth2ClientId String
OAuth2 Client Secret Client secret for the client-credentials grant. OAuth2ClientSecret EncryptedString
OAuth2 Scope Optional scope for the client-credentials grant. OAuth2Scope String
Certificate Thumbprint Thumbprint of a client certificate for mutual TLS. The certificate must be installed on the server that runs the adaptor. CertificateThumbprint String
Certificate Store Location CurrentUser (default) or LocalMachine. CertificateStoreLocation String

Time Series Adaptor

The Generic REST Time Series Adaptor answers Explorer's requests for tag data. For each request it builds a URL (and a body, for POST) from your templates, calls the service, applies the shape configuration, and returns the values for each tag.

You only configure how to get raw values. IFS OI Server calculates averages, interpolated values and last-known values from the raw data, so every sampling method works without extra setup.

Time Series Adaptor Settings

In addition to the connection and authentication settings, configure the following settings for the Time Series adaptor.

Parameter Description and example Name Type
Request Path Template Path and query string appended to the Base URI. Can contain placeholders. Example: trend?tag={tag}&from={startTime}&to={endTime} RequestPathTemplate String
Request Body POST only. The body to send. Can contain the same placeholders. RequestBody String
Request Timestamp Format .NET date format used for {startTime} and {endTime}. Default: yyyy-MM-ddTHH:mm:ssZ. RequestTimestampFormat String
Request Time Zone UTC (default) or DatasourceLocal, the datasource's time zone. For DatasourceLocal, include an offset in the timestamp format, for example yyyy-MM-ddTHH:mm:sszzz. RequestTimeZone String
Shape Configuration Required. JSON that finds the name, timestamp, value and confidence in the response.  ShapeConfiguration String
Tag Discovery Path Optional path of an endpoint that lists tags. If blank, the Request Path Template is used. Supports {startTime}, {endTime} and {tags}. TagDiscoveryPath String
Tag Discovery Shape Optional shape for the tag-list response. Outputs name, and optionally description, units, minimum and maximum. If blank, the Shape Configuration is used. TagDiscoveryShape String
Tag Discovery Headers Optional headers for tag browsing. They replace the Request Headers; authentication still applies. TagDiscoveryHeaders String
Tag Discovery Content Type Optional content type for a POST discovery body. If blank, the Request Content Type is used. TagDiscoveryContentType String
Tag Discovery Body Optional POST body for tag browsing. If blank, the Request Body is used. TagDiscoveryBody String
Tag Discovery Window (hours) How far back {startTime} goes during tag browsing. Default: 24. TagDiscoveryWindowHours Integer

Request Placeholders

The adaptor replaces these placeholders in the Request Path Template and Request Body before each call.

Placeholder Replaced with
{tag} One tag name. The adaptor makes one call per tag; if one tag fails, the others still return. The response doesn't need to include the tag name.
{tags} All requested tag names, separated by commas. The adaptor makes one call for all tags, so the shape must output name to match values to tags. Matching ignores case.
{startTime} Start of the requested period, in the Request Timestamp Format and Request Time Zone.
{endTime} End of the requested period, formatted the same way.

If the template uses neither {tag} nor {tags}, the adaptor makes one call and matches the values to tags using the name output by the shape.

Note: If Request Time Zone is set to DatasourceLocal, make sure the timestamp format does not end in Z (UTC). Otherwise, local times are labelled as UTC, causing the data to be shifted.

Shape Output for Tag Data

The following fields define the output from a Time Series adaptor shape.

Field Required Description
value Yes The reading. Numbers, text and true/false are accepted.
timestamp Recommended When the reading was taken. Must have a format. Rows without a timestamp are stamped with the end of the requested period, which suits services that only return current values.
name With {tags} or no placeholder The tag name, used to match values to tags.
confidence No Quality from 0 to 100. Default: 100.

Tag Browsing

When a user browses or searches for tags on the datasource, the adaptor gets tag names from the service. By default it repeats the normal data request over the last 24 hours and lists each distinct name it finds; the search filter, including wildcards, is then applied. If the service has an endpoint that lists tags, set the Tag Discovery settings above to use it instead. Tag browsing uses the datasource's HTTP Method.

Dataset Adaptor

The Generic REST Dataset Adaptor returns a table. It uses the connection and authentication settings and the paging settings. Configure connection, authentication and paging on the datasource. Configure the request path and the shape on each dataset, because each endpoint returns a different structure.

Writing a Dataset Query

For a Generic REST Dataset Adaptor, the dataset query is a JSON document with the following fields:

Field Required Description
path Usually Path and query string appended to the Base URL.
body For POST The request body, written as a JSON string. Sent when the datasource's HTTP Method is POST.
shape Yes How to turn the response into rows and columns. See Shape Configuration.
params No An optional list of { "name": …, "value": … } entries. Add FIRSTROW() and LASTROW() to this list to make Enable Paging available in Explorer.

Every field the shape outputs becomes a column, and each shaped item becomes a row. To add, rename or retype a column, change the shape. Column types come from the first non-empty value in the column:

  • Values of true or false make a Boolean column.
  • A field with a format makes a Date/Time column.
  • A field with "type": "int" makes an Integer column.
  • Other numeric values create a Decimal column. This includes whole numbers where no type is specified and values where "type": "long" is specified.
  • Anything else makes a Text column.

Parameters

REST dataset queries use the same parameter keywords as SQL dataset queries. Define the dataset's parameters as you would for a SQL dataset, then use them in the query.

Related: Dataset Queries

Keyword Becomes Example
PARAM(name,type) The parameter's value PARAM(site,string) becomes 2401
PARAMS(name,type) All selected values, separated by commas PARAMS(ids,integer) becomes 1,2,3

Values are formatted for a URL:

  • Text is URL-encoded, so a space becomes %20.
  • Numbers use a dot as the decimal separator.
  • Booleans are true or false.
  • Dates and times are ISO 8601 in the datasource's time zone, including the offset.

Note: values are URL-encoded even inside a POST body, so text with spaces arrives as, for example, New%20York. In POST queries, use parameters only for values that need no encoding, such as codes and numbers.

Paging

Large result sets can be retrieved and displayed a page at a time. Paging for the Generic REST Dataset Adaptor involves two parts:

  • Service paging. Configure Paging Style and the related settings on the datasource to define how the REST service returns pages of data.
  • Explorer paging. Add FIRSTROW() and LASTROW() to the dataset query to make Enable Paging available for the dataset.

When paging is enabled, the adaptor translates the page requested by Explorer into the requests needed by the REST service, retrieves the required service pages, and returns only the rows for the requested page.

Paging Settings

These settings are on the Dataset adaptor's datasource, in addition to the connection and authentication settings.

Parameter Description and example Name Type
Paging Style How the service pages its results: None (default), NextLink, OffsetLimit or PageNumber. See Paging Styles. PagingStyle String
Next Link Path NextLink only. JSONPath to the next page's URL in the response. Default: $['@odata.nextLink']. For a response with a top-level next field, use $.next. NextLinkPath String
Page Size How many rows the adaptor asks the service for in each call. Default: 100. This is also how the adaptor recognizes the last page: a call that returns fewer rows than this ends the paging. It is not the page size you choose in Explorer. PageSize Integer
Offset Parameter Name of the query parameter that carries the row offset. Used by OffsetLimit, and by NextLink to jump straight to a page. Default: $skip. OffsetParameter String
Limit Parameter Name of the query parameter that carries the number of rows to return. Used with the Offset Parameter. Default: $top. LimitParameter String
Page Parameter PageNumber only. Name of the query parameter that carries the page number. Pages start at 1. Default: page. PageParameter String
Page Size Parameter PageNumber only. Name of the query parameter that carries the number of rows per page. Default: pageSize. PageSizeParameter String
Max Pages The most calls the adaptor makes for one request. This stops a faulty service from looping forever. Default: 1000. MaxPages Integer

When Enable Paging is off, the adaptor normally fetches every service page, up to Max Pages, and returns all rows as one table. With OffsetLimit or PageNumber, do not put offset or page parameters in the dataset path; the adaptor adds them.

Paging Styles

The following table describes each supported paging style, how it works and which settings it uses.

Style How it works Settings used
None The adaptor sends a single request to the REST service. If paging is enabled, it returns the requested rows from the response. None
NextLink Each response contains the URL of the next page. The adaptor follows the links until there are none left or it has enough rows. It remembers where each Explorer page ended, so moving to the next page carries on from there instead of starting again at page 1. Next Link Path. Optionally Offset Parameter and Limit Parameter (see the note below)
OffsetLimit The adaptor adds an offset and a limit to the URL and increases the offset until a call returns fewer rows than the Page Size. Offset Parameter, Limit Parameter, Page Size
PageNumber The adaptor adds a page number and a page size to the URL and increases the page number until a call returns fewer rows than the Page Size. Page Parameter, Page Size Parameter, Page Size

Note: For NextLink paging, the adaptor can go to a page it has not reached yet (for example, from page 1 straight to page 5) only if it can build the offset itself. It does this with the Offset Parameter and Limit Parameter. If your service's next links use offset and limit parameters, set these two settings to the names the service uses, for example offset and limit. If the service uses opaque cursors, clear both settings; the adaptor then follows the links from page 1.

Turning on Enable Paging

Explorer offers Enable Paging for a dataset when its query contains FIRSTROW() or LASTROW(), the same keywords used by SQL datasets. For a REST dataset, add these keywords to the params list. Explorer fills in these values before sending the request. The values are not passed to the service.

The following example shows a dataset query that includes FIRSTROW() and LASTROW() in the params list to enable paging in Explorer: 

{  
  "path": "form-completions?fields=id,created,modified",  
  "totalCountPath": "$.count",  
  "shape": {  
    "rowsPath": "$.results[*]",  
    "emit": {  
      "Id":       { "path": "id", "type": "int" },  
      "Created":  { "path": "created", "type": "datetime", "format": "iso8601" },  
      "Modified": { "path": "modified", "type": "datetime","format": "iso8601" }  
    }  
  },  
  "params": [  
    { "name": "firstRow", "value": "FIRSTROW()" },  
    { "name": "lastRow",  "value": "LASTROW()" }  
  ]  
}

In this example, the datasource uses NextLink as the Paging Style and $.next as the Next Link Path.

  1. In Explorer, bind the dataset to a table or grid and turn on Enable Paging. Explorer adds Page Number and Page Size and a paging control.
  2. When you move to a page, Explorer sends the page number and page size.
  3. The adaptor fetches only the service pages it needs to fill that page and returns those rows.

The same steps work for every paging style. POST requests are not paged: the adaptor sends the request once and slices the result.

Showing the Number of Pages

Explorer shows Page 1 of n only if it knows how many rows there are in total. Most services include the total in each response. To show the number of pages, add totalCountPath to the dataset query, next to shape. It is a JSONPath to the total number of rows across all pages.

For example, if the response is:

{  
  "count": 484,  
  "next": "https://api.example.com/v1/form-completions?limit=25&offset=25",  
  "previous": null,  
  "results": [ ... ]  
}

Use: "totalCountPath": "$.count"

For an OData service, use: "$['@odata.count']"

  • The path must lead to a whole number, either a JSON number or text containing one. Negative and fractional values are ignored.
  • The adaptor reads the total from the first response where the path finds a value.
  • If totalCountPath is missing or does not find a value, paging still works, but the total is blank and Explorer shows Page 1 of n/a.
  • Some services only include the total when you ask for it, for example $count=true in an OData query. Add that to the dataset path.

Dataset Query Reference

The following table summarises the supported keys in a Generic REST Dataset Adaptor query.

Key Description
path Path and query string appended to the Base URL. For POST, use body instead of, or as well as, path.
shape Required. How to turn the response into rows and columns. See Shape Configuration.
params Optional list of named values, each with a name and a value. Use it to hold FIRSTROW() and LASTROW(), which turn on Enable Paging.
totalCountPath Optional JSONPath to the total number of rows in the response. Used to show the number of pages.

Related: Paged Queries

Shape Configuration

A shape configuration is a JSON document that turns one API response into a list of rows. Both adaptors use the same format. For the Time Series adaptor, the shape outputs name, timestamp, value and confidence. For the Dataset adaptor, every field it outputs becomes a column.

Patterns

Use exactly one pattern. If more than one is present, the first in this table is used.

Pattern Response Structure
levels
Nested data, such as rows inside rows, a tag name several levels above the values, or a tag name used as an object key
zip Each column is held in its own array, for example timestamps[] next to values[]
rowsPath + emit One list where each item is a row. This is the most common case
emit A single object that should become one row

Finding a Value

Each output field is defined by an entry in emit, or in zip.columns when using the zip pattern. The entry names the output field and specifies where its value comes from:

Key Takes the value from Example
path A path inside the current item { "path": "meta.quality" }
index A position, when the item is an array such as [time, value, quality] { "index": 1 }
var A variable saved at an outer level (see levels) { "var": "tagName" }
literal A fixed value { "literal": "PLANT-1" }

Converting Values

Use format, type, nullSentinels and default in a field definition to control how response values are converted and handled.

Key Values Description
format iso8601, unixSeconds, unixMilliseconds, or custom: plus a .NET pattern, such as custom:dd/MM/yyyy HH:mm:ss Reads the value as a date and time. Always set this on timestamp. A custom pattern with no offset is read as UTC.
type decimal, double, int, long, bool, string Reads the value as that type. A value that can't be converted fails the whole request.
nullSentinels A list, for example [-9999, "N/A"] Treats these values as empty. Matching ignores case.
default Any value Used when the field is missing, null, or matches a null sentinel.

Use format for date and time values and type for other value types. If neither is specified, the value is returned as it appears in the JSON response.

Nested Responses (levels)

The levels configuration defines a list of steps that move from the outermost part of the response inward. Each step can include:

  • Use path to specify the items to process at the current level. The first step is relative to the whole response, while later steps are relative to the item from the previous step.
  • Use bind to save values for use at later levels, in the form { "variableName": "path" }. Use var to read the saved values later.
  • Use bindKey when the tag name is an object key rather than a field. The adaptor processes each key, saves the key under the specified variable name, and then moves into its value.
  • Use emit or zip only on the last step to produce the rows.

Columnar Responses (zip)

The zip.columns configuration lists the output fields. A column with a path reads an array, and the arrays are combined item by item: the first item of each array makes the first row, and so on. A column with var or literal repeats the same value on every row. The onRagged setting controls what happens when the arrays have different lengths:

  • Set onRagged to truncate (default) to stop at the shortest array.
  • Set onRagged to pad to continue to the longest array and fill missing values with empty values.
  • Set onRagged to fail to return an error.

Path Syntax

Use the following path syntax to select values from a JSON response.

Write To select
name, a.b.c A property, or a property inside a property
['@odata.count'] A property whose name contains dots, spaces or other symbols
items[0] One array item by position, starting at 0
items[*] Every item in an array
* Every item, or every property value, of the current item
$.data A path from the top of the response, not from the current item
empty, $ or @ The current item itself

Note: filters ([?(...)]), recursive search (..) and slices ([0:5]) are not supported. Filter on the server through the request URL instead. Property names are case-sensitive.

Building a Shape

Writing a shape is easier if you look at the real response first. Follow these steps:

  1. Call the API in a browser or a tool such as Postman, using the same URL and sign-in as the datasource, and copy the response.
  2. Find the repeating part. Look for the array that has one item per row (or per reading). Its path becomes rowsPath, or the path of the last level.
  3. Find each value relative to one item. Inside emit, paths start from a single array item, not from the top of the response.
  4. Find values that sit outside the repeating part, such as a tag name or site name in a parent object. Capture them with bind on an outer level and read them with var.
  5. Add type and format to ensure values are interpreted correctly. 
  6. Test by previewing the dataset, or by trending one tag over a short period.

Which Pattern to Use

Choose the pattern that matches the structure of the response. The following table maps common response structures to the appropriate pattern and example.

Response Structure Use Example
A list of records rowsPath + emit Users, ServiceNow incidents
A list of records, plus details in a header levels with bind ThingSpeak channel
One array per column zip Daily weather
Readings nested inside series, inside sites levels River gauges
Tag names used as property names levels with bindKey Hourly weather

Shape Configuration Examples

Some examples in this section use public services so that you can try the shape configurations against a live API. The responses shown are shortened. Check the provider’s documentation for the latest details before relying on the service.

Dataset Examples

Dataset: Flattening Nested Objects (Users)

Each user record has an address and a company inside it. The shape flattens them into one row per user.

Datasource

Base URL: https://jsonplaceholder.typicode.com

Response from GET /users

[  
  {  
    "id": 1,  
    "name": "Leanne Graham",  
    "email": "Sincere@april.biz",  
    "address": {  
      "street": "Kulas Light",  
      "city": "Gwenborough",  
      "geo": { "lat": "-37.3159", "lng": "81.1496" }  
    },  
    "company": { "name": "Romaguera-Crona" }  
  }  
]

Dataset query

{  
  "path": "users",  
  "shape": {  
    "rowsPath": "$[*]",  
    "emit": {  
      "Id":        { "path": "id", "type": "int" },  
      "Name":      { "path": "name" },  
      "Email":     { "path": "email" },  
      "City":      { "path": "address.city" },  
      "Latitude":  { "path": "address.geo.lat", "type": "decimal" },  
      "Company":   { "path": "company.name" }  
    }  
  }  
}
Id Name Email City Latitude Company
1 Leanne Graham Sincere@april.biz Gwenborough -37.3159 Romaguera-Crona
  • The response is an array at the top level, so rowsPath is $[*].
  • Use dot notation to access values in nested objects, for example address.geo.lat.
  • The latitude arrives as text, so "type": "decimal" makes it a number.

Dataset: Business Records with Paging (ServiceNow Incidents)

The ServiceNow Table API returns records in a result array, uses a non-standard date format, and returns a person as an object with a display name. It pages with offset and limit parameters.

Datasource

Base URL:            https://yourinstance.service-now.com/api/now  
Authentication Mode: Basic (or OAuth2ClientCredentials)  
Request Headers:     Accept: application/json  
Paging Style:        OffsetLimit  
Offset Parameter:    sysparm_offset  
Limit Parameter:     sysparm_limit  
Page Size:           500

Response

{  
  "result": [  
    {  
      "number": "INC0010023",  
      "short_description": "Compressor C-101 high vibration",  
      "priority": "2",  
      "state": "In Progress",  
      "assigned_to": { "display_value": "Beth Anglin", "link": "https://…" },  
      "opened_at": "2026-10-07 08:15:22"  
    }  
  ]  
}

Dataset query

{  
  "path": "table/incident?sysparm_query=active=true^assignment_group.name=PARAM(group,string)&sysparm_display_value=true&sysparm_fields=number,short_description,priority,state,assigned_to,opened_at",  
  "shape": {  
    "rowsPath": "$.result[*]",  
    "emit": {  
      "Number":      { "path": "number" },  
      "Description": { "path": "short_description" },  
      "Priority":    { "path": "priority", "type": "int" },  
      "State":       { "path": "state" },  
      "Assigned To": { "path": "assigned_to.display_value", "default": "Unassigned" },  
      "Opened":      { "path": "opened_at", "format": "custom:yyyy-MM-dd HH:mm:ss" }  
    }  
  }  
}
Number Description Priority State Assigned To Opened
INC0010023 Compressor C-101 high vibration 2 In Progress Beth Anglin 07/10/2026 08:15:22
  • PARAM(group,string) lets the Explorer user choose the assignment group.
  • Setting sysparm_display_value=true makes ServiceNow return names instead of internal IDs, so assigned_to.display_value gives the person's name.
  • The default field fills in Unassigned when nobody is assigned.
  • The date does not include a time zone, so the custom: format interprets it as UTC, which is the default time zone used by the ServiceNow API.
  • OffsetLimit paging adds sysparm_offset and sysparm_limit to the URL and fetches pages until one comes back with fewer than 500 records. Don't put those parameters in the path yourself.

Dataset: Header Values on Every Row (ThingSpeak IoT Channel)

ThingSpeak returns details about the channel once, followed by its readings. Every reading is text. The shape copies the channel name onto every row.

Datasource

Base URL: https://api.thingspeak.com

Response

{  
  "channel": {  
    "id": 9,  
    "name": "my_house",  
    "field1": "Light",  
    "field2": "Outside Temperature"  
  },  
  "feeds": [  
    { "created_at": "2026-10-08T01:00:15Z", "entry_id": 101, "field1": "345", "field2": "18.45" },  
    { "created_at": "2026-10-08T01:00:30Z", "entry_id": 102, "field1": "351", "field2": null }  
  ]  
}

Dataset query

{  
  "path": "channels/9/feeds.json?results=PARAM(readings,integer)",  
  "shape": {  
    "levels": [  
      { "path": "$", "bind": { "channel": "channel.name" } },  
      { "path": "feeds[*]", "emit": {  
          "Channel":     { "var": "channel" },  
          "Time":        { "path": "created_at", "format": "iso8601" },  
          "Light":       { "path": "field1", "type": "decimal" },  
          "Temperature": { "path": "field2", "type": "decimal" }  
      } }  
    ]  
  }  
}
Channel Time Light Temperature
my_house 08/10/2026 01:00:15 345 18.45
my_house 08/10/2026 01:00:30 351  
  • The first level stays at the top of the response ($) and saves the channel name. The second level walks the readings.
  • The readings are returned as text. "type": "decimal" converts them to decimal values. The null reading becomes an empty cell.
  • The field names (field1, field2) are renamed to meaningful column names.

Dataset: One Array per Column (Daily Weather Forecast)

Open-Meteo returns each measurement as its own array, with the dates in a separate array. Item 1 of each array belongs to the same day. zip lines them up into rows.

Datasource

Base URL: https://api.open-meteo.com/v1

Response

{  
  "latitude": -31.95,  
  "longitude": 115.86,  
  "daily_units": { "temperature_2m_max": "°C", "precipitation_sum": "mm" },  
  "daily": {  
    "time":               ["2026-10-08", "2026-10-09", "2026-10-10"],  
    "temperature_2m_max": [24.1, 26.8, 22.3],  
    "temperature_2m_min": [12.4, 14.0, 13.1],  
    "precipitation_sum":  [0.0, 0.0, 4.2]  
  }  
}

Dataset query

{  
  "path": "forecast?latitude=-31.95&longitude=115.86&daily=temperature_2m_max,temperature_2m_min,precipitation_sum&timezone=GMT",  
  "shape": {  
    "zip": {  
      "columns": {  
        "Location": { "literal": "Perth" },  
        "Date":     { "path": "daily.time[*]", "format": "iso8601" },  
        "Max (°C)": { "path": "daily.temperature_2m_max[*]", "type": "decimal" },  
        "Min (°C)": { "path": "daily.temperature_2m_min[*]", "type": "decimal" },  
        "Rain (mm)":{ "path": "daily.precipitation_sum[*]", "type": "decimal" }  
      }  
    }  
  }  
}
Location Date Max (°C) Min (°C) Rain (mm)
Perth 08/10/2026 24.1 12.4 0
Perth 09/10/2026 26.8 14.0 0
Perth 10/10/2026 22.3 13.1 4.2
  • Each column with a path reads one array; the arrays are combined item by item.
  • The literal field adds the same value to every row, which is useful when you combine data from several locations.
  • Dates with no time are read as midnight UTC.

Dataset: Filtered by a Parameter

The dataset has a string parameter called category.

{  
  "path": "Products?$filter=CategoryName eq 'PARAM(category,string)'",  
  "shape": {  
    "rowsPath": "$.value[*]",  
    "emit": {  
      "ProductID":    { "path": "ProductID", "type": "int" },  
      "ProductName":  { "path": "ProductName" },  
      "UnitPrice":    { "path": "UnitPrice", "type": "decimal" },  
      "Discontinued": { "path": "Discontinued", "type": "bool" }  
    }  
  }  
}

Dataset: List of Selected IDs

The dataset has a multi-value integer parameter called ids.

{  
  "path": "Products?$filter=ProductID in (PARAMS(ids,integer))",  
  "shape": { "rowsPath": "$.value[*]", "emit": {  
    "ProductID":   { "path": "ProductID", "type": "int" },  
    "ProductName": { "path": "ProductName" }  
  } }  
}

Dataset: Nested Data Flattened into One Table

Each department contains its employees. The result has one row per employee, with the department name repeated on each row.

Response

{ "departments": [  
  { "name": "Sales", "employees": [  
    { "id": 1, "fullName": "A. Smith" },  
    { "id": 2, "fullName": "B. Lee" }  
  ] }  
] }

Dataset query

{  
  "path": "org",  
  "shape": { "levels": [  
    { "path": "$.departments[*]",  
      "bind": { "department": "name" } },  
    { "path": "employees[*]", "emit": {  
        "Department": { "var": "department" },  
        "EmployeeId": { "path": "id", "type": "int" },  
        "Name":       { "path": "fullName" }  
    } }  
  ] }  
}

Dataset: All Pages of an OData Feed

Set Paging Style to NextLink on the datasource and keep the default Next Link Path. The adaptor follows each @odata.nextLink until the last page.

{  
  "path": "Orders?$expand=Customer",  
  "shape": { "rowsPath": "$.value[*]", "emit": {  
    "OrderId":  { "path": "OrderID", "type": "int" },  
    "Customer": { "path": "Customer.CompanyName" },  
    "Ordered":  { "path": "OrderDate", "format": "iso8601" }  
  } }  
}

Time Series Examples

Time Series: Readings Nested Inside Series (River Gauges)

USGS Water Services returns river flow and level readings. Each series has its tag-like name at the top of the response, while its readings are nested two levels further in.

Datasource

Base URI: https://waterservices.usgs.gov/nwis  
Request Path Template: iv/?format=json&sites=01646500&parameterCd=00060,00065&startDT={startTime}&endDT={endTime}

Response

{  
  "value": {  
    "timeSeries": [  
      {  
        "name": "USGS:01646500:00060:00000",  
        "sourceInfo": { "siteName": "POTOMAC RIVER NEAR WASH, DC LITTLE FALLS PUMP STA" },  
        "variable": {  
          "variableDescription": "Discharge, cubic feet per second",  
          "unit": { "unitCode": "ft3/s" }  
        },  
        "values": [ {  
          "value": [  
            { "value": "10900", "qualifiers": ["P"], "dateTime": "2026-10-07T00:00:00.000-04:00" },  
            { "value": "-999999", "qualifiers": ["P", "Ice"], "dateTime": "2026-10-07T00:15:00.000-04:00" }  
          ]  
        } ]  
      }  
    ]  
  }  
}

Shape Configuration

{  
  "levels": [  
    { "path": "$.value.timeSeries[*]",  
      "bind": {  
        "tagName": "name",  
        "site":    "sourceInfo.siteName",  
        "measure": "variable.variableDescription",  
        "unit":    "variable.unit.unitCode"  
      } },  
    { "path": "values[0].value[*]", "emit": {  
        "name":        { "var": "tagName" },  
        "timestamp":   { "path": "dateTime", "format": "iso8601" },  
        "value":       { "path": "value", "type": "decimal",  
                         "nullSentinels": ["-999999", "-999999.0"] },  
        "description": { "var": "measure" },  
        "units":       { "var": "unit" }  
    } }  
  ]  
}
Tag Time (UTC) Value
USGS:01646500:00060:00000 07/10/2026 04:00:00 10900
USGS:01646500:00060:00000 07/10/2026 04:15:00 (no data)
  • The first level visits each series and saves its name, units and description. The second level visits its readings.
  • The values[0] path picks the first item of the values array, which is where USGS puts the readings.
  • The template uses neither {tag} nor {tags}, so one request returns all series and the readings are matched to tags by name. Create the tags with these exact names, for example USGS:01646500:00065:00000 for gauge height.
  • The extra description and units fields are ignored when reading data, but tag browsing uses them, so browsing shows "Discharge, cubic feet per second" and "ft3/s".
  • Times include a UTC offset (-04:00), so they are converted to UTC correctly.

Time Series: Tag Names as Property Names (Hourly Weather)

For hourly weather, Open-Meteo uses each measurement name as a property inside hourly, next to a shared time array. Using the Open-Meteo variable names as tag names, the shape turns each array into a tag.

Datasource

Base URI: https://api.open-meteo.com/v1  
Request Path Template: forecast?latitude=-31.95&longitude=115.86&hourly={tags}&timeformat=unixtime&start_hour={startTime}&end_hour={endTime}  
Request Timestamp Format: yyyy-MM-ddTHH:mm  
Request Time Zone: UTC

Response for the tags temperature_2m and wind_speed_10m

{  
  "hourly_units": { "time": "unixtime", "temperature_2m": "°C", "wind_speed_10m": "km/h" },  
  "hourly": {  
    "time": [1791417600, 1791421200, 1791424800],  
    "temperature_2m": [18.3, 19.1, 20.4],  
    "wind_speed_10m": [12.2, 14.8, 16.1]  
  }  
}

Shape Configuration

{  
  "levels": [  
    { "path": "$.hourly", "bindKey": "tagName",  
      "zip": { "columns": {  
        "name": { "var": "tagName" },  
        "timestamp": { "path": "$.hourly.time[*]", "format": "unixSeconds" },  
        "value":     { "path": "[*]", "type": "decimal" }  
      } } }  
  ]  
}

Tag browsing

Tag Discovery Path: forecast?latitude=-31.95&longitude=115.86&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m,precipitation&forecast_days=1  
Tag Discovery Shape:  
{  
  "levels": [  
    { "path": "$.hourly_units", "bindKey": "tagName", "emit": {  
        "name":  { "var": "tagName" },  
        "units": { }  
    } }  
  ]  
}
  • The bindKey setting goes through each property of hourly, saving its name (temperature_2m) as tagName and moving into its array.
  • Inside zip, [*] reads the current array, and $.hourly.time[*] reads the shared time array from the top of the response.
  • The time array also becomes a series called time, but it's ignored because no tag has that name.
  • The {tags} placeholder puts all requested tags into one request, which suits APIs that accept a comma-separated list.
  • Tag browsing reads hourly_units, where each tag name is paired with its unit. The empty field spec { } takes the value itself (the unit text). Browsing also lists time, which you can ignore.

Time Series: Flat List

One array of readings, with a nested value and a timestamp in milliseconds.

Response

{ "items": [  
  { "id": "PMP-1.run",  
    "ts": 1718928000000,  
    "reading": { "value": 12.4 },  
    "meta": { "q": 100 } }  
] }

Shape Configuration

{  
  "rowsPath": "$.items[*]",  
  "emit": {  
    "name": { "path": "id" },  
    "timestamp": { "path": "ts", "format": "unixMilliseconds" },  
    "value": { "path": "reading.value", "type": "decimal" },  
    "confidence": { "path": "meta.q", "type": "int" }  
  }  
}

Time Series: Tag Names as Keys

The response maps each tag name to its readings. bindKey saves each key as tagName.

Response

{ "data": {  
  "TIC-101": [ { "t": "2026-06-21T00:00:00Z", "v": 12.3 } ],  
  "FIC-200": [ { "t": "2026-06-21T00:00:00Z", "v": 50.1 } ]  
} }

Shape Configuration

{  
  "levels": [  
    { "path": "$.data", "bindKey": "tagName" },  
    { "path": "*", "emit": {  
        "name": { "var": "tagName" },  
        "timestamp": { "path": "t", "format": "iso8601" },  
        "value": { "path": "v", "type": "decimal" }  
    } }  
  ]  
}

Time Series: Deeply Nested Readings

The tag name is three levels above the readings, and each reading is an array of [time, value, quality].

Response

{ "facilities": [ {  
  "facilityId": "PLANT-1",  
  "areas": [ {  
    "areaName": "Compression",  
    "instruments": [ {  
      "tag": "TIC-101",  
      "samples": [  
        [1718928000, 12.3, 100],  
        [1718928060, 12.5, 90]  
      ]  
    } ]  
  } ]  
} ] }

Shape Configuration

{  
  "levels": [  
    { "path": "$.facilities[*]" },  
    { "path": "areas[*]" },  
    { "path": "instruments[*]",  
      "bind": { "tagName": "tag" } },  
    { "path": "samples[*]", "emit": {  
        "name":       { "var": "tagName" },  
        "timestamp":  { "index": 0, "format": "unixSeconds" },  
        "value":      { "index": 1, "type": "decimal" },  
        "confidence": { "index": 2, "type": "int", "default": 100 }  
    } }  
  ]  
}

Time Series: Separate Arrays with Bad Values

Times and values are in parallel arrays, the time uses a day-first format, and -9999 marks a bad reading.

Response

{ "tag": "FIC-200",  
  "trend": {  
    "timestamps": ["21/06/2026 08:00:00",  
                   "21/06/2026 08:05:00",  
                   "21/06/2026 08:10:00"],  
    "values":     [50.2, -9999, 50.4],  
    "qualities":  [100, 0, 90]  
} }

Shape Configuration

{  
  "levels": [  
    { "path": "$", "bind": { "tagName": "tag" } },  
    { "path": "trend", "zip": { "columns": {  
        "name":       { "var": "tagName" },  
        "timestamp":  { "path": "timestamps[*]",  
                        "format": "custom:dd/MM/yyyy HH:mm:ss" },  
        "value":      { "path": "values[*]", "type": "decimal",  
                        "nullSentinels": [-9999] },  
        "confidence": { "path": "qualities[*]", "type": "int" }  
    } } }  
  ]  
}

This produces three readings. The middle reading is treated as empty because -9999 is a null sentinel.

Time Series: Current Values Only

The service returns only the latest value for each tag, with no time. Leave timestamp out of the shape; each value is stamped with the end of the requested period.

Request Path Template

current?tags={tags}

Shape Configuration

{  
  "rowsPath": "$.values[*]",  
  "emit": {  
    "name":  { "path": "tag" },  
    "value": { "path": "v", "type": "decimal" }  
  }  
}

Time Series: GraphQL with OAuth2

Datasource settings

Base URI: https://example.com/graphql  
HTTP Method: POST  
Request Body: {"query":"{ readings(from:\"{startTime}\", to:\"{endTime}\", tags:[{tags}]) { tag ts value } }"}  
Authentication Mode: OAuth2ClientCredentials  
OAuth2 Token URL: https://example.com/oauth/token  
OAuth2 Client Id: (your client ID)  
OAuth2 Client Secret: (your client secret)  
OAuth2 Scope: read:timeseries

Shape Configuration

{  
  "rowsPath": "$.data.readings[*]",  
  "emit": {  
    "name":      { "path": "tag" },  
    "timestamp": { "path": "ts", "format": "unixSeconds" },  
    "value":     { "path": "value", "type": "decimal" }  
  }  
}

Troubleshooting

Test Connection fails, but data requests work

Test Connection sends a GET request to the Base URL, which many APIs do not serve. Set Verification Path to an endpoint that returns success for a GET request.

"The dataset query must be a JSON document with a 'shape'"

The dataset query is not valid JSON or does not contain a shape. Check for missing commas and unescaped quotation marks. Inside body, escape quotation marks as \".

Some tags return no data in batch mode

When using {tags}, the shape must output name so that each returned value can be matched to the corresponding tag. The name must match the tag name, but the matching is not case-sensitive.

A request fails with a conversion error

Check that the field's type or format matches the returned data. For example, "type": "int" cannot convert a value such as "n/a" to an integer. Add values that represent missing data to nullSentinels, or use "type": "string" where appropriate.

Times are shifted by a few hours

For requests, check Request Time Zone and make sure the timestamp format includes the appropriate offset. For responses, a custom: format with no offset is read as UTC.

A whole-number column shows as a Decimal

Add "type": "int" to the field.

A column is missing or empty

Check the path against the actual response. Paths are case-sensitive. Use ['name'] for property names that contain dots or symbols.

Only part of the data is returned

The API may be returning results in pages. Set Paging Style to match the API's paging method and check whether Max Pages has been reached.

Where to find error details

For failed requests, check the reported request URL and HTTP status. Timeouts are also reported. Full error details are available in the server log.

Explorer does not offer Enable Paging

Check that the dataset query contains FIRSTROW() or LASTROW() in the params list. After adding them, save the dataset and refresh the page.

The paging control shows "Page 1 of n/a"

Explorer has no total row count. Check that the dataset query has totalCountPath included at the top level of the dataset query, alongside shape, and that it points to a whole number in the response. Also check that Enable Paging is on, because the total row count is only reported when it is enabled.

Rows repeat or are missing when moving between pages

The service must return rows in a stable order. For NextLink services that use offset and limit, set the Offset Parameter and Limit Parameter to the parameter names used by the service so that the adaptor can move to the correct page.

Fewer rows than expected without Enable Paging

The adaptor stops after the number of requests specified by Max Pages. Increase Max Pages, or enable paging to retrieve the data one page at a time.

Limitations

The Generic REST adaptors have the following limitations:

  • Both adaptors are read-only and cannot write data back to the REST service.
  • Responses must be in JSON format. XML and CSV responses are not supported.
  • Service-side paging is supported only for GET requests in the Dataset adaptor. For POST requests, the adaptor sends a single request and, when paging is enabled, returns the requested rows from the result. The Time Series adaptor makes one request per fetch, or one request per tag.
  • The path syntax has no filters, recursive search or slices.
  • PageNumber paging always starts at page 1. APIs that number pages from 0 are not supported.
  • Tag names are inserted into the URL without encoding. Tag names containing spaces or symbols such as & or # may require additional handling.
  • Enable Paging requires FIRSTROW() or LASTROW() in the dataset query’s params list, as described in Paging.
  • OAuth2 authentication supports the client-credentials flow only. Authentication flows that require sign in as an individual user are not supported.

Comments are closed