> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siftstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 3: Import dataset and view it in Sift

export const SiftIcon = ({className}) => <span className={`inline-flex items-center align-middle text-black dark:text-white ${className || ''}`}>
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Artwork" x="0px" y="0px" viewBox="0 0 1005.58 733.96" style={{
  enableBackground: "new 0 0 1005.58 733.96",
  width: "2em",
  height: "2em"
}} xmlSpace="preserve">
      <path fill="currentColor" d="M552.16,150.89c-165.6,0-180.29,160.61-300.62,192.32v2.67h601.24v-2.67C747.74,324.18,717.72,150.89,552.16,150.89z   M453.46,583.08c165.6,0,180.29-160.61,300.62-192.32v-2.67H152.84v2.67C257.88,409.78,287.91,583.08,453.46,583.08z" />
    </svg>
  </span>;

## Overview

As in [Step 3](../tutorial-1/step-3) of the first tutorial, where we imported the dataset using the UI, in this step we will import the dataset programmatically, in particular using the REST API.
We'll use the [CreateDataImportFromUrl](/api-reference/dataimportservice/createdataimportfromurl) endpoint instead of the [CreateDataImportFromUpload](/api-reference/dataimportservice/createdataimportfromupload) endpoint.
This approach allows us to provide a URL to the dataset rather than uploading a local file, simplifying the process for this tutorial.

## Import data

Run the cURL command below to import the dataset. The `url` parameter in the request specifies the location of the dataset, which has been provided at that URL for the purposes of this tutorial.

```bash theme={null}
curl -X POST "YOUR_REST_API_URL_HERE/api/v2/data-imports:url" \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://drive.google.com/uc?export=download&id=1Ec6GHgY24LcNftY_M39w6xT47oRHYCj_",
    "csvConfig": {
      "assetName": "fl_demo_asset",
      "runName": "fl_demo_run",
      "firstDataRow": 2,
      "timeColumn": {
        "columnNumber": 1,
        "format": "TIME_FORMAT_ABSOLUTE_RFC3339"
      },
      "dataColumns": {
        "2": { "name": "mars_date_time", "dataType": "CHANNEL_DATA_TYPE_STRING" },
        "3": { "name": "sol_number", "dataType": "CHANNEL_DATA_TYPE_STRING" },
        "4": { "name": "max_ground_temp(C)", "dataType": "CHANNEL_DATA_TYPE_DOUBLE", "units": "Celsius" },
        "5": { "name": "min_ground_temp(C)", "dataType": "CHANNEL_DATA_TYPE_DOUBLE", "units": "Celsius" },
        "6": { "name": "max_air_temp(C)", "dataType": "CHANNEL_DATA_TYPE_DOUBLE", "units": "Celsius" },
        "7": { "name": "min_air_temp(C)", "dataType": "CHANNEL_DATA_TYPE_DOUBLE", "units": "Celsius" },
        "8": { "name": "mean_pressure(Pa)", "dataType": "CHANNEL_DATA_TYPE_DOUBLE", "units": "Pa" },
        "9": { "name": "sunrise", "dataType": "CHANNEL_DATA_TYPE_STRING" },
        "10": { "name": "sunset", "dataType": "CHANNEL_DATA_TYPE_STRING" },
        "11": { "name": "UV_Radiation", "dataType": "CHANNEL_DATA_TYPE_STRING" },
        "12": { "name": "weather", "dataType": "CHANNEL_DATA_TYPE_STRING" }
      }
    }
  }'
```

**Placeholders**

* Replace `YOUR_REST_API_URL_HERE` with your REST API URL obtained in the previous step.
* Replace `YOUR_API_KEY_HERE` with your API key obtained in the previous step.
* Replace `fl` (in `fl_demo_asset` and `fl_demo_run`) with your initials.

<Accordion title="A successful response">
  ```bash theme={null}
  {
    "dataImportId": "string" 
  }
  ```
</Accordion>

## View imported data in Sift

Now that we have imported the dataset using the REST API, let's view the imported data in Sift.

1. In **Sift**, click <SiftIcon className="icon-sift" />.
2. In the **Run name or description** box, enter the name of the Run.
3. Click the name of the Run.

* **Asset ID**: Before viewing the imported data in Sift, copy and save the Asset ID, as it will be needed in [Step 4](/old-learning-path/tutorial-2/step-4) to create a Calculated Channel. Hover over the **Asset ID** field and, in the popup box, click <Icon icon="copy" /> **Copy** to copy the **Asset ID**.
* **Run ID**: Before viewing the imported data in Sift, copy and save the Run ID, as it will be needed in [Step 5](/old-learning-path/tutorial-2/step-5) to generate a Report. In the **Run ID** field, click <Icon icon="copy" /> **Copy**.

4. Click <Icon icon="arrow-up-right-from-square" /> **Explore**.
5. In the <Icon icon="wave-pulse" />  **Channels** tab, click the following Channels:
   1. <Icon icon="hashtag" /> **min\_ground\_temp(C)**
   2. <Icon icon="hashtag" /> **max\_air\_temp(C)**
   3. <Icon icon="hashtag" /> **max\_ground\_temp(C)**
   4. <Icon icon="hashtag" /> **min\_air\_temp(C)**
   5. <Icon icon="text" /> **weather**
