> ## Documentation Index
> Fetch the complete documentation index at: https://help.airbridge.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 메타데이터 가져오기 (Metric)

사용할 수 있는 리포트 메트릭을 조회합니다. \[[참고](https://docs.google.com/spreadsheets/d/13ThNnryqRmZQwJVecM8lZ2OB7LzA8s3cwLlQBGpbXLg/edit?gid=530566880#gid=530566880)]

<Card title="Try API Request" icon="rectangle-api" horizontal href="https://www.postman.com/airbridge-engineering/airbridge-api/request/ko7ihxp/get-metadata-metric" />

```text GET theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
https://api.airbridge.io/dataspec/v1/apps/{app_name}/revenue-report/metrics
```

<h2 id="메타데이터-가져오기-metric-request">
  Request
</h2>

***

<h3 id="메타데이터-가져오기-metric-headers">
  Headers
</h3>

<ParamField header="Accept-Language" type="string">
  API 요청 및 결과 반환에 사용할 언어를 지정할 수 있습니다. ISO-639-1 포맷을 따릅니다.
</ParamField>

<ParamField header="Content-Type" type="string">
  리소스의 미디어 타입을 나타냅니다. 기본값으로 `application/json`을 사용합니다.
</ParamField>

<ParamField header="Authorization" type="string">
  API 요청에 사용하는 키값입니다. [키값 생성 및 조회 방법](/ko/references/introduction)을 확인하여 획득할 수 있습니다.
</ParamField>

<h3 id="메타데이터-가져오기-metric-path-params">
  Path Params
</h3>

<ParamField path="app_name" type="string" required>
  에어브릿지 앱 이름(App Name)
</ParamField>

<RequestExample>
  ```shellscript Request theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  curl -X GET 'https://api.airbridge.io/dataspec/v1/apps/{app_name}/revenue-report/metrics' \
    -H 'Accept-Language: ko' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer {AIRBRIDGE-API-TOKEN}'
  ```
</RequestExample>

<h2 id="메타데이터-가져오기-metric-response">
  Response
</h2>

***

### 200

### 404

입력한 필드에 오류가 있거나 해당하는 리소스가 없습니다.

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  {
    "data": [
      {
        "name": "Metric",
        "metrics": [
          {
            "key": "app_revenue",
            "name": "Revenue",
            "description": "Sum of value generated from revenue events",
            "valueType": "number",
            "aggregationType": [
              "cumulative",
              "on-day"
            ]
          },
          {
            "key": "app_user_count",
            "name": "User Count",
            "description": "The total number of unique users who performed revenue events",
            "valueType": "integer",
            "aggregationType": [
              "on-day",
              "unique-cumulative"
            ]
          }
        ]
      },
      {
        "name": "Sub Metric",
        "metrics": [
          {
            "key": "customer_acquisition_cost",
            "name": "CAC",
            "description": "Customer Acquisition Cost; the average cost to acquire a user who performed Start Event within the set date range<br>Total Cost/Users",
            "valueType": "number",
            "aggregationType": null
          },
          {
            "key": "start_event_users",
            "name": "Users",
            "description": "The number of users who performed Start Event to open the app within the set date range",
            "valueType": "integer",
            "aggregationType": null
          }
        ]
      }
    ]
  }
  ```

  ```json 404 theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  {
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "traceId": "1-000000-000000000000000"
  }
  ```
</ResponseExample>
