--- title: "사용량 조회" slug: "getglobalcdnusagedata" tags: ["Global CDN"] updated: 2026-10-22T10:47:15Z published: 2026-10-22T10:47:15Z canonical: "api-gov.ncloud-docs.com/getglobalcdnusagedata" --- > ## Documentation Index > Fetch the complete documentation index at: https://api-gov.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # 사용량 조회 Classic/VPC 환경에서 이용 가능합니다. 조회 기간 내 CDN 서비스 사용량을 조회합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET \| POST | /cdn/v2/getGlobalCdnUsageData | 참고 가이드는 GET 방식 기준으로 안내합니다. POST 방식의 호출 테스트는 네이버 클라우드 플랫폼 콘솔의 API Gateway 서비스에서 Swagger를 통해서 가능합니다. ### 요청 헤더 Global CDN API에서 공통으로 사용하는 헤더에 대한 정보는 [Global CDN 요청 헤더](/docs/global-cdn-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 쿼리 파라미터 요청 쿼리 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `cdnInstanceNoList.N` | Array | Required | CDN 인스턴스 번호 목록 - [인스턴스 조회](/docs/networking-cdn-getglobalcdninstancelist) 참조 - <예시> `cdnInstanceNoList.1=2323&cdnInstanceNoList.2=1212` | | `startDate` | String | Required | 조회 시작 일시 - yyyyMMddHH 형식 - 조회 시작 일시부터 1일 간격 집계 데이터 조회 | | `endDate` | String | Required | 조회 종료 일시 - yyyyMMddHH 형식 | | `responseFormatType` | String | Optional | 응답 데이터의 형식 - `xml` (기본값) \| `json` | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://ncloud.apigw.gov-ntruss.com/cdn/v2/getGlobalCdnUsageData ?cdnInstanceNoList.1=2851**** &startDate=2025071623 &endDate=2025071817 &responseFormatType=json' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## 응답 응답 형식을 설명합니다. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `getGlobalCdnUsageDataResponse` | Object | - | 응답 결과 | | `getGlobalCdnUsageDataResponse.startDate` | String | - | 조회 시작 일시 | | `getGlobalCdnUsageDataResponse.endDate` | String | - | 조회 종료 일시 | | `getGlobalCdnUsageDataResponse.aggregation` | Number | - | 집계 주기(초) | | `getGlobalCdnUsageDataResponse.volumeDataRecordList` | Array | - | 전송량 데이터 목록 - `[timestamp, value]` 형식 | | `getGlobalCdnUsageDataResponse.requestDataRecordList` | Array | - | 요청 수 데이터 목록 - `[timestamp, value]` 형식 | | `getGlobalCdnUsageDataResponse.bandwidthDataRecordList` | Array | - | 트래픽 데이터 목록 - `[timestamp, value]` 형식 | | `getGlobalCdnUsageDataResponse.volumeDataUnit` | String | - | 전송량 단위: `bytes` (유효 값) | | `getGlobalCdnUsageDataResponse.requestDataUnit` | String | - | 요청 수 단위: `count` (유효 값) | | `getGlobalCdnUsageDataResponse.bandwidthDataUnit` | String | - | 트래픽 단위: `Mbps` (유효 값) | | `getGlobalCdnUsageDataResponse.pointStart` | Number | - | 조회 시작 일시(밀리초) - Unix Timestamp 형식 | | `getGlobalCdnUsageDataResponse.pointInterval` | Number | - | 집계 주기(밀리초) | | `getGlobalCdnUsageDataResponse.maxBandwidth` | Number | - | 조회 기간 내 최대 트래픽 | | `getGlobalCdnUsageDataResponse.totalVolume` | Number | - | 조회 기간 내 총 전송량 | | `getGlobalCdnUsageDataResponse.totalRequest` | Number | - | 조회 기간 내 총 요청 수 | | `getGlobalCdnUsageDataResponse.requestId` | String | - | 요청에 대한 아이디 - UUID 형식 | | `getGlobalCdnUsageDataResponse.returnCode` | String | - | 응답 코드 | | `getGlobalCdnUsageDataResponse.returnMessage` | String | - | 응답 메시지 | ### 응답 상태 코드 Global CDN API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Global CDN 응답 상태 코드](/docs/global-cdn-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "getGlobalCdnUsageDataResponse": { "startDate": "2025071623", "endDate": "2025071817", "aggregation": 86400, "volumeDataRecordList": [ [ 1752674400000, 0 ], [ 1752760800000, 1371687657 ] ], "requestDataRecordList": [ [ 1752674400000, 0 ], [ 1752760800000, 6 ] ], "bandwidthDataRecordList": [ [ 1752674400000, 0 ], [ 1752760800000, 0.12112437857521904 ] ], "volumeDataUnit": "bytes", "requestDataUnit": "count", "bandwidthDataUnit": "Mbps", "pointStart": 1752674400000, "pointInterval": 86400000, "maxBandwidth": 0.12112437857521904, "totalVolume": 1371687657, "totalRequest": 6, "requestId": "1078eac6-****-****-****-8debf82391a8", "returnCode": "0", "returnMessage": "success" } } ```