# List

Lists unsampled reports to which the user has access

<mark style="color:blue;">`GET`</mark> `https://ga-services-zvqgeah36q-uc.a.run.app/ga/unsampled-reports/list/`

#### Query Parameters

| Name                                               | Type   | Description  |
| -------------------------------------------------- | ------ | ------------ |
| name<mark style="color:red;">\*</mark>             | String | ft-4         |
| connection\_name<mark style="color:red;">\*</mark> | String | ga-02        |
| account\_id<mark style="color:red;">\*</mark>      | String | 6712930      |
| webproperty\_id<mark style="color:red;">\*</mark>  | String | UA-6712930-1 |
| profiles\_id<mark style="color:red;">\*</mark>     | String | 13573529     |

#### Headers

| Name                                            | Type   | Description                                                                                                                                                                                                                                    |
| ----------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| x-api-key<mark style="color:red;">\*</mark>     | String | U2Fsd...                                                                                                                                                                                                                                       |
| Authorization<mark style="color:red;">\*</mark> | String | ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z\_XAHwWXzNEUoyCCcA4MticQ1x2Ku\_CUnNCcAg2zg\_Oc\_UWd\_gVUr80gfYLVchm\_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm\_sq\_vXRwN\_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182 |

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
{
    "kind": "analytics#unsampledReports",
    "username": "sschouse@gmail.com",
    "totalResults": 0,
    "startIndex": 1,
    "itemsPerPage": 1000,
    "items": []
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/unsampled-reports/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529' \
--header 'x-api-key: U2Fsd...' \
--header 'Authorization: ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/unsampled-reports/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529',
  headers: { 
    'x-api-key': 'U2Fsd...', 
    'Authorization': 'ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/unsampled-reports/list?name=ft-4&connection_name=ga-02&account_id=6712930&webproperty_id=UA-6712930-1&profiles_id=13573529',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: U2Fsd...',
    'Authorization: ya29.a0Aa4xrXPgfscocWaLFAjpjVmeOE4ylR25e2z_XAHwWXzNEUoyCCcA4MticQ1x2Ku_CUnNCcAg2zg_Oc_UWd_gVUr80gfYLVchm_k5am51ObCiVVn8RdRBJbJRw2S9621BBpxtzRjXxu0Q7LqdELX3HjIoaatm_sq_vXRwN_4l0vDbAxEaCgYKATASARMSFQEjDvL9mdgUKe6n1K7ptMwJrY19xQ0182'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
