# Waterfall في OnPage API

**API:** Data API

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

**Tags:** DataForSEO

الجدول الزمني لتحميل `url` واحد تم الزحف إليه — ما طُلب، وبأي ترتيب، وكم استغرق كل منها. يقرأ زحفًا منتهيًا، لذا يحتاج `id` من `post_dataforseo_on_page_submit` ويعيد `crawl_progress` مع `crawl_status` من `max_crawl_pages` و`pages_in_queue` و`pages_crawled` — افحصها قبل الوثوق بنتيجة صغيرة، لأن الزحف الذي لا يزال جاريًا يبلّغ عن أقل فقط. استخدمه لتفسير صفحة بطيئة؛ وللحصول على تدقيق أداء مُقيَّم بدلًا من ذلك استخدم `post_dataforseo_on_page_lighthouse_live_json`. 💰 مجاني من المنبع: الاستعلام عن زحف منتهٍ لا يكلّف شيئًا، الزحف نفسه فقط.

### مرجع التسعير

- القياس: تكلفة الاستجابة المُبلَّغ عنها.
- تقدير الطلب المرجعي: 0.012 دولار أمريكي.
- مضاعف العميل المرجعي: 1.0. لا تُطبّقه مرة أخرى على مبلغ عميل مسوّى.

بيانات وصفية مرجعية فقط، وليست عرض سعر للحساب ولا سعرًا مضمونًا ولا حدًا للإنفاق. أرصدة الموارد ليست أرصدة Felo. تتبع الرسوم النهائية سجلات فوترة Felo.

## Related links

