# Detail Page Id

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

#### Query Parameters

| Name                                                     | Type   | Description                    |
| -------------------------------------------------------- | ------ | ------------------------------ |
| name<mark style="color:red;">\*</mark>                   | String | ft-4                           |
| connection\_name<mark style="color:red;">\*</mark>       | String | fbads-01                       |
| search<mark style="color:red;">\*</mark>                 | String | Perumahan Logam Bangun Setia 2 |
| ad\_reached\_countries<mark style="color:red;">\*</mark> | String | id                             |
| page\_id<mark style="color:red;">\*</mark>               | Number | 215485402619685                |
| languages<mark style="color:red;">\*</mark>              | String | id                             |

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

```javascript
{
    "data": [
        {
            "id": "372300758093411",
            "ad_creation_time": "2022-03-30",
            "ad_creative_bodies": [
                "PERUM LBS 2 CIBITUNG BEKASI\n👉 HADIR KEMBALI DENGAN DP 0\n👉 DESIGN RUMAH LEBIH ELEGAN\n👉 INVESTASIKAN PENGHASILAN UNTUK MEMBELI RUMAH\n\n👉 Booking fee 1.000.000\n👉 Saldo endapan 2.850.000\n👉 Administrasi 800.000\n(TOTAL 4.650.000)\n\nSpesifikasi :\n√ Double dinding\n√ Kamar tidur 2\n√ Kamar mandi sdh dibelakang\n√ Tembok belakang tinggi 2,5meter\n√ Air sampe ngocoooorr + mesin\n\n👉 Sudah ramai penduduk\n👉 Sarana ibadah (Masjid)\n👉 Sudah terbentuk Rt Rw\n👉 Alfamart\n👉 Klinik 24jam\n\nInfo lengkap hubungi marketing kami.\nBerkah Agency Property - BAP\nwa.me/6287871300015"
            ],
            "ad_delivery_start_time": "2022-03-30",
            "ad_delivery_stop_time": "2022-04-03",
            "ad_snapshot_url": "https://www.facebook.com/ads/archive/render_ad/?id=372300758093411&access_token=EAAIikVy3mZCABANRy0A0YI73xTdQxKnGQpVZAIMWJ7hO2DrRfuxz2sU2r0ZAKbAzQ0ZBMqJqii09MkbonRkGRPvnZCDsWWOmEiZALCKfkPIGBZBFEDK3AiZAkR6WSJqkdwrJx0ZBZAta3d2VkxOWTBwPHZB3jmipguh4WWbOsjYlUsSKDOqvktmKjFI1Mv1Kpq4dmeP1bdO1nEh41l0qM8M0GCd",
            "currency": "IDR",
            "delivery_by_region": [
                {
                    "percentage": "0.366742",
                    "region": "Jakarta"
                },
                {
                    "percentage": "0.00055",
                    "region": "Central Java"
                },
                {
                    "percentage": "0.632708",
                    "region": "West Java"
                }
            ],
            "demographic_distribution": [
                {
                    "percentage": "6.2E-5",
                    "age": "18-24",
                    "gender": "unknown"
                },
                {
                    "percentage": "0.001807",
                    "age": "55-64",
                    "gender": "female"
                },
                {
                    "percentage": "0.078941",
                    "age": "35-44",
                    "gender": "female"
                },
                {
                    "percentage": "0.107788",
                    "age": "18-24",
                    "gender": "male"
                },
                {
                    "percentage": "0.158505",
                    "age": "25-34",
                    "gender": "female"
                },
                {
                    "percentage": "0.066231",
                    "age": "18-24",
                    "gender": "female"
                },
                {
                    "percentage": "0.161994",
                    "age": "35-44",
                    "gender": "male"
                },
                {
                    "percentage": "0.3081",
                    "age": "25-34",
                    "gender": "male"
                },
                {
                    "percentage": "0.041121",
                    "age": "45-54",
                    "gender": "female"
                },
                {
                    "percentage": "0.071776",
                    "age": "45-54",
                    "gender": "male"
                },
                {
                    "percentage": "0.000125",
                    "age": "45-54",
                    "gender": "unknown"
                },
                {
                    "percentage": "0.003053",
                    "age": "55-64",
                    "gender": "male"
                },
                {
                    "percentage": "0.000312",
                    "age": "35-44",
                    "gender": "unknown"
                },
                {
                    "percentage": "0.000187",
                    "age": "25-34",
                    "gender": "unknown"
                }
            ],
            "estimated_audience_size": {
                "lower_bound": "1000001"
            },
            "impressions": {
                "lower_bound": "20000",
                "upper_bound": "24999"
            },
            "page_id": "215485402619685",
            "page_name": "Perumahan Logam Bangun Setia 2",
            "publisher_platforms": [
                "facebook",
                "instagram",
                "messenger"
            ],
            "spend": {
                "lower_bound": "400000",
                "upper_bound": "449999"
            }
        }
    ],
    "paging": {
        "cursors": {
            "after": "c2NyYXBpbmdfY3Vyc29yOk1UWTBPRFkwT0RBME1Eb3pOekl6TURBM05UZA3dPVE0wTVRFPQZDZD"
        },
        "next": "https://graph.facebook.com/v14.0/ads_archive?access_token=EAAIikVy3mZCABANRy0A0YI73xTdQxKnGQpVZAIMWJ7hO2DrRfuxz2sU2r0ZAKbAzQ0ZBMqJqii09MkbonRkGRPvnZCDsWWOmEiZALCKfkPIGBZBFEDK3AiZAkR6WSJqkdwrJx0ZBZAta3d2VkxOWTBwPHZB3jmipguh4WWbOsjYlUsSKDOqvktmKjFI1Mv1Kpq4dmeP1bdO1nEh41l0qM8M0GCd&fields=id%2Cad_creation_time%2Cad_creative_bodies%2Cad_creative_link_captions%2Cad_creative_link_descriptions%2Cad_creative_link_titles%2Cad_delivery_start_time%2Cad_delivery_stop_time%2Cad_snapshot_url%2Ccurrency%2Cdelivery_by_region%2Cdemographic_distribution%2Cestimated_audience_size%2Cimpressions%2Cpage_id%2Cpage_name%2Cpublisher_platforms%2Cspend&search_page_ids=215485402619685&ad_reached_countries=id&languages=id&limit=1&after=c2NyYXBpbmdfY3Vyc29yOk1UWTBPRFkwT0RBME1Eb3pOekl6TURBM05UZA3dPVE0wTVRFPQZDZD"
    }
}
```

{% endtab %}
{% endtabs %}

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

```shell
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/facebook/archive/page?name=ft-4&connection_name=insta-ft-4&ad_reached_countries=id&languages=id&page_id=215485402619685' \
--header 'x-api-key: U2FsdG...'
```

{% endtab %}

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

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

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/facebook/archive/page?name=ft-4&connection_name=insta-ft-4&ad_reached_countries=id&languages=id&page_id=215485402619685',
  headers: { 
    'x-api-key': 'U2FsdG...'
  }
};

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/archive/page?name=ft-4&connection_name=insta-ft-4&ad_reached_countries=id&languages=id&page_id=215485402619685',
  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: U2FsdG...'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
