Felo API PlatformFelo API Platform
全部 DataForSEO 端點
v0.2.0-beta
OpenAPI 3.1.0

即時 Gemini LLM Scraper 進階版

伺服器:https://openapi.felo.ai
用戶端程式庫

DataForSEO

​

SEO, search-engine results, keyword research, backlinks and AI visibility data.

即時 Gemini LLM Scraper 進階版

​

以使用者提問的方式向 Gemini 提出 keyword,並回傳解析後的回答。回傳 keyword、location_code、language_code、model、datetime、markdown、sources、se_results_count、item_types、items_count 與 items。採用 DataForSEO 的信封結構:資料位於 tasks[0].result,結果狀態位於 tasks[0].status_code——被拒絕的請求仍會回傳 HTTP 200。ChatGPT 的對應端點為 post_dataforseo_ai_chat_gpt_llm_scraper_live;同時執行兩者並比較,正是這個系列的目的。

計費參考

  • 計量方式:依回報的回應成本計量。
  • 參考請求估算:0.701 美元。
  • 參考客戶倍率:1.0。不得對已結算的客戶金額再次套用。

僅供參考的中繼資料,並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。

請求本文
application/json
  • 類型: array (object | null)[]
    • keyword
      類型: string

      keyword
      必填欄位
      在 keyword 欄位中最多可指定 2000 個字元
      所有 %## 都將被解碼(另外,字元 ‘+’ 會被解碼為空格)
      如果需要在 keyword 中使用 “%” 字元,請將其指定為 “%25”;
      如果需要在 keyword 中使用 “+” 字元,請將其指定為 “%2B”

      有關 DataForSEO API 中 keyword 與 keywords 欄位的規則與限制,請參閱這篇 說明中心文章

    • language_code
      類型: string

      搜尋引擎語言代碼
      未指定 language_name 時為必填欄位;
      如果使用此欄位,則無需指定 language_name;
      可個別向 https://api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/languages 發出請求,取得搜尋引擎支援的語言及其 language_code 清單
      範例:en

    • language_name
      類型: string

      搜尋引擎語言全名
      未指定 language_code 時為必填欄位;
      如果使用此欄位,則無需指定 language_code;
      可個別向 https://api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/languages 發出請求,取得搜尋引擎支援的語言及其 language_name 清單
      範例:English

    • location_code
      類型: integer

      搜尋引擎地點代碼
      未指定 location_name 或 location_coordinate 時為必填欄位
      如果使用此欄位,則無需指定 location_name 或 location_coordinate
      可個別向 https://api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/locations 發出請求,取得搜尋引擎的可用地點及其 location_code 清單
      範例:
      2840

    • location_coordinate
      類型: string

      地點的 GPS 座標

      未指定 location_name 或 location_code 時為必填欄位

      如果使用此欄位,則無需指定 location_name 或 location_code

      location_coordinate 參數應採用 "latitude,longitude,radius" 格式

      "latitude" 與 "longitude" 的最大小數位數:7

      "radius" 的最小值:199(mm)

      "radius" 的最大值:199999(mm)

      範例:

      53.476225,-2.243572,200

    • location_name
      類型: string

      搜尋引擎地點全名
      未指定 location_code 或 location_coordinate 時為必填欄位
      如果使用此欄位,則無需指定 location_code 或 location_coordinate
      可個別向 https://api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/locations 發出請求,取得搜尋引擎的可用地點及其 location_name 清單
      範例:
      United States

    • tag
      類型: string | null

      使用者自訂任務識別碼
      選填欄位
      字元數上限為 255
      可使用此參數識別任務,並將其與結果對應
      可在回應的 data 物件中找到指定的 tag 值

