# ดึงผล Gemini LLM Scraper Advanced

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/ai_optimization/gemini/llm_scraper/task_get/advanced/{id}`

**Tags:** DataForSEO

ดึงงาน scrape ของ Gemini ที่อยู่ในคิวตาม `id` ในรูปแบบที่แยกวิเคราะห์แล้ว โครงสร้างเดียวกับ `post_dataforseo_ai_gemini_llm_scraper_live` ห่อด้วย envelope ของ DataForSEO: ข้อมูลอยู่ใน `tasks[0].result` ผลลัพธ์อยู่ใน `tasks[0].status_code` — คำขอที่ถูกปฏิเสธยังคงคืน HTTP 200

### ข้อมูลอ้างอิงราคา

- การวัดปริมาณการใช้งาน: ต้นทุนการตอบกลับที่รายงาน
- ค่าประมาณคำขออ้างอิง: USD 0.012
- ตัวคูณอ้างอิงสำหรับลูกค้า: 1.0 ห้ามนำไปใช้ซ้ำกับยอดที่เรียกเก็บจากลูกค้าแล้ว

เป็นข้อมูลเมตาอ้างอิงเท่านั้น ไม่ใช่ใบเสนอราคาสำหรับบัญชี ไม่ใช่ราคาที่รับประกัน และไม่ใช่เพดานการใช้จ่าย เครดิตของทรัพยากรไม่ใช่เครดิต Felo ยอดเรียกเก็บขั้นสุดท้ายเป็นไปตามบันทึกการเรียกเก็บเงินของ Felo

## Related links

- [ตัวระบุที่ไม่ซ้ำกันแบบสากล (UUID)](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)
- [ภาษามาร์กอัป markdown](<https://en.wikipedia.org/wiki/Markdown>)

## Base URL

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

## Authentication

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

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>ตัวระบุงาน</em><br>ตัวระบุที่ไม่ซ้ำกันแบบสากล (UUID)<br><strong>ตัวระบุงานที่ไม่ซ้ำกันในระบบของเรา</strong><br>คุณจะสามารถใช้มันได้ภายใน <strong>30 วัน</strong> เพื่อขอผลลัพธ์ของงานได้ตลอดเวลา |

## Responses

### 200 — ดำเนินการสำเร็จ

Headers:
- `X-Request-Id` (string) — ตัวระบุคำขอที่ต้องระบุเมื่อติดต่อฝ่ายสนับสนุนของ Felo

**application/json**

Schema: object | null

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

### 400 — ไม่สามารถประมวลผลคำขอได้ ตรวจสอบพารามิเตอร์ของคำขอ

### 401 — จำเป็นต้องใช้คีย์ API ของ Felo ที่ถูกต้อง

### 402 — ไม่สามารถดำเนินการตามคำขอได้ เนื่องจากไม่เป็นไปตามข้อกำหนดด้านการเรียกเก็บเงิน

### 403 — บัญชีไม่ได้รับอนุญาตให้ดำเนินการนี้

### 429 — ถึงขีดจำกัดคำขอหรือการใช้จ่ายแล้ว

### 502 — บริการไม่สามารถดำเนินการตามคำขอให้เสร็จสิ้นได้

### 503 — API หรือบริการเรียกเก็บเงินไม่พร้อมใช้งานชั่วคราว

### 504 — บริการหมดเวลาระหว่างประมวลผลคำขอ

### default — การตอบกลับข้อผิดพลาด; การตอบกลับที่ส่งผ่านจากต้นทางอาจใช้รูปแบบของผู้ให้บริการ

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResponseInfo`

```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_AiOptimizationGeminiLlmScraperTaskGetAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของงาน</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedResultInfo`

```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>"
    },
    "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>เนื้อหาของผลลัพธ์ที่จัดรูปแบบด้วยภาษามาร์กอัป markdown"
    },
    "sources": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_SourceInfo"
          }
        ]
      },
      "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>มีประเภทของผลการค้นหา (<code>items</code>) ที่พบใน SERP<br>ประเภทรายการที่เป็นไปได้:<br><code>gemini_text</code>, <code>gemini_table</code>, <code>gemini_images</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_BaseGeminiLlmScraperElementItem"
          }
        ]
      },
      "description": "<em>รายการที่มีอยู่ในองค์ประกอบ</em>"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmScraperTaskGetAdvancedTaskInfo`

```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_AiOptimizationGeminiLlmScraperTaskGetAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>อาร์เรย์ของผลลัพธ์</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseGeminiLlmScraperElementItem

`#/components/schemas/Response36Afe1097B20_BaseGeminiLlmScraperElementItem`

```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>ตำแหน่งสัมบูรณ์เทียบกับองค์ประกอบทั้งหมดใน SERP"
    },
    "markdown": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>เนื้อหาขององค์ประกอบในรูปแบบ markdown</em><br>เนื้อหาของผลลัพธ์ที่จัดรูปแบบด้วยภาษามาร์กอัป markdown"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "gemini_text": "#/components/schemas/Response36Afe1097B20_GeminiTextElementItem",
      "gemini_table": "#/components/schemas/Response36Afe1097B20_GeminiTableElementItem",
      "gemini_images": "#/components/schemas/Response36Afe1097B20_GeminiImagesElementItem"
    }
  }
}
```

### 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": "รหัสสถานะของงาน\nสร้างโดย DataForSEO โดยอยู่ในช่วงต่อไปนี้ได้: 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_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>เนื้อหาของผลลัพธ์ที่จัดรูปแบบด้วยภาษามาร์กอัป markdown"
    }
  }
}
```
