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

設定即時 Google My Business 問答任務

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

DataForSEO

​

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

設定即時 Google My Business 問答任務

​

Google Business Profile 上的問答,透過 keyword 與 location_code 尋找。回傳 keyword、se_domain、location_code、language_code、check_url、datetime、cid、feature_id 與 item_types。採用 DataForSEO 的信封結構:資料位於 tasks[0].result,結果狀態位於 tasks[0].status_code——被拒絕的請求仍會回傳 HTTP 200。

計費參考

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

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

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

      解析深度
      選填欄位
      SERP 中的結果數量
      預設值:20
      最大值:100
      你的帳戶將按每個最多包含 20 筆結果的 SERP 計費;
      如果搜尋引擎傳回超過 20 筆結果,將解析深度設為高於 20 可能產生額外費用;
      如果指定深度高於回應中的問題數量,差額將自動退還至你的帳戶餘額;
      費用可在 定價頁 計算。

    • keyword
      類型: string

      關鍵字
      必填欄位
      你指定的關鍵字應指明本地商家的名稱
      在 keyword 欄位中最多可指定 700 個字元
      所有 %## 都會被解碼(另外,字元 ‘+’ 會解碼為空格)
      如果需要在 keyword 中使用 “%” 字元,請指定為 “%25”;

      此欄位還可用於傳遞以下參數:
      cid - 商家實體的唯一 Google 定義 ID;
      place_id - 商家實體在 Google Maps 中的識別碼

      範例:
      cid:194604053573767737
      place_id:GhIJQWDl0CIeQUARxks3icF8U8A

      可在這篇說明中心文章中進一步瞭解 cid 與 place_id 識別碼

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

    • language_code
      類型: string

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

    • language_name
      類型: string

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

    • location_code
      類型: integer

      搜尋引擎位置代碼
      若未指定 location_name 或 location_coordinate,則為必填欄位
      若使用此欄位,則無需指定 location_name 或 location_coordinate
      可個別向 https://api.dataforseo.com/v3/business_data/google/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.9(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/business_data/google/locations 發出請求,取得帶 location_name 的可用地點清單
      範例:
      London,England,United Kingdom

    • tag
      類型: string | null

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

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

      任務總費用,美元

    • status_code
      類型: integer | null

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

    • status_message
      類型: string | null

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

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

      任務陣列

      • 類型: object | null · Response36Afe1097B20_BusinessDataGoogleQuestionsAndAnswersLiveTaskInfo
        • 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

          結果陣列

          • check_url
            類型: string | null

            搜尋引擎結果的直接 URL
            可用來確認我們提供了準確的結果

          • cid
            類型: string | null

            Google 定義的用戶端 ID
            當地商家的唯一 ID;
            如需進一步瞭解此識別碼,請參閱這篇說明中心文章

          • datetime
            類型: string | null

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

          • feature_id
            類型: string | null

            SERP 功能的唯一識別碼

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

            項目類型
            items 陣列中出現的搜尋引擎結果類型;
            可能的項目類型:google_business_question_item

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

            項目陣列
            google_business_question_item 內的項目

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

              項目陣列
              google_business_question_item 內的項目

              • answer_id
                類型: string | null

                答案的 ID

              • answer_text
                類型: string | null

                答案的目前文字

              • original_answer_text
                類型: string | null

                答案的原始文字

              • profile_image_url
                類型: string | null

                使用者個人資料圖片的 URL

              • profile_name
                類型: string | null

                使用者的顯示名稱

              • profile_url
                類型: string | null

                使用者個人資料的 URL

              • time_ago
                類型: string | null

                答案發布的預估時間

              • timestamp
                類型: string | null

                答案發布的確切時間

              • type
                類型: string | null

                元素類型

            • original_question_text
              類型: string | null

              問題的原始文字

            • profile_image_url
              類型: string | null

              使用者個人資料圖片的 URL

            • profile_name
              類型: string | null

              使用者的顯示名稱

            • profile_url
              類型: string | null

              使用者個人資料的 URL

            • question_id
              類型: string | null

              問題的 ID

            • question_text
              類型: string | null

              問題的目前文字

            • rank_absolute
              類型: integer | null

              所有元素中的絕對排名

            • rank_group
              類型: integer | null

              具有相同 type 值的元素群組內的位置
              不同 type 值的元素位置不計入 rank_group

            • time_ago
              類型: string | null

              問題發布的預估時間

            • timestamp
              類型: string | null

              問題發布的確切時間

            • type
              類型: string | null

              元素類型

            • url
              類型: string | null

              問題的 URL

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

            items 陣列中的項目數

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

            不含回答的 Google 商家問題項目陣列

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

              項目陣列
              google_business_question_item 內的項目

              • answer_id
                類型: string | null

                答案的 ID

              • answer_text
                類型: string | null

                答案的目前文字

              • original_answer_text
                類型: string | null

                答案的原始文字

              • profile_image_url
                類型: string | null

                使用者個人資料圖片的 URL

              • profile_name
                類型: string | null

                使用者的顯示名稱

              • profile_url
                類型: string | null

                使用者個人資料的 URL

              • time_ago
                類型: string | null

                答案發布的預估時間

              • timestamp
                類型: string | null

                答案發布的確切時間

              • type
                類型: string | null

                元素類型

            • original_question_text
              類型: string | null

              問題的原始文字

            • profile_image_url
              類型: string | null

              使用者個人資料圖片的 URL

            • profile_name
              類型: string | null

              使用者的顯示名稱

            • profile_url
              類型: string | null

              使用者個人資料的 URL

            • question_id
              類型: string | null

              問題的 ID

            • question_text
              類型: string | null

              問題的目前文字

            • rank_absolute
              類型: integer | null

              所有元素中的絕對排名

            • rank_group
              類型: integer | null

              具有相同 type 值的元素群組內的位置
              不同 type 值的元素位置不計入 rank_group

            • time_ago
              類型: string | null

              問題發布的預估時間

            • timestamp
              類型: string | null

              問題發布的確切時間

            • type
              類型: string | null

              元素類型

            • url
              類型: string | null

              問題的 URL

          • keyword
            類型: string | null

            POST 陣列中收到的關鍵字
            傳回的關鍵字會解碼 %##(加號「+」將解碼為空格)
            cid 參數會包含在此欄位中,前提是設定任務時已在 keyword 欄位中指定該參數;
            範例:
            cid:2946633002421908862
            如需進一步瞭解該參數,請參閱這篇說明中心文章

          • language_code
            類型: string | null

            POST 陣列中的語言代碼

          • location_code
            類型: integer | null

            POST 陣列中的位置代碼

          • se_domain
            類型: string | null

            POST 陣列中指定的搜尋引擎網域

        • 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/business_data/google/questions_and_answers/live
