# تاریخچه بک‌لینک‌ها

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/backlinks/history/live`

**Tags:** DataForSEO

نمایه بک‌لینک یک `target` همان‌گونه که در هر تاریخ از یک بازه بود، با `date_from`، `date_to` و یک مورد برای هر نقطه. برای نمایه فعلی فقط از `post_dataforseo_backlinks_summary_live` استفاده کنید. برای سری زمانی سبک‌تر، `post_dataforseo_backlinks_timeseries_summary_live` معیارهای کمتری برای هر نقطه گزارش می‌کند. این نقطه پارامتر محدودیت ندارد، بنابراین تنها اهرم، فراخوانی کم‌تر آن است.

### مرجع قیمت‌گذاری

- اندازه‌گیری: هزینه گزارش‌شده پاسخ.
- برآورد درخواست مرجع: 0.0271 دلار آمریکا.
- ضریب مشتری مرجع: 1.0. آن را دوباره روی مبلغ تسویه‌شده مشتری اعمال نکنید.

فقط فراداده مرجع است، نه نقل‌قول حساب، نه قیمت تضمین‌شده و نه سقف هزینه. اعتبار منابع، اعتبار Felo نیست. هزینه‌های نهایی تابع سوابق صورت‌حساب Felo است.

## Related links

- [این مقاله مرکز راهنمایی](<https://dataforseo.com/help-center/what_is_rank_in_backlinks_api#rank_scale>)
- [این مقاله مرکز راهنما](<https://dataforseo.com/help-center/what_is_rank_in_backlinks_api>)
- [اینجا](<https://www.w3schools.com/html/html5_semantic_elements.asp>)
- [این صفحه مرکز راهنما](<https://dataforseo.com/help-center/what-is-spam-score-and-how-is-it-calculated>)

## 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> مشخص شود"
          },
          "date_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>تاریخ شروع بازه زمانی</em><br>فیلد اختیاری<br>حداقل مقدار <code>2019-01-01</code><br>اگر این فیلد را مشخص نکنید، به‌طور پیش‌فرض از حداقل مقدار استفاده می‌شود<br>قالب تاریخ: <code>\"yyyy-mm-dd\"</code><br>مثال:<br><code>\"2019-01-15\"</code>"
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>تاریخ پایان بازه زمانی</em><br>فیلد اختیاری<br>اگر این فیلد را تعیین نکنید، به‌طور پیش‌فرض از تاریخ امروز استفاده می‌شود<br>قالب تاریخ: <code>\"yyyy-mm-dd\"</code><br>مثال:<br><code>\"2019-01-15\"</code>"
          },
          "rank_scale": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>مقیاسی را تعیین می‌کند که مقادیر <code>rank</code>، <code>domain_from_rank</code> و <code>page_from_rank</code> بر اساس آن محاسبه و نمایش داده می‌شوند</em><br>فیلد اختیاری<p>می‌توانید از این پارامتر برای انتخاب اینکه مقادیر رتبه در مقیاس 0–100 یا 0–1000 نمایش داده شوند استفاده کنید<p>مقادیر ممکن:<br><code>one_hundred</code> — مقادیر رتبه در مقیاس 0–100 نمایش داده می‌شوند<br><code>one_thousand</code> — مقادیر رتبه در مقیاس 0–1000 نمایش داده می‌شوند<p>مقدار پیش‌فرض: <code>one_thousand</code><p>اطلاعات بیشتر درباره نحوه کار این پارامتر و نحوه محاسبه معیارهای رتبه‌بندی در این مقاله مرکز راهنمایی موجود است"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>شناسه وظیفه تعریف‌شده توسط کاربر</em><br>فیلد اختیاری<br><em>محدودیت کاراکتر 255 است</em><br>می‌توانید از این پارامتر برای شناسایی وظیفه و تطبیق آن با نتیجه استفاده کنید<br>مقدار <code>tag</code> مشخص‌شده را در شیء <code>data</code> پاسخ پیدا می‌کنید"
          }
        },
        "example": [
          {
            "target": "cnn.com",
            "date_from": "2020-01-01",
            "date_to": "2021-01-01"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "target": "cnn.com",
      "date_from": "2020-01-01",
      "date_to": "2021-01-01"
    }
  ]
}
```

