APIS > PUBLISH > 보고서

보고서 정보를 JSON 형식으로 전달하는 API 서비스 입니다.

요청 주소 (Request URL)

GET https://imp.piclick.kr/api/stats.php

요청 변수 (Request Parameters)

파라미터 타입 설명 예시
apikey string API KEY
from integer 조회 시작 일자 (Ymd)
default 종료일자와 동일
20230101
to integer 조회 종료 일자 (Ymd)
default 오늘
20230102

출력 결과 (Response Element)

출력 변수 타입 설명
name string 매체명 (개인사업자인 경우, 유저명)
{영역번호} object 영역번호
api_key string AI영역 : 영역의 api key
일반배너: NULL
name string 영역명
sales object 결과 정보
{일자(Ymd)} object 일자별 결과 정보
imp_cnt integer 노출수
click_cnt integer 클릭수
CTR float CTR
ad_sales integer 수익금
error_msg string 에러 발생 시, 에러메시지

예제 (example)

https://imp.piclick.kr/api/stats.php?apikey={apikey}&from=20230101&to=20230102
{
    "name": "매체명",
    "7878": {
        "api_key": null,
        "name": "M_포토기사면_좌측날개최상단_200x200",
        "sales": {
            "20230101": {
                "imp_cnt": 1000,
                "click_cnt": 15,
                "CTR": 1.5,
                "ad_sales": 150
            },
            "20230102": {
                "imp_cnt": 1001,
                "click_cnt": 16,
                "CTR": 1.6,
                "ad_sales": 160
            }
        }
    },
    "7879": {
        "api_key": null,
        "name": "M_기사면_메인중단_200x200",
        "sales": {
            "20230101": {
                "imp_cnt": 1000,
                "click_cnt": 15,
                "CTR": 1.5,
                "ad_sales": 150
            },
            "20230102": {
                "imp_cnt": 1001,
                "click_cnt": 16,
                "CTR": 1.6,
                "ad_sales": 160
            }
        }
    }
}
            

© 2024 PSR Media Inc. All Rights Reserved. / 관련문의 : web@piclick.me