GetDomainBotVisitDetails

갱신 시간: 2023-02-03 10:30:45

Get the total number of domain requests, bot requests, bot relief attack requests, and Top5 bot type requests

  • 단일 사용자 통화 빈도: 300/5min
  • 해당 상품(제품): Bot Shield
API 인증에 관한 자세한 내용은 다음을 참조하십시오:API 인증 개요

요청 파라미터

Body 파라미터

파라미터 이름설명
*domainString

Domain.Separate by';'.

*startTimeString

StartTime. Format: yyyy-MM-dd HH:mm:ss

*endTimeString

EndTime. Format: yyyy-MM-dd HH:mm:ss

timeZoneInteger

Time zone, default 8, i.e.'GTM+8'

langString

Language type. Default cn. en:English cn:Chinese

응답 파라미터

Body 파라미터

파라미터 이름설명
codeString

Status code, success is '200'.

messageString

Return message, success is 'Success'.

dataList

Data returned.

domainString

Domain.

totalRequestLong

Total request count.

botRequestLong

Bot request count.

reliefAttackLong

Relief attack count.

typeTotalLong

Total attack type count.

typeString

Top5 bot types.

에러 코드

에러 코드(code)설명(message)HTTP 상태 코드설명
22994001

CUSTOMER_NOT_EXIST

200customer not exist
22994000

PARAM_ERROR_CODE

200query param error
22995000

INTERNAL_ERROR_CODE

200internal error

예제

JSON
JSON
요청 예제
복사 복사 완료
#!/bin/bash
username="example_username"
apiKey="example_apiKey" 
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url https://api.cdnetworks.com/api/bot/report/bot-visit-domain  \
-X "POST"  \
-u "$username:$password"  \
-H "Date: $date"   \
-H "Accept: application/json"  \
-H "Content-Type: application/json" \
-d '{ 
        "domain":"block3.baidu.com",
        "startTime":"2022-12-03 00:00:00",
        "endTime":"2023-12-03 23:59:59"
}'
응답 예제
복사 복사 완료
{
    "code": 200,
    "message": "SUCCESS",
    "data": [
        {
            "reliefAttack": 103,
            "botRequest": 123,
            "domain": "example1.xxx.xxx",
            "type": [
                {
                    "num": 123,
                    "name": "example1",
                    "percent": 100.000
                }
            ],
            "typeTotal": 123,
            "totalRequest": 0
        },
        {
            "reliefAttack": 0,
            "botRequest": 0,
            "domain": "example2.xxx.xxx",
            "type": [],
            "typeTotal": 0,
            "totalRequest": 0
        },
        {
            "reliefAttack": 150,
            "botRequest": 164,
            "domain": "example3.xxx.xxx",
            "type": [
                {
                    "num": 108,
                    "name": "example1",
                    "percent": 65.900
                },
                {
                    "num": 31,
                    "name": "example2",
                    "percent": 18.900
                },
                {
                    "num": 21,
                    "name": "example3",
                    "percent": 12.800
                },
                {
                    "num": 4,
                    "name": "example4",
                    "percent": 2.400
                }
            ],
            "typeTotal": 164,
            "totalRequest": 0
        }
    ]
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.