# Google Images SERP HTML แบบเรียลไทม์

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/google/images/live/html`

**Tags:** DataForSEO

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

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

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

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

## Related links

- [บทความ Help Center](<https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis>)
- [ราคา](<https://dataforseo.com/pricing/serp/google-images-serp-api>)
- [ศูนย์ช่วยเหลือของเรา](<https://dataforseo.com/help-center/what-is-max-crawl-pages-and-how-does-it-work>)
- [ดูรายการพารามิเตอร์ที่ใช้ได้และรายละเอียดเพิ่มเติมได้ที่นี่](<https://dataforseo.com/help-center/google-search-engine-parameters-and-how-to-use-them>)

## 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>คุณสามารถระบุ<strong>ได้ไม่เกิน 700 ตัวอักษร</strong>ในฟิลด์ <code>keyword</code><p>%## ทั้งหมดจะถูกถอดรหัส (อักขระ '+' จะถูกถอดรหัสเป็นอักขระเว้นวรรค)<p>หากต้องการใช้ \"%\" ใน <code>keyword</code> โปรดระบุเป็น \"%25\";<p>หากต้องการใช้ “+” ใน <code>keyword</code> โปรดระบุเป็น “%2B”;<p>หากฟิลด์นี้มีพารามิเตอร์เช่น <em>'allinanchor:', 'allintext:', 'allintitle:', 'allinurl:', 'define:', 'filetype:', 'id:', 'inanchor:', 'info:', 'intext:', 'intitle:', 'inurl:', 'link:', 'related:', 'site:'</em>, <strong>ค่าใช้จ่ายต่องานจะคูณด้วย 5</strong><p><strong>หมายเหตุ:</strong> คำค้นที่มีพารามิเตอร์ ‘cache:’ ไม่รองรับและจะคืนข้อผิดพลาดการตรวจสอบ</p><br><p>อ่านกฎและข้อจำกัดของฟิลด์ <code>keyword</code> และ <code>keywords</code> ใน DataForSEO API เพิ่มเติมได้ในบทความ Help Center</p>"
          },
          "location_code": {
            "type": "integer",
            "description": "<p><em>รหัสสถานที่ของเครื่องมือค้นหา</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_name</code>&nbsp;หรือ <code>location_coordinate</code><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>ตัวอย่าง:<p><code class=\"long-string\">2840</code></p>"
          },
          "language_code": {
            "type": "string",
            "description": "<p><em>รหัสภาษาของเครื่องมือค้นหา</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>language_name</code><p><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_name</code></strong><p>คุณสามารถรับรายการภาษาของเครื่องมือค้นหาที่ใช้ได้พร้อม <code>language_code</code>&nbsp;ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/serp/google/languages</code><em><p></em>ตัวอย่าง:<em><p></em><code class=\"long-string\">en</code></p>"
          },
          "depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>ความลึกในการดึงข้อมูล</em><p>ฟิลด์ที่ไม่บังคับ<p>จำนวนผลลัพธ์ใน SERP<p>ค่าเริ่มต้น: <code>100</code><p>ค่าสูงสุด: <code>200</code></p><br><strong>บัญชีของคุณจะถูกเรียกเก็บเงินต่อ SERP ที่มีผลลัพธ์ไม่เกิน 100 รายการ;</strong><p>การกำหนดความลึกเกิน 100 อาจทำให้มีค่าใช้จ่ายเพิ่มเติมหากเครื่องมือค้นหาส่งคืนผลลัพธ์มากกว่า 100 รายการ;<p>หากความลึกที่กำหนดสูงกว่าจำนวนผลลัพธ์ในการตอบกลับ ส่วนต่างจะถูกคืนเงินเข้าบัญชีของคุณโดยอัตโนมัติ;<p>ค่าใช้จ่ายสามารถคำนวณได้ที่หน้าราคา"
          },
          "location_name": {
            "type": "string",
            "description": "<p><em>ชื่อเต็มของสถานที่ของเครื่องมือค้นหา</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_code</code> หรือ <code>location_coordinate</code><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>ตัวอย่าง:<p><code class=\"long-string\">London,England,United Kingdom</code></p>"
          },
          "language_name": {
            "type": "string",
            "description": "<p><em>ชื่อเต็มของภาษาของเครื่องมือค้นหา</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>language_code</code><p><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>language_code</code></strong><p>คุณสามารถรับรายการภาษาของเครื่องมือค้นหาที่ใช้ได้พร้อม <code>language_name</code> ได้โดยส่งคำขอแยกไปที่ <code>https://api.dataforseo.com/v3/serp/google/languages</code><p>ตัวอย่าง:<p><code class=\"long-string\">English</code></p>"
          },
          "os": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>ระบบปฏิบัติการของอุปกรณ์</em><p>ฟิลด์ที่ไม่บังคับ<p><strong>โปรดทราบว่า API นี้ให้ผลลัพธ์สำหรับเดสก์ท็อปเท่านั้น</strong><p>เลือกจากค่าต่อไปนี้: <code>windows</code>, <code>macos</code><p>ค่าเริ่มต้น: <code>windows</code></p>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>ตัวระบุงานที่ผู้ใช้กำหนด</em><p>ฟิลด์ที่ไม่บังคับ<p><em>จำกัดอักขระ 255 ตัว</em><p>คุณสามารถใช้พารามิเตอร์นี้เพื่อระบุงานและจับคู่กับผลลัพธ์<p>คุณจะพบค่า <code>tag</code> ที่ระบุในออบเจกต์ <code>data</code> ของการตอบกลับ"
          },
          "max_crawl_pages": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>ขีดจำกัดจำนวนหน้าที่ดึงข้อมูล</em><p>ฟิลด์ที่ไม่บังคับ<p>จำนวนหน้าผลการค้นหาที่จะดึงข้อมูล<p>ค่าสูงสุด: <code>100</code><p><strong>หมายเหตุ:</strong> พารามิเตอร์ <code>max_crawl_pages</code> และ <code>depth</code> เสริมกัน;<p>ดูข้อมูลเพิ่มเติมได้ที่ศูนย์ช่วยเหลือของเรา</p>"
          },
          "search_param": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>พารามิเตอร์เพิ่มเติมของคำค้นหา</em><p>ฟิลด์ที่ไม่บังคับ<p>ดูรายการพารามิเตอร์ที่ใช้ได้และรายละเอียดเพิ่มเติมได้ที่นี่</p>"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>URL โดยตรงของคำค้นหา</em><p>ฟิลด์ที่ไม่บังคับ<p>คุณสามารถระบุ URL โดยตรง แล้วเราจะแยกส่วนไปยังฟิลด์ที่จำเป็น โปรดทราบว่าวิธีนี้เป็นวิธีที่ API ของเราประมวลผลยากที่สุด และยังต้องระบุภาษาและสถานที่ให้ตรงกันใน URL ในกรณีส่วนใหญ่ เราไม่แนะนำให้ใช้วิธีนี้<p>ตัวอย่าง:<p><code class=\"long-string\">https://www.google.co.uk/search?q=%20rank%20tracker%20api&amp;hl=en&amp;gl=GB&amp;uule=w+CAIQIFISCXXeIa8LoNhHEZkq1d1aOpZS</code></p>"
          },
          "location_coordinate": {
            "type": "string",
            "description": "<p><em>พิกัด GPS ของสถานที่</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ</strong> <code>location_name</code>&nbsp;หรือ <code>location_code</code><p><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_name</code> หรือ <code>location_code</code></strong><p>พารามิเตอร์ <code>location_coordinate</code> ต้องระบุในรูปแบบ <em>\"latitude,longitude,radius\"</em><p>จำนวนตำแหน่งทศนิยมสูงสุดสำหรับ <em>\"latitude\"</em> และ <em>\"longitude\"</em>: 7<p>ค่าต่ำสุดสำหรับ <em>\"radius\"</em>: 199.9 (mm)<p>ค่าสูงสุดสำหรับ <em>\"radius\"</em>: 199999 (mm)<p>ตัวอย่าง:<p><code class=\"long-string\">53.476225,-2.243572,200</code></p>"
          },
          "se_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>โดเมนของเครื่องมือค้นหา</em><p>ฟิลด์ที่ไม่บังคับ<p>เราเลือกโดเมนของเครื่องมือค้นหาที่เกี่ยวข้องโดยอัตโนมัติตามสถานที่และภาษาที่คุณระบุ<p>อย่างไรก็ตาม คุณสามารถกำหนดโดเมนของเครื่องมือค้นหาเองได้ในฟิลด์นี้<p>ตัวอย่าง:<p><code><code></code></code><em>google.co.uk</em>, <code><code></code></code><em>google.com.au</em>, <code><code></code></code><em>google.de</em>, ฯลฯ</p>"
          }
        },
        "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_SerpGoogleImagesLiveHtmlResponseInfo"
    }
  ]
}
```

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

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

