# LINE Messaging API(Insight) API

> LINE Messaging API(Insight) API on Apizie: 7 endpoints (Retrieves the demographic attributes for a LINE Official Account's friends.You can only retrieve information…, Get number of message deliveries, Get number of followers, Get user interaction statistics, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/communication:line-insight/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `communication:line-insight`
- Category: Communication
- Status: byok
- Source: https://developers.line.biz/en/docs/
- Page: https://apizie.tech/api/communication/line-insight
- OpenAPI: https://apizie.tech/api/communication/line-insight/openapi.json

This document describes LINE Messaging API(Insight).

## Endpoints

### Retrieves the demographic attributes for a LINE Official Account's friends.You can only retrieve information…
`GET https://apizie.tech/v1/communication:line-insight/get-friends-demographics` (byok)

### Get number of message deliveries
`GET https://apizie.tech/v1/communication:line-insight/get-number-of-message-deliveries` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| date | string | yes | Date for which to retrieve number of sent messages. - Format: yyyyMMdd (e.g. 20191231) - Timezone: UTC+9 |

### Get number of followers
`GET https://apizie.tech/v1/communication:line-insight/get-number-of-followers` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| date | string | no | Date for which to retrieve the number of followers. Format: yyyyMMdd (e.g. 20191231) Timezone: UTC+9 |

### Get user interaction statistics
`GET https://apizie.tech/v1/communication:line-insight/get-message-event` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| requestId | string | yes | Request ID of a narrowcast message or broadcast message. Each Messaging API request has a request ID. |

### You can check the per-unit statistics of how users interact with push messages and multicast messages sent…
`GET https://apizie.tech/v1/communication:line-insight/get-statistics-per-unit` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| customAggregationUnit | string | yes | Name of aggregation unit specified when sending the message. Case-sensitive. For example, `Promotion_a` and `Promotion_A` are regarded as… |
| from | string | yes | Start date of aggregation period. Format: yyyyMMdd (e.g. 20210301) Time zone: UTC+9 |
| to | string | yes | End date of aggregation period. The end date can be specified for up to 30 days later. For example, if the start date is 20210301, the… |

### Get rich menu insight summary
`GET https://apizie.tech/v1/communication:line-insight/get-rich-menu-insight-summary` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| richMenuId | string | yes | ID of the rich menu created via the Messaging API. |
| from | string | yes | Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 |
| to | string | yes | End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd… |

### Get rich menu insight daily
`GET https://apizie.tech/v1/communication:line-insight/get-rich-menu-insight-daily` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| richMenuId | string | yes | ID of the rich menu created via the Messaging API. |
| from | string | yes | Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 |
| to | string | yes | End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd… |

## Example
```
curl "https://apizie.tech/v1/communication:line-insight/get-friends-demographics" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the LINE Messaging API(Insight) API?
Create a free Apizie key, then send GET https://apizie.tech/v1/communication:line-insight/get-friends-demographics with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the LINE Messaging API(Insight) API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. LINE Messaging API(Insight) itself also needs your own key from line.me.

### Can AI agents use the LINE Messaging API(Insight) API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key communication:line-insight.

### What is the status of the LINE Messaging API(Insight) API?
Needs your own provider key (bring your own key)
