Retrieving MetricBase data using REST and JavaScript
concept brazil Updated Sep 10, 2026 1 min read analyze-time-series-data.md
Use JavaScript or REST APIs to insert and retrieve time-series data from the MetricBase database and to run transforms on the data. The transformations enable you to visualize time-series data in a variety of ways.
For more information about MetricBase time-series data transformations, see MetricBase transforms.
Using REST
For information about the MetricBase REST APIs that return time-series data from the MetricBase database, see MetricBase Time Series API.
Using JavaScript
For information about the MetricBase JavaScript APIs that return time-series data from the MetricBase database, see:
- Client — Execute transforms on the MetricBase database and receive the results.
- Data — Return the object that contains the result of a transform.
- DataBuilder — Create a series of data points for a metric.
- Transformer — Manipulate time-series data to prepare the data for evaluation and analysis.
- TransformPart — Specify details of the transform to be done.
- TransformResult — Return the object that contains the result of the transformation.
Experiment and get familiar with the JavaScript APIs by using the MetricBase Data Explorer that comes with the MetricBase Demo.
38 lines · 2.2 KB
--- title: Retrieving MetricBase data using REST and JavaScript description: Use JavaScript or REST APIs to insert and retrieve time-series data from the MetricBase database and to run transforms on the data. The transformations enable you to visualize time-series data in a variety of ways. locale: en-US canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/metricbase/analyze-time-series-data.html release: brazil product: MetricBase classification: metricbase topic_type: concept last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Accessing data, Define and collect data, MetricBase, Manage instance data sources, Extend ServiceNow AI Platform capabilities] --- # Retrieving MetricBase data using REST and JavaScript Use JavaScript or REST APIs to insert and retrieve time-series data from the MetricBase database and to run transforms on the data. The transformations enable you to visualize time-series data in a variety of ways. For more information about MetricBase time-series data transformations, see [MetricBase transforms](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/metricbase-transforms.md). ## Using REST For information about the MetricBase REST APIs that return time-series data from the MetricBase database, see MetricBase Time Series API. ## Using JavaScript For information about the MetricBase JavaScript APIs that return time-series data from the MetricBase database, see: - Client — Execute transforms on the MetricBase database and receive the results. - Data — Return the object that contains the result of a transform. - DataBuilder — Create a series of data points for a metric. - Transformer — Manipulate time-series data to prepare the data for evaluation and analysis. - TransformPart — Specify details of the transform to be done. - TransformResult — Return the object that contains the result of the transformation. Experiment and get familiar with the JavaScript APIs by using the [MetricBase Data Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/metricbase/metricbase-data-explorer.md) that comes with the MetricBase Demo.
| title | Retrieving MetricBase data using REST and JavaScript |
| description | Use JavaScript or REST APIs to insert and retrieve time-series data from the MetricBase database and to run transforms on the data. The transformations enable you to visualize time-series data in a variety of ways. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/metricbase/analyze-time-series-data.html |
| release | brazil |
| product | MetricBase |
| classification | metricbase |
| topic_type | concept |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Accessing dataDefine and collect dataMetricBaseManage instance data sourcesExtend ServiceNow AI Platform capabilities |