# รับสถิติของ Journey

`GET` `https://journey.pushwoosh.com/api/journey/{id}/statistics/external`

ส่งคืนสถิติสำหรับ Customer Journey ตาม ID ของมัน แทนที่ `{id}` ใน URL ด้วย [Journey ID](/th/developer/api-reference/api-identifiers/#journey-id) จาก URL ของหน้า journey canvas:

<img src="/api-reference-customer-journey-statistics-1.webp" alt="Journey ID ใน URL ของ Journey canvas"/>

ส่ง GET request โดยไม่มี body

#### Request headers

| Name | Required | Value | Description |
| --- | --- | --- | --- |
| Authorization | Yes | `Api <server_api_token>` | [Server API token](/th/developer/api-reference/api-access-token/#server-api-token) |

#### ตัวอย่างคำขอ

```shell
curl --location --request GET 'https://journey.pushwoosh.com/api/journey/<journey_id>/statistics/external' \
--header 'Authorization: Api <YOUR API TOKEN>'
```

#### ตัวอย่างการตอบกลับ

<Tabs>
<TabItem label="200">

```json
{
  "payload": {
    "title": "Journey Title",
    "points": [{
      "pointTitle": "First Point Title",
      "campaignCode": "AAAAA-00000",
      "presetCode": "12345-67890",
      "pointStat": {
        "sent": 22648,
        "opened": 60,
        "conversion": 0.26492405510420347
      }
    }]
  }
}
```

</TabItem>
</Tabs>

#### ฟิลด์ `pointStat` ของ In-app

ฟิลด์ภายใน `pointStat` จะขึ้นอยู่กับช่องทางขององค์ประกอบ journey องค์ประกอบ In-app จะส่งคืนเมตริกด้านล่างนี้แทนฟิลด์ `sent`, `opened` และ `conversion` ที่แสดงในตัวอย่างการตอบกลับด้านบน

| Field | Type | Description |
| --- | --- | --- |
| `shows` | number | จำนวนครั้งที่ข้อความ in-app ถูกแสดงให้ผู้ใช้เห็น มีป้ายกำกับว่า **Impressions** ใน [สถิติ Journey](/th/product/statistics-and-analytics/journey-statistics/overall-journey-statistics/#metrics-by-channel) |
| `interactions` | number | จำนวนการโต้ตอบของผู้ใช้กับข้อความ in-app (ตัวอย่างเช่น การคลิกปุ่ม) มีป้ายกำกับว่า **Interactions** ใน [สถิติ Journey](/th/product/statistics-and-analytics/journey-statistics/overall-journey-statistics/#metrics-by-channel) |
| `skipped` | number | จำนวนครั้งที่ผู้ใช้ข้ามหรือปิดข้อความ in-app โดยไม่มีการโต้ตอบ มีป้ายกำกับว่า **In-App Skips** ใน [สถิติ Journey](/th/product/statistics-and-analytics/journey-statistics/overall-journey-statistics/#metrics-by-channel) |

#### ตัวอย่างการตอบกลับของ In-app

```json
{
  "payload": {
    "title": "Journey Title",
    "points": [{
      "pointTitle": "In-App element title",
      "campaignCode": "AAAAA-00000",
      "presetCode": "12345-67890",
      "pointStat": {
        "shows": 3148,
        "interactions": 2759,
        "skipped": 36
      }
    }]
  }
}
```

## เนื้อหาที่เกี่ยวข้อง

<CardGrid>
  <LinkCard title="ลบผู้ใช้ออกจาก journeys" href="/developer/api-reference/customer-journey-api/drop-users/" />
  <LinkCard title="Lifecycle" href="/developer/api-reference/customer-journey-api/lifecycle/" />
  <LinkCard title="เริ่มต้นด้วย API" href="/developer/api-reference/customer-journey-api/start-by-api/" />
</CardGrid>