# 실시간 ChatGPT LLM 스크래퍼

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/ai_optimization/chat_gpt/llm_scraper/live/advanced`

**Tags:** DataForSEO

사용자처럼 ChatGPT에 `keyword`를 질문하고 파싱된 답변을 반환합니다. `keyword`, `location_code`, `language_code`, `model`, `datetime`, `markdown`, `sources`, `fan_out_queries`, `brand_entities`를 반환합니다. `markdown`은 어시스턴트가 렌더링한 답변, `sources`는 인용한 페이지, `brand_entities`는 언급한 브랜드입니다. `force_web_search`는 학습 데이터 대신 브라우징으로 답하게 합니다. DataForSEO 봉투로 감싸지며 데이터는 `tasks[0].result`, 결과 상태는 `tasks[0].status_code`에 있습니다. 거부된 요청도 여전히 HTTP 200을 반환합니다. 'ChatGPT가 우리에 대해 뭐라고 말하는가'를 확인하는 엔드포인트이며, 여러 답변에서 언급을 집계하려면 반복 스크래핑 대신 `post_dataforseo_ai_llm_mentions_aggregated_metrics_live`를 사용하세요. 원시 형식은 `post_dataforseo_ai_chat_gpt_llm_scraper_live_html`입니다.

### 가격 참고

- 과금 방식: 보고된 응답 비용.
- 참조 요청 추정치: USD 0.004.
- 참조 고객 배수: 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": "<em>키워드</em><br><strong>필수 필드</strong><br><code>keyword</code> 필드에는 <strong>최대 2000자</strong>까지 지정할 수 있습니다<br>모든 %##이 디코딩됩니다(‘+’ 문자는 공백 문자로 디코딩됨)<br><code>keyword</code>에 “%” 문자를 사용하려면 “%25”로 지정하세요;<br><code>keyword</code>에 “+” 문자를 사용하려면 “%2B”로 지정하세요<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>에서 확인하세요"
          },
          "location_name": {
            "type": "string",
            "description": "<em>검색 엔진 위치의 전체 이름</em><br><strong><code>location_code</code>를 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>location_code</code>를 지정할 필요가 없습니다</strong><br>사용 가능한 검색 엔진 위치와 해당 <code>location_name</code> 목록은 <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations</code>로 별도 요청해 받을 수 있습니다<br>예:<br><code class=\"long-string\">United States</code>"
          },
          "location_code": {
            "type": "integer",
            "description": "<em>검색 엔진 위치 코드</em><br><strong><code>location_name</code>을 지정하지 않으면 필수 필드</strong><br><strong>이 필드를 사용하면 <code>location_name</code>을 지정할 필요가 없습니다</strong><br>사용 가능한 검색 엔진 위치와 해당 <code>location_code</code> 목록은 <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations</code>로 별도 요청해 받을 수 있습니다<br>예:<br><code class=\"long-string\">2840</code>"
          },
          "language_name": {
            "type": "string",
            "description": "<em>검색 엔진 언어의 전체 이름</em><br><strong><code>language_code</code>를 지정하지 않으면 필수 필드;</strong><br>이 필드를 사용하면 <code>language_code</code>를 지정할 필요가 없습니다;<br>사용 가능한 검색 엔진 언어와 해당 <code>language_name</code> 목록은 <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages</code>로 별도 요청해 받을 수 있습니다"
          },
          "language_code": {
            "type": "string",
            "description": "<em>검색 엔진 언어 코드</em><br><strong><code>language_name</code>을 지정하지 않으면 필수 필드;</strong><br>이 필드를 사용하면 <code>language_name</code>을 지정할 필요가 없습니다;<br>사용 가능한 검색 엔진 언어와 해당 <code>language_code</code> 목록은 <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages</code>로 별도 요청해 받을 수 있습니다"
          },
          "force_web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>AI 에이전트의 웹 검색 강제 사용</em><br>선택 필드<br>활성화하면 AI 모델이 현재 웹 정보에 액세스하고 인용하도록 강제됩니다;<br>기본값: <code>false</code>;<br><strong>참고:</strong> 매개변수를 <code>true</code>로 설정해도 응답에 웹 소스가 인용된다는 보장은 없습니다"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>사용자 정의 작업 식별자</em><br>선택 필드<br><em>최대 255자</em><br>이 매개변수를 사용해 작업을 식별하고 결과와 매칭할 수 있습니다<br><code>tag</code>에 지정한 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "keyword": "albert einstein"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "keyword": "albert einstein"
    }
  ]
}
```

## Responses

### 200 — 작업 성공

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

**application/json**

