取得會員分析數據

Get client analysis

post

Retrieve client analysis data including followers, blocks, message numbers, and tag coverage rates.

Platform filtering:

  • If platform is not specified, returns data for all platforms

  • If platform is specified, returns data only for that platform

Supported platforms: line, facebook, instagram, liveChat, whatsapp

Authorizations
Query parameters
botIdstringRequired

The bot ID for the API request

Body
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
platformstring · enumOptional

Platform type for filtering (optional, if not provided returns all platforms)

Example: linePossible values:
Responses
200
Client analysis data retrieved successfully
application/json
post
POST /api/openapi/clients/analysis HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "secret": "your_secret_key_here",
  "platform": "line"
}
{
  "success": true,
  "message": "Get client analysis successfully",
  "clientAnalysis": {
    "lineFollowers": 1250,
    "lineBlocks": 15,
    "lineGenders": [
      {
        "name": "男性",
        "percentage": 31.8
      },
      {
        "name": "女性",
        "percentage": 30.6
      },
      {
        "name": "未知",
        "percentage": 37.6
      }
    ],
    "lineAges": [
      {
        "name": "21-30歲",
        "percentage": 25.8
      },
      {
        "name": "31-40歲",
        "percentage": 18.5
      },
      {
        "name": "未知",
        "percentage": 37.6
      }
    ],
    "lineAreas": [
      {
        "name": "北北基",
        "percentage": 45.2
      },
      {
        "name": "桃竹苗",
        "percentage": 12.8
      },
      {
        "name": "未知",
        "percentage": 42
      }
    ],
    "lineAppTypes": [
      {
        "name": "iOS",
        "percentage": 62.4
      },
      {
        "name": "Android",
        "percentage": 27.7
      },
      {
        "name": "未知",
        "percentage": 9.9
      }
    ],
    "lineMessageNumbers": 5420,
    "lineIsIntegration": true,
    "lineTagCoverRate": 0.85,
    "fbFollowers": 850,
    "fbBlocks": 8,
    "fbMessageNumbers": 2100,
    "fbIsIntegration": true,
    "fbTagCoverRate": 0.75,
    "igFollowers": 920,
    "igMessageNumbers": 1800,
    "igIsIntegration": true,
    "igTagCoverRate": 0.68,
    "liveChatFollowers": 150,
    "liveChatMessageNumbers": 450,
    "liveChatIsIntegration": true,
    "liveChatTagCoverRate": 0.92,
    "whatsappFollowers": 680,
    "whatsappMessageNumbers": 1650,
    "whatsappIsIntegration": true,
    "whatsappTagCoverRate": 0.8,
    "botTotallFollowers": 3850,
    "botTotallBlocks": 23,
    "botTotallMessages": 11420
  }
}

Last updated