# Detail

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/facebook/adpixel/`

#### Query Parameters

| Name                                               | Type   | Description     |
| -------------------------------------------------- | ------ | --------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4            |
| connection\_name<mark style="color:red;">\*</mark> | String | fbads-01        |
| pixel\_id<mark style="color:red;">\*</mark>        | String | 814765166375068 |

#### Headers

| Name                               | Type   | Description |
| ---------------------------------- | ------ | ----------- |
| <mark style="color:red;">\*</mark> | String | U2Fsd...    |

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

```shell
{
    "id": "814765166375068",
    "name": "My WCA Pixel",
    "code": "<!-- Facebook Pixel Code -->\n<script nonce=\"11CSWcOo\">\n!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;\nn.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\nt.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\ndocument,'script','https://connect.facebook.net/en_US/fbevents.js');\n\nfbq('init', '814765166375068');\nfbq('track', \"PageView\");</script>\n<noscript><img height=\"1\" width=\"1\" style=\"display:none\"\nsrc=\"https://www.facebook.com/tr?id=814765166375068&ev=PageView&noscript=1\"\n/></noscript>\n<!-- End Facebook Pixel Code -->",
    "can_proxy": false,
    "creation_time": "2022-09-22T14:40:07+0700",
    "data_use_setting": "advertising_and_analytics",
    "enable_automatic_matching": false,
    "first_party_cookie_status": "first_party_cookie_enabled",
    "is_created_by_business": false,
    "is_crm": false,
    "is_unavailable": false,
    "owner_ad_account": {
        "account_id": "1217648562383717",
        "id": "act_1217648562383717"
    },
    "owner_business": {
        "id": "404745734937629",
        "name": "AppgreMarket"
    }
}
```

{% endtab %}
{% endtabs %}

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

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/facebook/adpixel?name=ft-4&connection_name=fbads-01&pixel_id=814765166375068' \
--header 'x-api-key: U2Fsd...'
```

{% endtab %}

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

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

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/facebook/adpixel?name=ft-4&connection_name=fbads-01&pixel_id=814765166375068',
  headers: { 
    'x-api-key': 'U2Fsd...'
  }
};

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://us-central1-appgregator.cloudfunctions.net/facebook/adpixel?name=ft-4&connection_name=fbads-01&pixel_id=814765166375068',
  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...'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
