Skip to content

Dataset Using External Sources

This guide explains how to create a dataset in AIV using external data sources. External datasets are populated by LiveCompare actions and store results as External Data Sources, providing access to live data from APIs, statistics departments, third-party databases, and similar sources.

What is an External Dataset?

External datasets pull data from APIs or external services. Results are stored as External Data Sources, and users can work with live data. Common use cases include data from statistics departments, third-party market research databases, official press releases, and public APIs.


Prerequisites

Before you begin:

  • Have an API endpoint that returns data in CSV or JSON format.
  • Ensure the API URL is accessible from your AIV environment.
  • Supported output types: CSV and JSON.

Request Types

TypeUse Case
GETRetrieve existing data from an entity set.
POSTCreate a new object in the system and obtain information about it.

POST request type will be available in a subsequent release.


Steps to Create an External Dataset

Step 1: Open External Services

  1. Navigate to External Services in the application.

External Services


Step 2: Configure the Dataset

In Create Dataset, enter:

FieldValue
NameExternal (or your preferred name)
DatasourceExternal Services
DetailsGET
LinkYour API URL (e.g., https://api.covid19india.org/csv/latest/states.csv)
Separator, (for CSV)
Output typeCSV or JSON, as appropriate

External dataset configuration

For more API sources, see data.gov.


Step 3: Preview and Submit

  1. Click Preview to verify the data structure.
  2. Click Submit to create the dataset.

Step 4: Verify the Dataset

The External Dataset appears in the Dataset list. Double-click it to view and use the data.

External dataset created


Step 5: Use the Dataset in a Dashboard (Optional)

  1. Go to the Dashboard tab and create a dashboard, or open an existing one.
  2. From the left menu, select the Table Widget icon.
  3. In the Edit menu:
    • Select Dataset: External.ds
    • Select the fields you want to display in the Dataset column.
  4. Click Save and Publish.

Table widget with external dataset

Table widget preview


Explore other ways to create datasets in AIV:

Data SourceGuide
Drag & dropCreate Dataset
ExcelDataset using Excel
CSVDataset using CSV
JSONDataset using JSON
ParquetDataset using Parquet
NoSQLDataset using NoSQL
Flat filesDataset using Flat files
Google BigQueryDataset using Google BigQuery
Google SheetDataset using Google Sheet
Stored ProcedureDataset using Stored Procedure
ViewDataset using View

JSON file type and POST request type will be available in subsequent releases.