### 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": "รหัสสถานะของงาน\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_HtmlItemInfo

`#/components/schemas/Response36Afe1097B20_HtmlItemInfo`

```json
{
  "type": "object",
  "properties": {
    "page": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<i>หมายเลขลำดับของหน้า HTML ที่ส่งคืน</i>"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>วันที่และเวลาที่หน้า HTML ถูกสแกน</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>"
    },
    "html": {
      "type": [
        "string",
        "null"
      ],
      "description": "<i>หน้า</i> <i>HTML</i>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleImagesLiveHtmlResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleImagesLiveHtmlResponseInfo`

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

### Response36Afe1097B20_SerpGoogleImagesLiveHtmlResultInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleImagesLiveHtmlResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>คีย์เวิร์ดที่ได้รับในอาร์เรย์ POST<br></em><strong>คีย์เวิร์ดจะถูกส่งกลับโดยถอดรหัส %## แล้ว (อักขระ '+' จะถูกถอดรหัสเป็นช่องว่าง)</strong>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>โดเมนของเครื่องมือค้นหาในอาร์เรย์ POST</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>รหัสสถานที่ในอาร์เรย์ POST</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>รหัสภาษาในอาร์เรย์ POST</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>"
    },
    "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_HtmlItemInfo"
          }
        ]
      },
      "description": "<em>องค์ประกอบของผลการค้นหาที่พบใน SERP</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleImagesLiveHtmlTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleImagesLiveHtmlTaskInfo`

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