All Products
Search
Document Center

DataV:Add an API data source

Last Updated:Apr 17, 2024

This topic describes how to add an API data source in DataV. APIs are data interfaces used for interactions between multiple services. If you have available APIs, you can connect your API data sources to DataV.

Prerequisites

The API data source to be added is prepared.

Procedure

  1. Go to the DataV console .

  2. On the Visualizations page, move the pointer over the target visualization and click Edit.

    Important

    If you have not created a visualization application on the My Visualizations page, create a visualization application. For more information, see Create a visualization application on a PC by using a template.

  3. On the canvas edit page, click a widget in the canvas.

    If no widget is available on the canvas, add a widget first. For more information, see Add an asset.

  4. In the right-side widget configuration panel, select Data and click Configure Data Source.

  5. In the Set Data Source step, set Data Source Type to API.

    设置API数据源页面

  6. Select a request method from the Request Method drop-down list. You can select GET or POST

  7. In the URL edit box, enter the requested interface URL path.

  8. According to the request method you selected in the request method, you can enter the corresponding request function value in the Header (Optional) and POST request parameters below.

    post

  9. Click Preview Results to view the returned results of the data source.