# Google AI 모드 SERP 작업 설정

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/google/ai_mode/task_post`

**Tags:** DataForSEO

쿼리에 대한 Google AI 모드 답변을 인용한 소스와 함께 대기열에 넣고 `tasks[0].id`에 작업 `id`를 반환합니다. DataForSEO 응답 봉투로 감싸집니다. 데이터는 `tasks[0].result`, 처리 결과는 `tasks[0].status_code`에 있으며, 거부된 요청도 HTTP 200을 반환합니다. 라이브 버전은 즉시 응답하므로 단일 쿼리에 더 간단합니다. 배치가 도구 호출 시간을 넘길 때는 대기열에 넣으세요.

### 가격 참고

- 과금 기준: 응답에 보고된 비용.
- 참고 요청 추정치: USD 0.02.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.

참고용 메타데이터일 뿐이며, 계정 견적 또는 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "description": "<p><em>키워드</em><p><strong>필수 필드</strong><p><code>keyword</code> 필드에는 <strong>최대 700자</strong>를 지정할 수 있습니다<p>모든 %##는 디코딩됩니다(‘+’ 문자는 공백 문자로 디코딩됩니다)<p><code>keyword</code>에 “%” 문자를 사용해야 하면 “%25”로 지정하세요;<p><code>keyword</code>에 “+” 문자를 사용해야 하면 “%2B”로 지정하세요</p><br><p>DataForSEO API의 <code>keyword</code> 및 <code>keywords</code> 필드 규칙과 제한은 이 <a href=\"https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis\" rel=\"noopener noreferrer\" target=\"_blank\">Help Center 문서</a>에서 자세히 확인하세요</p>"
          },
          "location_code": {
            "type": "integer",
            "description": "<p><em>검색 엔진 위치 코드</em><p><strong><code>location_name</code>&nbsp;또는 <code>location_coordinate</code>를 지정하지 않으면 필수 필드</strong><p><strong>이 필드를 사용하면 <code>location_name</code> 또는 <code>location_coordinate</code>를 지정할 필요가 없습니다</strong><p>사용 가능한 위치와 해당 <code>location_code</code> 목록은 <code>https://api.dataforseo.com/v3/serp/google/locations</code>에 별도 요청해 받을 수 있습니다<p><strong>참고:</strong> AI 모드가 현재 제공되는 국가 목록은 <a href=\"https://support.google.com/websearch/answer/16011537?hl=en&amp;co=GENIE.Platform%3DAndroid#\" target=\"_blank\"> Google Search Help</a>에서 확인하세요</p>"
          },
          "language_code": {
            "type": "string",
            "description": "<p><em>검색 엔진 언어 코드</em><p><code>language_name</code>을 지정하지 않으면 필수 필드;<p>이 필드를 사용하면 <code>language_name</code>을 지정할 필요가 없습니다;<p>사용 가능한 언어와 해당 <code>language_code</code>&nbsp;목록은 <code>https://api.dataforseo.com/v3/serp/google/ai_mode/languages</code>로 별도 요청해 받을 수 있습니다</p>"
          },
          "priority": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>작업 우선순위</em><p>선택 필드<p>다음 값을 사용할 수 있습니다:<p>1 – 일반 실행 우선순위(기본값)<p>2 – 높은 실행 우선순위</p><br>실행 우선순위가 높은 작업에는 추가 요금이 부과됩니다.<p>비용은 <a title=\"Pricing\" href=\"https://dataforseo.com/pricing/serp/google-ai-mode-serp-api\" target=\"_blank\" rel=\"noopener noreferrer\">가격</a> 페이지에서 계산할 수 있습니다."
          },
          "device": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>기기 유형</em><p>선택 필드<p>특정 기기 유형의 결과 반환<p>다음 값 중에서 선택하세요:<code>desktop</code>, <code>mobile</code><p>기본값: <code>desktop</code></p>"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>완료된 작업의 알림 URL</em><p>선택 필드<p>작업이 완료되면 지정한 URL로 GET 요청을 보내 알립니다<p>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<p>예:<p><code>http://your-server.com/pingscript?id=$id</code><p><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><p><strong>참고:</strong> <code>pingback_url</code>의 특수 문자는 urlencoded됩니다;<p>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다</p><br><p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요</p>"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>작업 결과를 보내는 URL</em><p>선택 필드<p>작업이 완료되면 결과를 <code>gzip</code> 형식으로 압축해 지정한 <code>postback_url</code>로 POST 요청을 보냅니다<p>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<p>예:<p><code>http://your-server.com/postbackscript?id=$id</code><p><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><p><strong>참고:</strong> <code>postback_url</code>의 특수 문자는 URL 인코딩됩니다;<p>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다</p><br><p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요</p>"
          },
          "postback_data": {
            "type": "string",
            "description": "<p><em>postback_url 데이터 유형</em><p><strong><code>postback_url</code>을 지정하면 필수 필드</strong><p>작업 설정에 사용한 함수에 해당합니다<p>가능한 값:<p><code>advanced</code>, <code>html</code></p>"
          },
          "location_name": {
            "type": "string",
            "description": "<p><em>검색 엔진 위치의 전체 이름</em><p><strong><code>location_code</code> 또는 <code>location_coordinate</code>를 지정하지 않으면 필수 필드</strong><p><strong>이 필드를 사용하면 <code>location_code</code> 또는 <code>location_coordinate</code>를 지정할 필요가 없습니다</strong><p>사용 가능한 위치와 해당 <code>location_name</code> 목록은 <code>https://api.dataforseo.com/v3/serp/google/locations</code>에 별도 요청해 받을 수 있습니다<p><strong>참고:</strong> AI 모드가 현재 제공되는 국가 목록은 <a href=\"https://support.google.com/websearch/answer/16011537?hl=en&amp;co=GENIE.Platform%3DAndroid#\" target=\"_blank\"> Google Search Help</a>에서 확인하세요</p>"
          },
          "language_name": {
            "type": "string",
            "description": "<p><em>검색 엔진 언어의 전체 이름</em><p><code>language_code</code>를 지정하지 않으면 필수 필드;<p>이 필드를 사용하면 <code>language_code</code>를 지정할 필요가 없습니다;<p>사용 가능한 언어와 해당 <code>language_name</code> 목록은 <code>https://api.dataforseo.com/v3/serp/google/ai_mode/languages</code>로 별도 요청해 받을 수 있습니다;</p>"
          },
          "os": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>기기 운영 체제</em><p>선택 필드<p><code>desktop</code>을 <code>device</code> 필드에 지정하면 다음 값 중에서 선택하세요: <code>windows</code>, <code>macos</code><p>기본값: <code>windows</code><p><code>mobile</code>을 <code>device</code> 필드에 지정하면 다음 값 중에서 선택하세요: <code>android</code>, <code>ios</code><p>기본값: <code>android</code></p>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>사용자 정의 작업 식별자</em><p>선택 필드<p><em>최대 255자</em><p>이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다<p>지정한 <code>tag</code> 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다</p>"
          },
          "calculate_rectangles": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<p><em>고급 결과에서 SERP 요소의 픽셀 순위 계산</em><p>선택 필드<p>픽셀 순위는 결과 스니펫과 화면 왼쪽 위 모서리 사이의 거리를 의미합니다;<p><a href=\"https://dataforseo.com/help-center/pixel-ranking-in-serp-api\">자세한 내용은 Help Center에서 확인하세요&gt;&gt;</a><p>기본적으로 이 매개변수는 <code>false</code>로 설정됩니다<p><strong>참고:</strong> <code>true</code>로 설정하면 작업당 요금이 2배가 됩니다</p>"
          },
          "browser_screen_width": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>브라우저 화면 너비</em><p>선택 필드<p>특정 기기의 픽셀 순위를 계산하도록 사용자 지정 브라우저 화면 너비를 설정할 수 있습니다;<p>다음 범위 내에서 지정할 수 있습니다: <code>240-9999</code>;<p>기본적으로 이 매개변수는 다음과 같이 설정됩니다:<p><code>1920</code> — <code>desktop</code>;<p><code>360</code> — <code>mobile</code>(<code>android</code>);<p><code>375</code> — <code>mobile</code>(<code>iOS</code>);<p><strong>참고:</strong> 이 매개변수를 사용하려면 <code>calculate_rectangles</code>를 <code>true</code>로 설정하세요</p>",
            "format": "int64"
          },
          "browser_screen_height": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>브라우저 화면 높이</em><p>선택 필드<p>특정 기기의 픽셀 순위를 계산하도록 사용자 지정 브라우저 화면 높이를 설정할 수 있습니다;<p>다음 범위 내에서 지정할 수 있습니다: <code>240-9999</code>;<p>기본적으로 이 매개변수는 다음과 같이 설정됩니다:<p><code>1080</code> — <code>desktop</code>;<p><code>640</code> — <code>mobile</code>(<code>android</code>);<p><code>812</code> — <code>mobile</code>(<code>iOS</code>);<p><strong>참고:</strong> 이 매개변수를 사용하려면 <code>calculate_rectangles</code>를 <code>true</code>로 설정하세요</p>"
          },
          "browser_screen_resolution_ratio": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>브라우저 화면 해상도 비율</em><p>선택 필드<p>특정 기기의 픽셀 순위를 계산하도록 사용자 지정 브라우저 화면 해상도 비율을 설정할 수 있습니다;<p>다음 범위 내에서 지정할 수 있습니다: <code>0.5-3</code>;<p>기본적으로 이 매개변수는 다음과 같이 설정됩니다:<p><code>1</code> — <code>desktop</code>;<p><code>3</code> — <code>mobile</code>(<code>android</code>);<p><code>3</code> — <code>mobile</code>(<code>iOS</code>);<p><strong>참고:</strong> 이 매개변수를 사용하려면 <code>calculate_rectangles</code>를 <code>true</code>로 설정하세요</p>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<p><em>위치의 GPS 좌표</em><p><strong><code>location_name</code>&nbsp;또는 <code>location_code</code>를 지정하지 않으면 필수 필드</strong><p><strong>이 필드를 사용하면 <code>location_name</code> 또는 <code>location_code</code>를 지정할 필요가 없습니다</strong><p><code>location_coordinate</code> 매개변수는 <em>\"latitude,longitude,zoom\"</em> 형식으로 지정해야 합니다<p><em>\"zoom\"</em>을 지정하지 않으면 <em>9z</em>가 기본값으로 적용됩니다<p><em>\"latitude\"</em>와 <em>\"longitude\"</em>의 최대 소수 자릿수: 7<p><em>\"zoom\"</em>의 최솟값: 4z<p><em>\"zoom\"</em>의 최댓값: 18z<p>예:<p><code class=\"long-string\">52.6178549,-155.352142,18z</code></p>"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "keyword": "what is google ai mode"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "keyword": "what is google ai mode"
    }
  ]
}
```

## Responses

### 200 — 작업 성공

Headers:
- `X-Request-Id` (string) — Felo 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAiModeTaskPostResponseInfo"
    }
  ]
}
```

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API의 현재 버전"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "일반 상태 코드입니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "일반 정보 메시지입니다.\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "총 실행 시간(초)"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks 배열의 작업 수",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "오류와 함께 반환된 tasks 배열의 작업 수",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업 식별자\n시스템 내 고유 작업 식별자(UUID 형식)"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "작업의 상태 코드\nDataForSEO가 생성하며 10000-60000 범위일 수 있습니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "작업의 정보 메시지\n일반 정보 메시지 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "실행 시간, 초"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "전체 작업 비용, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result 배열의 요소 수",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL 경로"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "POST 요청에 지정한 것과 동일한 매개변수를 포함합니다"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAiModeTaskPostResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAiModeTaskPostResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAiModeTaskPostTaskInfo"
              }
            ]
          },
          "description": "<em>작업 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpGoogleAiModeTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAiModeTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>결과 배열</em><br>이 경우 값은 <code>null</code>입니다"
        }
      }
    }
  ]
}
```