回應
  • 200
    類型: object | null · Response36Afe1097B20_AiOptimizationGeminiLlmScraperLiveAdvancedResponseInfo
    • cost
      類型: number | null 格式: double

      任務總費用,美元

    • status_code
      類型: integer | null

      一般狀態碼 完整回應碼清單請見此處

    • status_message
      類型: string | null

      一般資訊訊息 完整的一般資訊訊息清單請見此處

    • tasks
      類型: array (object | null)[] | null

      任務陣列

      • 類型: object | null · Response36Afe1097B20_AiOptimizationGeminiLlmScraperLiveAdvancedTaskInfo
        • cost
          類型: number | null 格式: double

          任務總費用,美元

        • data
          類型: object | null

          包含你在 POST 請求中指定的相同參數

          • propertyName
            類型: object | null
        • id
          類型: string | null

          任務識別碼 我們系統中 UUID 格式的唯一任務識別碼

        • path
          類型: array (string | null)[] | null

          URL 路徑

        • result
          類型: array (object | null)[] | null

          結果陣列

          • datetime
            類型: string | null

            收到結果的日期與時間
            採用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
            範例:
            2019-11-15 12:57:46 +00:00

          • item_types
            類型: array (string | null)[] | null

            搜尋結果類型
            包含在 SERP 中找到的搜尋結果類型(items)。
            可能的項目類型:
            gemini_text、gemini_table、gemini_images

          • items
            類型: array (object | null)[] | null

            Gemini 結果的元素

            • markdown
              類型: string | null

              markdown 格式的元素內容
              以markdown 標記語言格式化的結果內容

            • rank_absolute
              類型: integer | null

              SERP 中的絕對排名
              SERP 中所有元素中的絕對位置

            • rank_group
              類型: integer | null

              SERP 中的群組內排名
              在具有相同 type 值的元素群組內的位置
              具有不同 type 值的元素位置不會包含在 rank_group 中

            • type
              類型: string | null

              元素類型

          • items_count
            類型: integer | null 格式: int64

            items 陣列中傳回的結果數

          • keyword
            類型: string | null

            POST 陣列中收到的關鍵字
            傳回的關鍵字會解碼 %##(加號「+」將解碼為空格字元)

          • language_code
            類型: string | null

            POST 陣列中的語言代碼

          • location_code
            類型: integer | null

            POST 陣列中的位置代碼

          • markdown
            類型: string | null

            markdown 格式的元素內容
            以markdown 標記語言格式化的結果內容

          • model
            類型: string | null

            表示模型版本

          • se_results_count
            類型: integer | null 格式: int64

            結果總數

          • sources
            類型: array (object | null)[] | null

            來源陣列
            模型在最終答案中實際引用或依據的來源

            • domain
              類型: string | null

              SERP 中的來源網域

            • markdown
              類型: string | null

              markdown 格式的元素內容
              以markdown 標記語言格式化的結果內容

            • publication_date
              類型: string | null

              結果發布的日期與時間
              格式:“year-month-date:minutes:UTC_difference_hours:UTC_difference_minutes”
              範例:
              2019-11-15 12:57:46 +00:00

            • snippet
              類型: string | null

              來源說明

            • source_name
              類型: string | null

              來源名稱

            • thumbnail
              類型: string | null

              來源縮圖

            • title
              類型: string | null

              來源標題

            • type
              類型: string | null

              元素類型

            • url
              類型: string | null

              來源 URL

        • result_count
          類型: integer | null 格式: int64

          result 陣列中的元素數

        • status_code
          類型: integer | null

          任務的狀態碼 由 DataForSEO 產生,範圍如下:10000-60000 完整回應碼清單請見此處

        • status_message
          類型: string | null

          任務的資訊訊息 完整的一般資訊訊息清單請見此處

        • time
          類型: string | null

          執行時間,秒

    • tasks_count
      類型: integer | null 格式: int64

      tasks 陣列中的任務數

    • tasks_error
      類型: integer | null 格式: int64

      tasks 陣列中傳回錯誤的任務數

    • time
      類型: string | null

      總執行時間,秒

    • version
      類型: string | null

      API 的目前版本

    application/json
  • 400

    無法處理該要求。請檢查請求參數。

  • 401

    需要有效的 Felo API 金鑰。

  • 402

    由於未符合計費要求,要求無法繼續。

  • 403

    該帳戶無權執行此操作。

  • 429

    已達到要求或支出上限。

  • 502

    服務無法完成該要求。

  • 503

    API 或計費服務暫時無法使用。

  • 504

    服務在處理要求時逾時。

  • default

    錯誤回應;上游透傳回應可能採用供應商格式

    application/json
Request Example for post/v1/beta/dataforseo/ai_optimization/gemini/llm_scraper/live/advanced
curl https://openapi.felo.ai/v1/beta/dataforseo/ai_optimization/gemini/llm_scraper/live/advanced \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "language_code": "en",
    "location_code": 2840,
    "keyword": "albert einstein"
  }
]'
{
  "version": null,
  "status_code": null,
  "status_message": null,
  "time": null,
  "cost": null,
  "tasks_count": null,
  "tasks_error": null,
  "tasks": [
    {
      "id": null,
      "status_code": null,
      "status_message": null,
      "time": null,
      "cost": null,
      "result_count": null,
      "path": [
        null
      ],
      "data": null,
      "result": [
        {
          "keyword": null,
          "location_code": null,
          "language_code": null,
          "model": null,
          "datetime": null,
          "markdown": null,
          "sources": [
            {
              "type": null,
              "title": null,
              "snippet": null,
              "domain": null,
              "url": null,
              "thumbnail": null,
              "source_name": null,
              "publication_date": null,
              "markdown": null
            }
          ],
          "se_results_count": null,
          "item_types": [
            null
          ],
          "items_count": null,
          "items": [
            {
              "type": null,
              "rank_group": null,
              "rank_absolute": null,
              "markdown": null
            }
          ]
        }
      ]
    }
  ]
}
Live Gemini LLM Scraper Advanced

需要協助嗎?