## Responses

### 200 — عملیات موفق

Headers:
- `X-Request-Id` (string) — شناسه درخواست برای درج هنگام تماس با پشتیبانی Felo.

**application/json**

Schema: object | null

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

### 400 — درخواست پردازش نشد. پارامترهای درخواست را بررسی کنید.

### 401 — یک کلید API معتبر Felo لازم است.

### 402 — درخواست ادامه نمی‌یابد چون یک الزام صورت‌حساب برآورده نشده است.

### 403 — حساب مجاز به انجام این عملیات نیست.

### 429 — به سقف درخواست یا هزینه رسیده‌اید.

### 502 — سرویس نتوانست درخواست را کامل کند.

### 503 — سرویس API یا صورت‌حساب موقتاً در دسترس نیست.

### 504 — سرویس هنگام پردازش درخواست به پایان مهلت رسید.

### default — پاسخ خطا؛ پاسخ‌های عبوری بالادست ممکن است از قالب‌های ارائه‌دهنده استفاده کنند

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BacklinksHistoryLiveItem

`#/components/schemas/Response36Afe1097B20_BacklinksHistoryLiveItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "نوع عنصر"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاریخ و زمانی که داده‌های هدف ذخیره شد</em><br>در قالب UTC: \"yyyy-mm-dd hh-mm-ss +00:00\"<br>مثال:<br><code>2019-11-15 12:57:46 +00:00</code>"
    },
    "rank": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>رتبه دامنه در <code>date</code> مشخص‌شده</em><br>برای آشنایی با این معیار و نحوه محاسبه آن، این مقاله مرکز راهنما را ببینید"
    },
    "backlinks": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد بک‌لینک‌ها</em>",
      "format": "int64"
    },
    "new_backlinks": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد بک‌لینک‌های جدید برای <code>target</code></em><br>داده‌ها بر اساس مقایسه با دوره قبل ارائه می‌شوند<br><strong>نکته:</strong> این داده‌ها از مه 2021 در دسترس‌اند؛<br>اگر بازه تاریخ مشخص‌شده در درخواست POST پیش از مه 2021 باشد، این فیلد برابر <code>0</code> خواهد بود",
      "format": "int64"
    },
    "lost_backlinks": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد بک‌لینک‌های ازدست‌رفته برای <code>target</code></em><br>داده‌ها بر اساس مقایسه با دوره قبل ارائه می‌شوند<br><strong>نکته:</strong> این داده‌ها از مه 2021 در دسترس‌اند؛<br>اگر بازه تاریخ مشخص‌شده در درخواست POST پیش از مه 2021 باشد، این فیلد برابر <code>0</code> خواهد بود",
      "format": "int64"
    },
    "new_referring_domains": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد دامنه‌های ارجاع‌دهنده جدید برای <code>target</code></em><br>داده‌ها بر اساس مقایسه با دوره قبل ارائه می‌شوند<br><strong>نکته:</strong> این داده‌ها از مه 2021 در دسترس‌اند؛<br>اگر بازه تاریخ مشخص‌شده در درخواست POST پیش از مه 2021 باشد، این فیلد برابر <code>0</code> خواهد بود",
      "format": "int64"
    },
    "lost_referring_domains": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد دامنه‌های ارجاع‌دهنده ازدست‌رفته برای <code>target</code></em><br>داده‌ها بر اساس مقایسه با دوره قبل ارائه می‌شوند<br><strong>نکته:</strong> این داده‌ها از مه 2021 در دسترس‌اند؛<br>اگر بازه تاریخ مشخص‌شده در درخواست POST پیش از مه 2021 باشد، این فیلد برابر <code>0</code> خواهد بود",
      "format": "int64"
    },
    "crawled_pages": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد صفحات خزش‌شده برای <code>target</code></em>"
    },
    "info": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_TargetInfo"
        }
      ],
      "description": "<em>اطلاعات درباره <code>target</code></em>"
    },
    "internal_links_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد پیوندهای داخلی</em><br>به‌صورت مجموع پیوندهای داخلی در صفحه‌های <code>target</code> مشخص‌شده محاسبه می‌شود",
      "format": "int64"
    },
    "external_links_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد پیوندهای خارجی در صفحه</em><br>به‌صورت مجموع پیوندهای خارجی در صفحه‌های <code>target</code> مشخص‌شده محاسبه می‌شود",
      "format": "int64"
    },
    "broken_backlinks": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد بک‌لینک‌های شکسته</em><br>تعداد بک‌لینک‌های شکسته‌ای که به <code>target</code> اشاره می‌کنند",
      "format": "int64"
    },
    "broken_pages": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد صفحات شکسته</em><br>تعداد صفحه‌هایی که بک‌لینک دریافت می‌کنند اما با کدهای وضعیت 4xx یا 5xx پاسخ می‌دهند"
    },
    "referring_domains": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد دامنه‌های ارجاع‌دهنده</em><br>دامنه‌های ارجاع‌دهنده شامل زیردامنه‌هایی می‌شوند که برای این معیار دامنه‌های جداگانه شمرده می‌شوند",
      "format": "int64"
    },
    "referring_domains_nofollow": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد دامنه‌هایی که دست‌کم یک پیوند nofollow به <code>target</code> اشاره می‌کنند</em>",
      "format": "int64"
    },
    "referring_main_domains": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد دامنه‌های اصلی ارجاع‌دهنده</em>",
      "format": "int64"
    },
    "referring_main_domains_nofollow": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد دامنه‌های اصلی که دست‌کم یک پیوند nofollow به <code>target</code> اشاره می‌کنند</em>",
      "format": "int64"
    },
    "referring_ips": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد نشانی‌های IP ارجاع‌دهنده</em><br>تعداد نشانی‌های IP که به این صفحه اشاره می‌کنند",
      "format": "int64"
    },
    "referring_subnets": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد زیرشبکه‌های ارجاع‌دهنده</em>",
      "format": "int64"
    },
    "referring_pages": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد صفحه‌هایی که به <code>target</code> اشاره می‌کنند</em>",
      "format": "int64"
    },
    "referring_pages_nofollow": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد صفحه‌های ارجاع‌دهنده‌ای که دست‌کم یک پیوند nofollow به <code>target</code> اشاره می‌کنند</em>",
      "format": "int64"
    },
    "referring_links_tld": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>دامنه‌های سطح بالای پیوندهای ارجاع‌دهنده</em><br>شامل دامنه‌های سطح بالا و تعداد پیوندهای ارجاع‌دهنده برای هر یک است"
    },
    "referring_links_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>انواع پیوندهای ارجاع‌دهنده</em><br>انواع پیوندهای ارجاع‌دهنده و تعداد پیوند برای هر نوع را نشان می‌دهد<br>مقادیر ممکن:<br><code>anchor</code>، <code>image</code>، <code>link</code>، <code>meta</code>، <code>canonical</code>، <code>alternate</code>، <code>redirect</code>"
    },
    "referring_links_attributes": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>ویژگی‌های پیوندِ پیوندهای ارجاع‌دهنده</em><br>ویژگی‌های پیوندِ پیوندهای ارجاع‌دهنده و تعداد پیوند برای هر ویژگی را نشان می‌دهد"
    },
    "referring_links_platform_types": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>انواع پلتفرم‌های ارجاع‌دهنده</em><br>انواع پلتفرم‌های ارجاع‌دهنده و تعداد پیوند برای هر پلتفرم را نشان می‌دهد<p>مقادیر ممکن: <code>cms</code>، <code>blogs</code>، <code>ecommerce</code>، <code>message-boards</code>، <code>wikis</code>، <code>news</code>، <code>organization</code>"
    },
    "referring_links_semantic_locations": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>مکان‌های معنایی پیوندهای ارجاع‌دهنده</em><br>عناصر معنایی HTML را که پیوندهای ارجاع‌دهنده در آن‌ها قرار دارند و تعداد پیوند برای هر مکان معنایی را نشان می‌دهد<br>فهرست کامل عناصر معنایی را می‌توانید اینجا ببینید<br>مثال‌ها:<br><code>article</code>، <code>section</code>، <code>summary</code>"
    },
    "referring_links_countries": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "integer",
          "null"
        ],
        "format": "int64"
      },
      "description": "<em>کدهای کشور ISO پیوندهای ارجاع‌دهنده</em><br>کدهای کشور ISO دامنه‌هایی را نشان می‌دهد که پیوندهای ارجاع‌دهنده در آن‌ها قرار دارند و تعداد پیوند برای هر کشور"
    }
  }
}
```