- [Task POST](<https://docs.dataforseo.com/v3/on_page/task_post/>)
- [الوقت حتى التفاعل (TTI)](<https://web.dev/interactive/>)
- [(TTFB)](<https://en.wikipedia.org/wiki/Time_to_first_byte>)

## 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": {
          "id": {
            "type": "string",
            "description": "<em>معرّف المهمة</em><br><strong>حقل مطلوب</strong><br>يمكنك الحصول على هذا المعرّف في استجابة نقطة النهاية Task POST<br>مثال:<br>\"07131248-1535-0216-1000-17384017ad04\""
          },
          "url": {
            "type": "string",
            "description": "<em>عنوان URL للصفحة</em><br><strong>حقل مطلوب</strong><br>حدد الصفحات التي تريد تلقي التوقيت لها"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>معرّف مهمة يحدده المستخدم</em><br>حقل اختياري<br><em>الحد الأقصى للأحرف هو 255</em><br>يمكنك استخدام هذا المعامل لتمييز المهمة ومطابقتها مع النتيجة<br>ستجد قيمة <code>tag</code> المحددة في كائن <code>data</code> ضمن الاستجابة"
          }
        },
        "example": [
          {
            "id": "08101204-0696-0216-0000-644a7b21a48a",
            "url": "https://dataforseo.com/tag/broken-links"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "id": "08101204-0696-0216-0000-644a7b21a48a",
      "url": "https://dataforseo.com/tag/broken-links"
    }
  ]
}
```

## Responses

### 200 — عملية ناجحة

Headers:
- `X-Request-Id` (string) — معرّف الطلب المراد تضمينه عند التواصل مع دعم Felo.

**application/json**

Schema: object | null

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

### 400 — تعذّرت معالجة الطلب. تحقق من معاملات الطلب.

### 401 — مطلوب مفتاح API صالح من Felo.

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

`#/components/schemas/Response36Afe1097B20_CrawlStatusInfo`

```json
{
  "type": "object",
  "properties": {
    "max_crawl_pages": {
      "type": [
        "integer",
        "null"
      ],
      "description": "الحد الأقصى لعدد الصفحات المراد الزحف إليها\nيشير إلى حد max_crawl_pages الذي حددته عند إعداد المهمة",
      "format": "int64"
    },
    "pages_in_queue": {
      "type": [
        "integer",
        "null"
      ],
      "description": "عدد الصفحات الموجودة حاليًا في قائمة انتظار الزحف",
      "format": "int64"
    },
    "pages_crawled": {
      "type": [
        "integer",
        "null"
      ],
      "description": "عدد الصفحات المزحوفة",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_OnPageResourceLocationInfo

`#/components/schemas/Response36Afe1097B20_OnPageResourceLocationInfo`

```json
{
  "type": "object",
  "properties": {
    "line": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رقم السطر</em><br>رقم السطر الذي يقع فيه المورد"
    },
    "offset_left": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الموضع في السطر</em><br>عدد أحرف السطر قبل المورد؛<br>يُشار إليه أحيانًا باسم <em>العمود</em><br><strong>ملاحظة:</strong> يبدأ العد من 1، أي إذا لم يكن للمورد أي أحرف على اليسار، فستكون القيمة 1"
    },
    "offset_top": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الموضع في المستند</em><br>العدد الإجمالي للأحرف بين المورد وأعلى HTML"
    }
  }
}
```

### Response36Afe1097B20_OnPageWaterfallItem

`#/components/schemas/Response36Afe1097B20_OnPageWaterfallItem`

```json
{
  "type": "object",
  "properties": {
    "page_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان URL للصفحة</em>"
    },
    "time_to_interactive": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>مقياس الوقت حتى التفاعل (TTI)</em><br>الوقت اللازم حتى يتمكن المستخدم من التفاعل مع الصفحة (بالمللي ثانية)"
    },
    "dom_complete": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لتحميل الموارد</em><br>الوقت اللازم حتى يتم تنزيل الصفحة وجميع مواردها الفرعية (بالمللي ثانية)"
    },
    "connection_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق للاتصال بالخادم</em><br>الوقت اللازم حتى يتم إنشاء الاتصال بالخادم (بالمللي ثانية)"
    },
    "time_to_secure_connection": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لإنشاء اتصال آمن</em><br>الوقت اللازم حتى يتم إنشاء الاتصال الآمن بالخادم (بالمللي ثانية)"
    },
    "request_sent_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لإرسال طلب إلى خادم</em><br>الوقت اللازم حتى يتم إرسال الطلب إلى الخادم (بالمللي ثانية)"
    },
    "waiting_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>وقت أول بايت (TTFB) بالمللي ثانية</em>"
    },
    "download_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت الذي يستغرقه المتصفح لتلقي استجابة (بالمللي ثانية)</em>"
    },
    "duration_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت الإجمالي الذي يستغرقه المتصفح لتلقي استجابة كاملة من الخادم (بالمللي ثانية)</em>"
    },
    "fetch_start": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لبدء تنزيل مورد HTML</em><br>الوقت الذي يحتاجه المتصفح لبدء تنزيل صفحة"
    },
    "fetch_end": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لإكمال تنزيل مورد HTML</em><br>الوقت الذي يحتاجه المتصفح لإكمال تنزيل صفحة"
    },
    "resources": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_WaterfallResourceInfo"
          }
        ]
      },
      "description": "<em>توقيت خاص بالمورد</em><br>يحتوي على مصفوفات منفصلة تتضمن التوقيت لكل مورد موجود في الصفحة"
    }
  }
}
```

### Response36Afe1097B20_OnPageWaterfallResponseInfo

`#/components/schemas/Response36Afe1097B20_OnPageWaterfallResponseInfo`

```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_OnPageWaterfallTaskInfo"
              }
            ]
          },
          "description": "<em>مصفوفة المهام</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_OnPageWaterfallResultInfo

`#/components/schemas/Response36Afe1097B20_OnPageWaterfallResultInfo`

```json
{
  "type": "object",
  "properties": {
    "crawl_progress": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>حالة جلسة الزحف</em><br>القيم الممكنة: <code>in_progress</code>، <code>finished</code>"
    },
    "crawl_status": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_CrawlStatusInfo"
        }
      ],
      "description": "<em>تفاصيل جلسة الزحف</em>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>عدد العناصر في مصفوفة النتائج</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_OnPageWaterfallItem"
          }
        ]
      },
      "description": "<em>مصفوفة العناصر</em>"
    }
  }
}
```

### Response36Afe1097B20_OnPageWaterfallTaskInfo

`#/components/schemas/Response36Afe1097B20_OnPageWaterfallTaskInfo`

```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_OnPageWaterfallResultInfo"
              }
            ]
          },
          "description": "<em>مصفوفة نتائج</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_WaterfallResourceInfo

`#/components/schemas/Response36Afe1097B20_WaterfallResourceInfo`

```json
{
  "type": "object",
  "properties": {
    "resource_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>عنوان URL للمورد</em>"
    },
    "initiator": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>بادئ المورد</em>"
    },
    "duration_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت الإجمالي الذي يستغرقه المتصفح لتلقي استجابة كاملة من الخادم (بالمللي ثانية)</em>"
    },
    "fetch_start": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لبدء تنزيل مورد HTML</em><br>الوقت الذي يحتاجه المتصفح لبدء تنزيل صفحة"
    },
    "fetch_end": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>الوقت المستغرق لإكمال تنزيل مورد HTML</em><br>الوقت الذي يحتاجه المتصفح لإكمال تنزيل صفحة"
    },
    "location": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_OnPageResourceLocationInfo"
        }
      ],
      "description": "<em>موقع المورد في المستند</em><br>معلمات تحدد موقع المورد المحدد داخل HTML المستند"
    },
    "is_render_blocking": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>يشير إلى ما إذا كان المورد يحجب العرض</em>"
    }
  }
}
```
