Simultaneous access (CCU) inquiry

Prev Next

We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

For the 3 selected dates, you can search concurrent users by hour.

request

GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/user/statistics/ccu?oneDate={oneDate}&twoDate={twoDate}&threeDate={threeDate}
Item type Required Explanation Remark
projectId String O ProjectId in GamePot SDK
oneDate String X Date of first inquiry YYYY-MM-DD
twoDate String X Second date YYYY-MM-DD
threeDate String X 3rd date YYYY-MM-DD
Note

Queries are oneDate, twoDate, and threeDate, and if not, query up to 2 days before and including the day.

Request header

Header name Required Explanation
x-api-key O Authentication key issued by GamePot
accept-language X Language used

answer

필드명 타입 설명
status Int Result (1: Success )
totalCount Int ccu Search Result (Number)
createdAt String Counting date and time
one Int Number of concurrent users (for the first date) at that time
two Int Number of concurrent users (at the second date)
three Int Number of concurrent users (at the third date) at the time

example

Request example

curl --request GET \
--url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/user/statistics/ccu?oneDate=2020-03-01&twoDate=2020-04-01&threeDate=2020-05-09
--header 'accept-language: ko' \
--header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'

Example response

{
  "status": 1,
  "result": {
    "totalCount": 1440,
    "edges": [
      {
        "node": {
          "createdAt": "00:00",
          "one": 0,
          "two": 0,
          "three": 0
        }
      },

        ...

      {
        "node": {
          "createdAt": "23:59",
          "one": 0,
          "two": 0,
          "three": null
        }
      }
    ]
  }
}

Error code

Common error code that occurs when requesting Gamepot Open API.

parameter Explanation
status Error code (1: Refer to Error code in case of success or failure )
message Error details
Error code Explanation
-1 If you used a key that is not on the dashboard
-2 The key of the dashboard and the key of the header are different.
-3 When using a key deleted from the dashboard
-4 The dashboard used unused keys.
-5 If the key has expired
-6 If there is no project ID
{
  "status": -6,
  "message": "projectId was wrong."
}

This is an error code that occurs when requesting the concurrent access (CCU) inquiry API.

Error code Explanation
-11 If the format of the threeDate value is incorrect, only YYYY-MM-DD format is possible
-12 If the format of the twoDate value is incorrect, only YYYY-MM-DD format is possible
-13 If the format of oneDate value is incorrect, only YYYY-MM-DD format is possible