curl https://openapi.felo.ai/v1/beta/dataforseo/business_data/google/questions_and_answers/live \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "language_code": "en",
    "location_name": "Los Angeles,California,United States",
    "keyword": "The Last Bookstore"
  }
]'
{
  "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,
          "se_domain": null,
          "location_code": null,
          "language_code": null,
          "check_url": null,
          "datetime": null,
          "cid": null,
          "feature_id": null,
          "item_types": [
            null
          ],
          "items_without_answers": [
            {
              "type": null,
              "rank_group": null,
              "rank_absolute": null,
              "question_id": null,
              "url": null,
              "profile_image_url": null,
              "profile_url": null,
              "profile_name": null,
              "question_text": null,
              "original_question_text": null,
              "time_ago": null,
              "timestamp": null,
              "items": [
                "[Max Depth Exceeded]"
              ]
            }
          ],
          "items_count": null,
          "items": [
            {
              "type": null,
              "rank_group": null,
              "rank_absolute": null,
              "question_id": null,
              "url": null,
              "profile_image_url": null,
              "profile_url": null,
              "profile_name": null,
              "question_text": null,
              "original_question_text": null,
              "time_ago": null,
              "timestamp": null,
              "items": [
                "[Max Depth Exceeded]"
              ]
            }
          ]
        }
      ]
    }
  ]
}
Setting Live Google My Business Questions and Answers Tasks

需要協助嗎?