### Response36Afe1097B20_BacklinksHistoryLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_BacklinksHistoryLiveResponseInfo`

```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_BacklinksHistoryLiveTaskInfo"
              }
            ]
          },
          "description": "<em>آرایه‌ای از وظایف</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BacklinksHistoryLiveResultInfo

`#/components/schemas/Response36Afe1097B20_BacklinksHistoryLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "target": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em><code>target</code> از آرایه POST</em>"
    },
    "date_from": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاریخ شروع بازه زمانی</em><br>در قالب UTC: “yyyy-mm-dd”<br>مثال:<br><code>2019-01-01</code>"
    },
    "date_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>تاریخ پایان بازه زمانی</em><br>در قالب UTC: <code>\"yyyy-mm-dd\"</code><br>مثال:<br><code>\"2019-01-15\"</code>"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>تعداد نتایج بازگردانده‌شده در آرایه <code>items</code></em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BacklinksHistoryLiveItem"
          }
        ]
      },
      "description": "<em>داده‌های تاریخی بک‌لینک را برای دامنه مشخص‌شده در بر دارد</em><br>داده‌ها ماه‌به‌ماه ارائه می‌شوند؛<br>معیارها بر اساس بک‌لینک‌هایی که دامنه مشخص‌شده در روز اول هر ماه داده‌شده داشت، تجمیع می‌شوند"
    }
  }
}
```

### Response36Afe1097B20_BacklinksHistoryLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_BacklinksHistoryLiveTaskInfo`