Schema: object | null

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

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResponseInfo`

```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_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>작업 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 배열에서 받은 키워드<br></em><strong>키워드는 %##가 디코딩된 상태로 반환됩니다('+' 기호가 공백 문자로 디코딩됨)</strong>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>POST 배열의 위치 코드</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 배열의 언어 코드</em>"
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>모델 버전을 나타냅니다</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>검색 엔진 결과로의 직접 URL<br></em>이 URL로 우리가 정확한 결과를 제공했는지 확인할 수 있습니다"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과를 받은 날짜와 시간</em><br>UTC 형식: “yyyy-mm-dd hh-mm-ss +00:00”<br>예:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>markdown 형식의 요소 콘텐츠</em><br><a href=\"https://en.wikipedia.org/wiki/Markdown\" target=\"_blank\">markdown 마크업 언어</a>로 서식이 지정된 결과 콘텐츠"
    },
    "search_results": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ChatgptSearchResult"
          }
        ]
      },
      "description": "<em>검색 결과 배열</em><br>모델이 정보를 찾을 때 검색한 모든 웹 검색 출력으로, 중복 및 사용되지 않은 항목도 포함합니다"
    },
    "sources": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_SourceInfo"
          }
        ]
      },
      "description": "<em>출처 배열</em><br>모델이 최종 답변에서 실제로 인용하거나 의존한 출처"
    },
    "fan_out_queries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>팬아웃 쿼리 배열</em><br>더 포괄적인 응답을 제공하기 위해 기본 쿼리에서 파생된 관련 검색어를 포함합니다"
    },
    "brand_entities": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_ChatGptBrandEntity"
          }
        ]
      },
      "description": "<em>브랜드 엔티티 배열</em><br>응답에서 언급된 브랜드 정보를 포함합니다"
    },
    "se_results_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> 총 결과 수</em>",
      "format": "int64"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>검색 결과 유형</em><br>SERP에서 발견된 검색 결과(<code>items</code>) 유형을 포함합니다.<br>가능한 항목 유형:<br><code>chat_gpt_text</code>, <code>chat_gpt_table</code>, <code>chat_gpt_navigation_list</code>, <code>chat_gpt_images</code>, <code>chat_gpt_local_businesses</code>, <code>chat_gpt_products</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><strong><code>items</code></strong> 배열에서 반환된 결과 수</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseChatGptLlmScraperElementItem"
          }
        ]
      },
      "description": "<em>ChatGPT 결과의 요소</em>"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmScraperLiveAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>결과 배열</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseChatGptLlmScraperElementItem

`#/components/schemas/Response36Afe1097B20_BaseChatGptLlmScraperElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "요소 유형"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>SERP 그룹 순위</em><br><code>type</code> 값이 동일한 요소 그룹 내의 위치<br><code>type</code> 값이 다른 요소의 위치는 <code>rank_group</code>에서 제외됩니다"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>SERP의 절대 순위</em><br>모든 요소 중 절대 위치"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "chat_gpt_text": "#/components/schemas/Response36Afe1097B20_ChatGptTextElementItem",
      "chat_gpt_table": "#/components/schemas/Response36Afe1097B20_ChatGptTableElementItem",
      "chat_gpt_navigation_list": "#/components/schemas/Response36Afe1097B20_ChatGptNavigationListElementItem",
      "chat_gpt_images": "#/components/schemas/Response36Afe1097B20_ChatGptImagesElementItem",
      "chat_gpt_products": "#/components/schemas/Response36Afe1097B20_ChatGptProductsElementItem",
      "chat_gpt_local_businesses": "#/components/schemas/Response36Afe1097B20_ChatGptLocalBusinessesElementItem",
      "chat_gpt_ad": "#/components/schemas/Response36Afe1097B20_ChatGptAdElementItem"
    }
  }
}
```

### 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_ChatGptBrandEntity

`#/components/schemas/Response36Afe1097B20_ChatGptBrandEntity`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "요소 유형"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>브랜드 이름</em>"
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>브랜드 카테고리</em>"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>markdown 형식의 브랜드 이름</em><br><a href=\"https://en.wikipedia.org/wiki/Markdown\" target=\"_blank\">markdown 마크업 언어</a>로 서식이 지정된 브랜드 이름을 포함합니다"
    },
    "urls": {
      "type": [
        "object",
        "null"
      ],
      "description": "<em> 브랜드와 관련된 URL 및 도메인 배열</em>"
    }
  }
}
```

### Response36Afe1097B20_ChatgptSearchResult

`#/components/schemas/Response36Afe1097B20_ChatgptSearchResult`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "요소 유형"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과 URL</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과 도메인</em>"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과 제목</em>"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과 설명</em>"
    },
    "breadcrumb": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>탐색 경로</em>"
    }
  }
}
```

### Response36Afe1097B20_SourceInfo

`#/components/schemas/Response36Afe1097B20_SourceInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "요소 유형"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>출처 제목</em>"
    },
    "snippet": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>출처 설명</em>"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>SERP의 출처 도메인</em>"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>소스 URL</em>"
    },
    "thumbnail": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>출처 썸네일</em>"
    },
    "source_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>출처 이름</em>"
    },
    "publication_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>결과가 게시된 날짜와 시간</em><br>형식: “year-month-date:minutes:UTC_difference_hours:UTC_difference_minutes”<br>예:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>markdown 형식의 요소 콘텐츠</em><br><a href=\"https://en.wikipedia.org/wiki/Markdown\" target=\"_blank\">markdown 마크업 언어</a>로 서식이 지정된 결과 콘텐츠"
    }
  }
}
```
