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

OnPage API 微資料

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

DataForSEO

​

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

OnPage API 微資料

​

驗證某個已爬取 url 上的結構化資料。讀取已完成的爬取,因此需要 post_dataforseo_on_page_submit 傳回的 id,並傳回 crawl_progress 以及 crawl_status(max_crawl_pages、pages_in_queue 與 pages_crawled)——在採信偏少的結果前先檢查這些欄位,因為仍在進行的爬取能回報的內容本來就少。⚠️ 該頁面必須屬於本次爬取:請求不屬於爬取的 URL 會在 HTTP 200 內傳回 status_code 40406、Requested page was not submitted for crawling。如果要找的頁面缺失,請調大 max_crawl_pages,或在提交呼叫中設定 start_url。💰 上游免費:查詢已完成的爬取不產生費用,只有爬取本身計費。

計費參考

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

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

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

      任務 ID
      必填欄位
      你可以在 Task POST 端點的回應中取得此 ID
      範例:
      "07131248-1535-0216-1000-17384017ad04"

    • tag
      類型: string | null

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

    • url
      類型: string

      資源 URL
      必填欄位
      你可以在 Pages 端點的回應中取得此 URL
      範例:
      https://dataforseo.com/apis

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

      任務總費用,美元

    • status_code
      類型: integer | null

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

    • status_message
      類型: string | null

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

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

      任務陣列

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

          結果陣列

          • crawl_progress
            類型: string | null

            擷取工作階段的狀態
            可能的值:in_progress、finished

          • crawl_status
            類型: object | null · Response36Afe1097B20_CrawlStatusInfo

            擷取工作階段的詳細資料

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

              擷取頁面數上限 表示設定任務時指定的 max_crawl_pages 限制

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

              已擷取的頁面數量

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

              目前位於擷取佇列中的頁面數量

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

            項目陣列

            • inspection_info
              類型: object | null · Response36Afe1097B20_MicrodataInspectionInfo

              與微資料驗證相關的資訊

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

                微資料欄位
                包含與特定微資料類型相關之資料欄位的物件陣列

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

                  微資料欄位
                  包含與特定微資料類型相關之資料欄位的物件陣列

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

                    微資料欄位
                    包含與特定微資料類型相關之資料欄位的物件陣列

                  • name
                    類型: string | null

                    欄位名稱
                    資料欄位的名稱

                  • test_results
                    類型: object | null · Response36Afe1097B20_MessageInfo

                    微資料驗證測試結果
                    包含偵測到的錯誤與相關訊息的微資料子類型測試結果

                    • level
                      類型: string | null

                      錯誤層級 可取下列值:fatal、error、warning、info

                    • message
                      類型: string | null

                      與錯誤相關聯的訊息 提供偵測到之錯誤詳細資料的訊息

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

                    微資料類型清單

                  • value
                    類型: string | null

                    微資料值 目標網頁上指定的微資料值

                • name
                  類型: string | null

                  欄位名稱
                  資料欄位的名稱

                • test_results
                  類型: object | null · Response36Afe1097B20_MessageInfo

                  微資料驗證測試結果
                  包含偵測到的錯誤與相關訊息的微資料子類型測試結果

                  • level
                    類型: string | null

                    錯誤層級 可取下列值:fatal、error、warning、info

                  • message
                    類型: string | null

                    與錯誤相關聯的訊息 提供偵測到之錯誤詳細資料的訊息

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

                  微資料類型清單

                • value
                  類型: string | null

                  微資料值 目標網頁上指定的微資料值

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

                父層微資料類型
                如需可用類型的完整清單,請前往 schema.org

            • type
              類型: string | null

              元素類型

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

            結果陣列中的項目數

          • test_summary
            類型: object | null · Response36Afe1097B20_TestSummary

            微資料驗證測試結果

            • error
              類型: integer | null

              嚴重微資料錯誤數量

            • fatal
              類型: integer | null

              致命微資料錯誤數量

            • info
              類型: integer | null

              微資料資訊標記數量

            • warning
              類型: integer | null

              微資料警告數量

        • 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/on_page/microdata
curl https://openapi.felo.ai/v1/beta/dataforseo/on_page/microdata \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "id": "02241700-1535-0216-0000-034137259bc1",
    "url": "https://dataforseo.com/apis"
  }
]'
{
  "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": [
        {
          "crawl_progress": null,
          "crawl_status": {
            "max_crawl_pages": null,
            "pages_in_queue": null,
            "pages_crawled": null
          },
          "test_summary": {
            "fatal": null,
            "error": null,
            "warning": null,
            "info": null
          },
          "items_count": null,
          "items": [
            {
              "type": null,
              "inspection_info": "[Max Depth Exceeded]"
            }
          ]
        }
      ]
    }
  ]
}
OnPage API Microdata

需要協助嗎?