```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_BacklinksHistoryLiveResultInfo"
              }
            ]
          },
          "description": "<em>آرایه‌ای از نتایج</em>"
        }
      }
    }
  ]
}
```

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

`#/components/schemas/Response36Afe1097B20_TargetInfo`

```json
{
  "type": "object",
  "properties": {
    "server": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>سرور</em>"
    },
    "cms": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>سیستم مدیریت محتوا</em>"
    },
    "platform_type": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>نوع پلتفرم</em>"
    },
    "ip_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>نشانی IP <code>target</code></em>"
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>کد کشوری که دامنه <code>target</code> متعلق به آن تعیین شده است</em>"
    },
    "is_ip": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>نشان می‌دهد آیا <code>target</code> یک IP است</em><br>اگر <code>true</code> باشد، دامنه، زیردامنه یا صفحه وب به‌عنوان نشانی IP عمل می‌کند و نام دامنه ندارد"
    },
    "target_spam_score": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>امتیاز اسپم <code>target</code></em><br>اگر <code>target</code> یک دامنه/زیردامنه باشد، این فیلد میانگین امتیاز اسپم همه صفحات آن دامنه/زیردامنه را نشان می‌دهد؛<br>درباره نحوه محاسبه این معیار در این صفحه مرکز راهنما بیشتر بدانید"
    }
  }
}
```
