# Google Finance Markets Advanced แบบเรียลไทม์

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/google/finance_markets/live/advanced`

**Tags:** DataForSEO

คืนค่าดัชนีตลาดและหุ้นที่มีการเคลื่อนไหวเด่นที่ Google Finance แสดงบน Google แบบซิงโครนัส คืนค่า `keyword`, `type`, `se_domain`, `location_code`, `language_code`, `check_url`, `datetime`, `spell`, `refinement_chips`, `item_types`, `items_count` และ `items` `advanced` เป็นค่าเริ่มต้น ใช้ `regular` เมื่อสนใจเฉพาะรายการที่จัดอันดับแล้ว และใช้ `html` เฉพาะเมื่อต้องการตรวจสอบว่าตัวแยกวิเคราะห์ตัดอะไรทิ้งไป ห่อด้วย envelope ของ 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": {
          "location_code": {
            "type": "integer",
            "description": "<p><em>รหัสสถานที่ของเครื่องมือค้นหา</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_name</code></strong><p><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_name</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>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>language_name</code></strong><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>"
          },
          "device": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>ประเภทอุปกรณ์</em><p>ฟิลด์ที่ไม่บังคับ<p>คืนผลลัพธ์สำหรับประเภทอุปกรณ์ที่ระบุ<p>ค่าที่เป็นไปได้: <code>desktop</code></p>"
          },
          "location_name": {
            "type": "string",
            "description": "<p><em>ชื่อเต็มของสถานที่ของเครื่องมือค้นหา</em><p><strong>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>location_code</code></strong><p><strong>หากใช้ฟิลด์นี้ ไม่จำเป็นต้องระบุ <code>location_code</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>ฟิลด์ที่จำเป็นหากไม่ได้ระบุ <code>language_code</code> </strong><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>ค่าที่เป็นไปได้: <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> ของการตอบกลับ"
          },
          "market_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>ประเภทตลาด Google Finance</em><p>ฟิลด์ที่ไม่บังคับ<p>ค่าที่เป็นไปได้: <code>most-active</code>, <code>indexes</code>, <code>indexes/americas</code>, <code>indexes/europe-middle-east-africa</code>, <code>indexes/asia-pacific</code>, <code>gainers</code>, <code>losers</code>, <code>climate-leaders</code>, <code>cryptocurrencies</code>, <code>currencies</code><p>ค่าเริ่มต้น: <code>most-active</code></p>"
          }
        },
        "example": [
          {
            "location_code": 2840,
            "language_name": "English"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "location_code": 2840,
      "language_name": "English"
    }
  ]
}
```

## Responses

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

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

**application/json**

Schema: object | null

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

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AmazonLabelElement

`#/components/schemas/Response36Afe1097B20_AmazonLabelElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "ชื่อเรื่องขององค์ประกอบ"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL การค้นหาพร้อมพารามิเตอร์การกรอง"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "โดเมนใน SERP"
    }
  }
}
```

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

`#/components/schemas/Response36Afe1097B20_BaseSerpApiGoogleFinanceElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "google_finance_asset_pair_element": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceAssetPairElementElementItem",
      "google_finance_market_index_element": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceMarketIndexElementElementItem",
      "google_finance_market_instrument_element": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceMarketInstrumentElementElementItem",
      "google_finance_hero_groups": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceHeroGroupsElementItem",
      "google_finance_interested": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceInterestedElementItem",
      "google_finance_news": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceNewsElementItem",
      "google_finance_earnings_calendar": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceEarningsCalendarElementItem",
      "google_finance_most_followed": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceMostFollowedElementItem",
      "google_finance_market_trends": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceMarketTrendsElementItem",
      "google_finance_people_also_search": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinancePeopleAlsoSearchElementItem",
      "google_finance_explore_market_trends": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceExploreMarketTrendsElementItem",
      "google_finance_quote": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceQuoteElementItem",
      "google_finance_compare_to": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceCompareToElementItem",
      "google_finance_financial": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceFinancialElementItem",
      "google_finance_futures_chain": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceFuturesChainElementItem",
      "google_finance_details": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceDetailsElementItem",
      "google_finance_about": "#/components/schemas/Response36Afe1097B20_SerpApiGoogleFinanceAboutElementItem"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsElement

`#/components/schemas/Response36Afe1097B20_RefinementChipsElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "ชื่อเรื่องขององค์ประกอบ"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "URL การค้นหาพร้อมพารามิเตอร์การกรอง"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "โดเมนใน SERP"
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AmazonLabelElement"
          }
        ]
      },
      "description": "ตัวเลือกการปรับแต่งการค้นหาเพิ่มเติม"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsInfo

`#/components/schemas/Response36Afe1097B20_RefinementChipsInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทขององค์ประกอบ"
    },
    "xpath": {
      "type": [
        "string",
        "null"
      ],
      "description": "XPath ขององค์ประกอบ"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsElement"
          }
        ]
      },
      "description": "รายการขององค์ประกอบ"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleFinanceMarketsLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleFinanceMarketsLiveAdvancedResponseInfo`

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

### Response36Afe1097B20_SerpGoogleFinanceMarketsLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleFinanceMarketsLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>คีย์เวิร์ดที่ได้รับในอาร์เรย์ POST</em><br><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>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>URL โดยตรงไปยังผลลัพธ์ของเครื่องมือค้นหา</em><br>คุณใช้ 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>"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "<em>การแก้ไขอัตโนมัติของเครื่องมือค้นหา</em><br>หากเครื่องมือค้นหาให้ผลลัพธ์สำหรับคีย์เวิร์ดที่ถูกแก้ไข เราจะระบุคีย์เวิร์ดที่เครื่องมือค้นหาแก้ไขและประเภทของการแก้ไขอัตโนมัติ;<br>ในกรณีนี้ ค่าจะเป็น <code>null</code>"
    },
    "refinement_chips": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsInfo"
        }
      ],
      "description": "<em>ชิปการปรับแต่งการค้นหา</em><br>ในกรณีนี้ ค่าจะเป็น <code>null</code>"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>ประเภทของผลการค้นหาใน SERP</em><br>มีประเภทของผลการค้นหา (<code>items</code>) ที่พบใน SERP;<br>ประเภทรายการที่เป็นไปได้: <span>google_finance_hero_groups, google_finance_explore_market_trends, google_finance_news, google_finance_interested, google_finance_people_also_search"
    },
    "se_results_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> จำนวนผลลัพธ์ทั้งหมดใน SERP</em>",
      "format": "int64"
    },
    "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_BaseSerpApiGoogleFinanceElementItem"
          }
        ]
      },
      "description": "<em>องค์ประกอบของผลการค้นหาที่พบใน SERP</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleFinanceMarketsLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleFinanceMarketsLiveAdvancedTaskInfo`

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

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "คีย์เวิร์ดที่ได้จากการแก้ไขคำอัตโนมัติของเครื่องมือค้นหา\n ผลลัพธ์จะถูกจัดหาให้สำหรับคีย์เวิร์ดที่แก้ไขแล้ว"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "ประเภทของการแก้ไขอัตโนมัติ\n ค่าที่เป็นไปได้:\n did_you_mean, showing_results_for, no_results_found_for, including_results_for\n หมายเหตุ: Yahoo และ Yandex รองรับเฉพาะประเภทการแก้ไขอัตโนมัติต่อไปนี้:\n including_results_for"
    }
  }
}
```
