# 設定 OnPage 任務

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/on_page/task_post`

**Tags:** DataForSEO

開始對 `target` 進行爬取，並在 `tasks[0].id` 中傳回任務 `id`——**該 id 是本系列其他所有工具都需要的控制代碼**，請保留它。`max_crawl_pages` 限制爬取規模，`start_url`、`max_crawl_depth`、`priority_urls` 與 `crawl_delay` 塑造爬取方式，`store_raw_html` 決定 `post_dataforseo_on_page_raw_html` 之後是否有內容可提供。採用 DataForSEO 的信封結構：資料位於 `tasks[0].result`，結果狀態位於 `tasks[0].status_code`——被拒絕的請求仍會回傳 HTTP 200。⚠️ 這不是常見的提交／取得配對：爬取是一個工作階段，隨後由十幾個其他工具依 id 查詢。輪詢 `get_dataforseo_on_page_summary` 直到 `crawl_progress` 顯示 `finished`；對 example.com 的單頁爬取遠不到一分鐘。

### 計費參考

- 計量方式：依回報的回應成本計量。
- 參考請求估算：0.003 美元。
- 參考客戶倍率：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": {
          "target": {
            "type": "string",
            "description": "<em>目標網域</em><br><strong>必填欄位</strong><br>網域不應包含 <code>https://</code> 和 <code>www.</code><br>如果指定頁面 URL，將傳回該 URL 中所含網域的結果"
          },
          "max_crawl_pages": {
            "type": "integer",
            "description": "<em>爬取頁面數上限</em><br><strong>必填欄位</strong><br>在指定網域上要爬取的頁面數量<br><strong>注意：</strong><br>如果將 <code>max_crawl_pages</code> 設為 1 且未指定 <code>start_url</code> 或將其設為首頁，以下全站檢查將被停用：<br><code>test_canonicalization</code>、<code>enable_www_redirect_check</code>、<code>test_hidden_server_signature</code>、<code>test_page_not_found</code>、<code>test_directory_browsing</code>、<code>test_https_redirect</code><br>要強制啟用它們，請將 <code>force_sitewide_checks</code> 設為 <code>true</code>。如果 <code>max_crawl_pages</code> 設為 1 且 <code>start_url</code> 指定的不是首頁，所有全站檢查都將被停用；<br>要強制啟用它們，請將 <code>force_sitewide_checks</code> 設為 <code>true</code>"
          },
          "start_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>要爬取的第一個 URL</em><br>選填欄位<br><strong>注意：</strong>應指定絕對 URL<br>如果只想爬取單一頁面，請在此欄位中指定其 URL，並將 <code>max_crawl_pages</code> 參數設為 <code>1</code><br>也可以使用<a href=\"/v3/on_page/instant_pages/?bash\" target=\"_blank\" rel=\"noopener noreferrer\">即時 Instant Pages 端點</a>取得特定頁面的資料"
          },
          "force_sitewide_checks": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>爬取單一頁面時啟用全站檢查</em><br>選填欄位<br>如果希望在爬取單一頁面時取得全站檢查資料，請設為 <code>true</code>；<br>預設值：<code>false</code>"
          },
          "priority_urls": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>繞過佇列優先爬取的 URL</em><br>選填欄位<br>此陣列中指定的 URL 將優先爬取，繞過爬取佇列；<br><strong>注意：</strong>應指定絕對 URL；<br>最多可指定 <strong>20 個 URL</strong>；<br>陣列中的所有 URL 必須屬於 <code>target</code> 網域；<br>除非 <code>allow_subdomains</code> 參數設為 <code>true</code>，否則子網域將被忽略。範例：<br>`\"priority_urls\": [<br>\"https://dataforseo.com/apis/serp-api\",<br>\"https://dataforseo.com/contact\"<br>]`"
          },
          "max_crawl_depth": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>爬取深度</em><br>選填欄位<br>要爬取頁面的連結深度；<br>例如，爬取的起始頁面為第 0 層，與該頁面存在連結的頁面為第 1 層，依此類推。"
          },
          "crawl_delay": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>命中之間的延遲，毫秒</em><br>選填欄位<br>爬蟲對伺服器的多次命中之間的自訂延遲<br>預設值：<code>2000</code>"
          },
          "store_raw_html": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>儲存爬取頁面的 HTML</em><br>選填欄位<br>如果希望透過<a href=\"/v3/on_page/raw_html/\" target=\"_blank\" rel=\"noopener noreferrer\">OnPage Raw HTML 端點</a>取得頁面的 HTML，請設為 <code>true</code><br>預設值：<code>false</code>"
          },
          "enable_content_parsing": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>解析爬取頁面的內容</em><br>選填欄位<br>設為 <code>true</code> 以使用<a href=\"/v3/on_page/content_parsing/live/\" target=\"_blank\" rel=\"noopener noreferrer\">OnPage Content Parsing 端點</a><br>預設值：<code>false</code>"
          },
          "support_cookies": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>支援爬取頁面的 Cookie</em><br>選填欄位<br>設為 <code>true</code> 以在爬取頁面時支援 Cookie<br>預設值：<code>false</code>"
          },
          "accept_language": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>存取網站的語言標頭</em><br>選填欄位<br>支援所有語言地區格式（xx、xx-XX、xxx-XX 等）<br><strong>注意：</strong>如果你未指定此參數，某些網站可能會拒絕存取；此時，回應陣列中的頁面將帶有 <code>\"type\":\"broken</code>"
          },
          "custom_robots_txt": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>自訂 robots.txt 設定</em><br>選填欄位<br>範例：<code>Disallow: /directory1/</code>"
          },
          "robots_txt_merge_mode": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>合併或覆寫 robots.txt 設定</em><br>選填欄位<br>可能的值：<code>merge</code>、<code>override</code>；<br>如果希望忽略網站爬取限制及其他 robots.txt 設定，請設為 <code>override</code><br>預設值：<code>merge</code>；<br><strong>注意：</strong>如果設為 <code>override</code>，請指定 <code>custom_robots_txt</code> 參數"
          },
          "custom_user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>自訂使用者代理</em><br>選填欄位<br>用於擷取網站的自訂使用者代理<br>範例： <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36<br></code><br>預設值：<code>Mozilla/5.0 (compatible; RSiteAuditor)</code>"
          },
          "browser_preset": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>瀏覽器螢幕參數預設集</em><br>選填欄位<br>如果使用此欄位，則無需指定 <code>browser_screen_width</code>、<code>browser_screen_height</code>、<code>browser_screen_scale_factor</code>可能的值：<br><code>desktop</code>、<code>mobile</code>、<code>tablet</code><code>desktop</code> 預設集將套用下列值：<code>browser_screen_width: 1920</code><br><code>browser_screen_height: 1080</code><br><code>browser_screen_scale_factor: 1</code><code>mobile</code> 預設集將套用下列值：<code>browser_screen_width: 390</code><br><code>browser_screen_height: 844</code><br><code>browser_screen_scale_factor: 3</code><code>tablet</code> 預設集將套用下列值：<code>browser_screen_width: 1024</code><br><code>browser_screen_height: 1366</code><br><code>browser_screen_scale_factor: 2</code><br><strong>注意：</strong>要使用此參數，請將 <code>enable_javascript</code> 或 <code>enable_browser_rendering</code> 設為 <code>true</code>"
          },
          "browser_screen_width": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>瀏覽器螢幕寬度</em><br>選填欄位<br>你可以設定自訂的瀏覽器螢幕寬度，以便針對特定裝置進行稽核；<br>如果使用此欄位，則無需指定 <code>browser_preset</code>，它將被忽略；<br><strong>注意：</strong>要使用此參數，請將 <code>enable_javascript</code> 或 <code>enable_browser_rendering</code> 設為 <code>true</code>最小值（像素）：<code>240</code><br>最大值（像素）：<code>9999</code>",
            "format": "int64"
          },
          "browser_screen_height": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>瀏覽器螢幕高度</em><br>選填欄位<br>你可以設定自訂的瀏覽器螢幕高度，以便針對特定裝置進行稽核；<br>如果使用此欄位，則無需指定 <code>browser_preset</code>，它將被忽略；<br><strong>注意：</strong>要使用此參數，請將 <code>enable_javascript</code> 或 <code>enable_browser_rendering</code> 設為 <code>true</code>最小值（像素）：<code>240</code><br>最大值（像素）：<code>9999</code>"
          },
          "browser_screen_scale_factor": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>瀏覽器螢幕縮放比例</em><br>選填欄位<br>你可以設定自訂的瀏覽器螢幕解析度比例，以便針對特定裝置進行稽核；<br>如果使用此欄位，則無需指定 <code>browser_preset</code>，它將被忽略；<br><strong>注意：</strong>要使用此參數，請將 <code>enable_javascript</code> 或 <code>enable_browser_rendering</code> 設為 <code>true</code>最小值：<code>0.5</code><br>最大值：<code>3</code>"
          },
          "respect_sitemap": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>爬取時遵循網站地圖</em><br>選填欄位<br>如果希望在爬取時按主要網站地圖中指示的頁面順序進行，請設為 <code>true</code>；<br>預設值：<code>false</code><br><strong>注意：</strong>如果設為 <code>true</code>，API 回應中的 <code>click_depth</code> 值將等於 <code>0</code>；<br>請求中的 <code>max_crawl_depth</code> 欄位將被忽略，你可以使用 <code>max_crawl_pages</code> 參數指定要爬取的頁面數量"
          },
          "custom_sitemap": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>自訂網站地圖 URL</em><br>選填欄位<br>替代網站地圖所在頁面的 URL<br><strong>注意：</strong>如果要使用此參數，<code>respect_sitemap</code> 應為 <code>true</code>"
          },
          "crawl_sitemap_only": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>僅爬取網站地圖中指示的頁面</em><br>選填欄位<br>如果只想爬取網站地圖中指示的頁面，請設為 <code>true</code><br>如果將此參數設為 <code>true</code> 且未指定 <code>custom_sitemap</code>，將爬取預設網站地圖<br>預設值：<code>false</code><br><strong>注意：</strong>如果要使用此參數，<code>respect_sitemap</code> 應為 <code>true</code>"
          },
          "load_resources": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>載入資源</em><br>選填欄位<br>如果希望載入圖片、樣式表、指令碼和損毀的資源，請設為 <code>true</code><br>預設值：<code>false</code><br><strong>注意：</strong>使用此參數將產生額外費用；有關使用此參數的任務費用，請參閱<a href=\"https://dataforseo.com/help-center/cost-of-onpage-api-parameters\" target=\"_blank\" rel=\"noopener noreferrer\">說明文章</a>；費用可在<a href=\"https://dataforseo.com/pricing/on-page/onpage-api\" target=\"_blank\" rel=\"noopener noreferrer\">定價頁</a>計算"
          },
          "enable_www_redirect_check": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>檢查網域是否實作了 www 重新導向</em><br>選填欄位<br>如果希望檢查所請求的網域是否實作了 www 到非 www 或非 www 到 www 的重新導向，請設為 <code>true</code>；<br>預設值：<code>false</code>"
          },
          "enable_javascript": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>在頁面中載入 JavaScript</em><br>選填欄位<br>如果希望載入頁面上可用的指令碼，請設為 <code>true</code><br>預設值：<code>false</code><br><strong>注意：</strong>使用此參數將產生額外費用；有關使用此參數的任務費用，請參閱<a href=\"https://dataforseo.com/help-center/cost-of-onpage-api-parameters\" target=\"_blank\" rel=\"noopener noreferrer\">說明文章</a>；費用可在<a href=\"https://dataforseo.com/pricing/on-page/onpage-api\" target=\"_blank\" rel=\"noopener noreferrer\">定價頁</a>計算"
          },
          "enable_xhr": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>在頁面中啟用 XMLHttpRequest</em><br>選填欄位<br>如果希望我們的爬蟲使用 XMLHttpRequest 物件從網頁伺服器請求資料，請設為 <code>true</code><br>預設值：<code>false</code>；如果使用此欄位，<code>enable_javascript</code> 必須設為 <code>true</code>；"
          },
          "enable_browser_rendering": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>模擬瀏覽器轉譯以測量 Core Web Vitals</em><br>選填欄位<br>使用此參數可以在載入網頁時模擬瀏覽器；<br><code>enable_browser_rendering</code> 會載入頁面上的樣式、圖片、字型、動畫、影片和其他資源；<br>預設值：<code>false</code><br>設為 <code>true</code> 以在回應中取得 Core Web Vitals（FID、CLS、LCP）指標；<br><strong>如果使用此欄位，<code>enable_javascript</code> 和 <code>load_resources</code> 參數必須設為 <code>true</code></strong><br><strong>注意：</strong>使用此參數將產生額外費用；有關使用此參數的任務費用，請參閱<a href=\"https://dataforseo.com/help-center/cost-of-onpage-api-parameters\" target=\"_blank\" rel=\"noopener noreferrer\">說明文章</a>；費用可在<a href=\"https://dataforseo.com/pricing/on-page/onpage-api\" target=\"_blank\" rel=\"noopener noreferrer\">定價頁</a>計算"
          },
          "disable_cookie_popup": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>停用 Cookie 彈出視窗</em><br>選填欄位<br>如果希望停用向使用者要求 Cookie 同意的彈出視窗，請設為 <code>true</code>；<br>預設值：<br><code>false</code>"
          },
          "custom_js": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>自訂 JavaScript</em><br>選填欄位<br><strong>注意</strong>：此處輸入的指令碼執行時間最長應為 700 ms。例如，可以使用以下 JS 片段檢查網站是否以 <code>scr</code> 屬性包含 Google Tag Manager：<br><code>let meta = { haveGoogleAnalytics: false, haveTagManager: false };rnfor (var i = 0; i &lt; document.scripts.length; i++) {rn let src = document.scripts[i].getAttribute(\"src\");rn if (src != undefined) {rn if (src.indexOf(\"analytics.js\") &gt;= 0)rn      meta.haveGoogleAnalytics = true;rntif (src.indexOf(\"gtm.js\") &gt;= 0)rn      meta.haveTagManager = true;rn  }rn}rnmeta;</code>傳回值取決於你在此欄位中指定的內容。例如，如果指定以下指令碼：<br>`meta = {}; meta.url = document.URL; meta.test = 'test'; meta;`<br>你將收到以下資料作為回應：<br>`\"custom_js_response\": {<br>\"url\": \"https://dataforseo.com/\",<br>\"test\": \"test\"<br>}`<br><strong>注意：</strong>輸入的指令碼長度不得超過 2000 個字元"
          },
          "validate_micromarkup": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>啟用微資料驗證</em><br>選填欄位<br>如果希望使用<a href=\"/v3/on_page/microdata/\" target=\"_blank\" rel=\"noopener noreferrer\">OnPage API Microdata 端點</a>，請設為 <code>true</code><br>預設值：<code>false</code>"
          },
          "allow_subdomains": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>包含子網域上的頁面</em><br>選填欄位<br>如果要擷取目標網站的所有子網域，請設為 <code>true</code><br>預設值：<code>false</code>"
          },
          "allowed_subdomains": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>要擷取的子網域</em><br>選填欄位<br>指定你想擷取的子網域<br>範例：<code>[\"blog.site.com\", \"my.site.com\", \"shop.site.com\"]</code><br><strong>注意：</strong>要使用此參數，<code>allow_subdomains</code> 參數應設為 <code>false</code>；<br>否則，<code>allowed_subdomains</code> 欄位的內容將被忽略，結果將針對所有子網域傳回"
          },
          "disallowed_subdomains": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>不爬取的子網域</em><br>選填欄位<br>指定不希望爬取的子網域<br>範例：<code>[\"status.site.com\", \"docs.site.com\"]</code><br><strong>注意：</strong>要使用此參數，<code>allow_subdomains</code> 參數應設為 <code>true</code>"
          },
          "check_spell": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>檢查拼字</em><br>選填欄位<br>設為 <code>true</code> 可使用 <a href=\"http://hunspell.github.io/\" target=\"_blank\" rel=\"noopener noreferrer\">Hunspell</a> 程式庫檢查網站上的拼字<br>預設值：<code>false</code>"
          },
          "check_spell_language": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>拼字檢查的語言</em><br>選填欄位<br>支援的語言：'hy', 'eu', 'bg', 'ca', 'hr', 'cs', 'da', 'nl', 'en', 'eo', 'et', 'fo', 'fa', 'fr', 'fy', 'gl', 'ka', 'de', 'el', 'he', 'hu', 'is', 'ia', 'ga', 'it', 'rw', 'la', 'lv', 'lt', 'mk', 'mn', 'ne', 'nb', 'nn', 'pl', 'pt', 'ro', 'gd', 'sr', 'sk', 'sl', 'es', 'sv', 'tr', 'tk', 'uk', 'vi'<br><strong>注意：</strong>如果未指定語言，將根據頁面內容自動設定"
          },
          "check_spell_exceptions": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>從拼字檢查中排除的單字</em><br>選填欄位<br>指定你想從拼字檢查中排除的單字<br>單字長度上限：100 個字元<br>單字數量上限：1000<br>範例： <code>\"SERP\", \"minifiers\", \"JavaScript\"</code>"
          },
          "calculate_keyword_density": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>計算目標網域的關鍵字密度</em><br>選填欄位<br>如果要計算網站頁面的關鍵字密度，請設為 <code>true</code><br>預設值：<code>false</code><br><strong>注意：</strong>使用此參數將產生額外費用；請在我們的<a href=\"https://dataforseo.com/help-center/cost-of-onpage-api-parameters\" target=\"_blank\" rel=\"noopener noreferrer\">說明文章</a>中了解帶有此參數的任務費用<br>擷取完成後，你可以透過<a href=\"/v3/on_page/keyword_density?bash\" target=\"_blank\" rel=\"noopener noreferrer\">Keyword Density 端點</a>取得關鍵字密度值"
          },
          "checks_threshold": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int64"
            },
            "description": "<em>自訂檢查閾值</em><br>選填欄位<br>你可以為 OnPage API 回應的 <code>checks</code> 物件中的參數指定自訂閾值；<br><strong>注意：</strong>只能修改整數閾值；<br>例如，<code>high_loading_time</code> 與 <code>large_page_size</code> 參數預設分別設為 3 秒與 1 MB；<br>如果要將這些閾值改為 1 秒與 1000 KB，請使用以下程式碼片段：<br>`\"checks_threshold\": {<br>\"high_loading_time\": 1,<br>\"large_page_size\": 1000<br>}`<br>可自訂的參數及預設值：<br>`\"title_too_short\", default value: 30, type: \"int\"<br>\"title_too_long\", default value: 65, type: \"int\"<br>\"small_page_size\", default value: 1024, type: \"int\"<br>\"large_page_size\", default value: 1048576 (1024 * 1024), type: \"int\"<br>\"low_character_count\", default value: 1024, type: \"int\"<br>\"high_character_count\", default value: 256000 (250 * 1024), type: \"int\"<br>\"low_content_rate\", default value: 0.1, type: \"float\"<br>\"high_content_rate\", default value: 0.9, type: \"float\"<br>\"high_loading_time\", default value: 3000, type: \"int\"<br>\"high_waiting_time\", default value: 1500, type: \"int\"<br>\"low_readability_rate\", default value: 15.0, type: \"float\"<br>\"irrelevant_description\", default value: 0.2, type: \"float\"<br>\"irrelevant_title\", default value: 0.3, type: \"float\"<br>\"irrelevant_meta_keywords\", default value: 0.6, type: \"float\"`"
          },
          "disable_sitewide_checks": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>阻止某些全站檢查執行</em><br>選填欄位<br>指定以下 <code>checks</code>，以阻止它們在 <code>target</code> 網站上執行：<br><code>\"test_page_not_found\"</code><br><code>\"test_canonicalization\"</code><br><code>\"test_https_redirect\"</code><br><code>\"test_directory_browsing\"</code>範例：<br><code>\"disable_sitewide_checks\": [\"test_directory_browsing\", \"test_page_not_found\"]</code>在<a href=\"https://dataforseo.com/help-center/how-to-disable-sitewide-checks-in-onpage-api\" target=\"_blank\" rel=\"noopener noreferrer\">說明中心</a>了解更多"
          },
          "disable_page_checks": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "<em>阻止某些頁面檢查執行</em><br>選填欄位<br>指定某些 <code>checks</code>，以阻止其執行並影響 <code>onpage_score</code>。範例：<br><code>\"disable_page_checks\": [\"is_5xx_code\", \"is_4xx_code\"]</code>"
          },
          "switch_pool": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>切換代理伺服器集區</em><br>選填欄位<br>如果為 <code>true</code>，將使用其他代理伺服器集區取得所要求的資料；<br>如果同時設定大量任務，導致偶爾出現 <code>rate-limit</code> 和/或 <code>site_unreachable</code> 錯誤，可以使用此參數"
          },
          "return_despite_timeout": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>即使逾時也傳回頁面資料</em><br>選填欄位<br>如果為 <code>true</code>，將提供在 120 秒內載入失敗並傳回逾時錯誤的頁面資料；<br>預設值：<code>false</code>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>使用者自訂任務識別碼</em><br>選填欄位<br><em>字元數上限為 255</em><br>可使用此參數識別任務，並將其與結果對應<br>可在回應的 <code>data</code> 物件中找到指定的 <code>tag</code> 值"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>任務完成通知 URL</em><br>選填欄位<br>任務完成後，我們會向你指定的 URL 傳送 GET 請求進行通知<br>可將 ‘$id’ 字串用作 <code>$id</code> 變數，將 ‘$tag’ 用作經 URL 編碼的 <code>$tag</code> 變數。傳送請求前我們會設定必要的值。<br>範例：<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>注意：</strong><code>pingback_url</code> 中的特殊字元會進行 URL 編碼；<br>例如，<code>#</code> 字元會被編碼為 <code>%23</code><p>詳情請參閱我們的 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">說明中心</a>"
          }
        },
        "example": [
          {
            "target": "dataforseo.com",
            "max_crawl_pages": 10,
            "load_resources": true,
            "enable_javascript": true,
            "custom_js": "meta = {}; meta.url = document.URL; meta;",
            "tag": "some_string_123",
            "pingback_url": "https://your-server.com/pingscript?id=$id&tag=$tag"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "target": "dataforseo.com",
      "max_crawl_pages": 10,
      "load_resources": true,
      "enable_javascript": true,
      "custom_js": "meta = {}; meta.url = document.URL; meta;",
      "tag": "some_string_123",
      "pingback_url": "https://your-server.com/pingscript?id=$id&tag=$tag"
    }
  ]
}
```

## Responses

### 200 — 操作成功

Headers:
- `X-Request-Id` (string) — 聯絡 Felo 支援時需提供的請求識別碼。

**application/json**

Schema: object | null

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

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

### 401 — 需要有效的 Felo API 金鑰。

### 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": "任務總費用，美元",
      "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": "任務總費用，美元",
      "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_OnPageTaskPostResponseInfo

`#/components/schemas/Response36Afe1097B20_OnPageTaskPostResponseInfo`

```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_OnPageTaskPostTaskInfo"
              }
            ]
          },
          "description": "<em>任務陣列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_OnPageTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_OnPageTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>結果陣列</em><br>在此情況下，該值將為 <code>null</code>"
        }
      }
    }
  ]
}
```
