# لنکس

**API:** Data API

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

**Tags:** DataForSEO

کرال کے دوران ملنے والا ہر لنک، `id` کے ذریعے۔ `page_from` اور `page_to` سے فلٹر کریں تاکہ کسی ایک صفحے سے باہر جانے یا اس میں آنے والے لنک ملیں۔ `total_items_count`، `items_count`، `items` اور صفحہ بندی کے لیے `search_after_token` واپس کرتا ہے - ابتدائی صفحات کے بعد `offset` کے بجائے یہی استعمال کریں۔ مکمل شدہ کرال پڑھتا ہے، اس لیے اسے `post_dataforseo_on_page_submit` سے `id` درکار ہوتی ہے اور `crawl_progress` کے ساتھ `crawl_status` واپس کرتا ہے جس میں `max_crawl_pages`، `pages_in_queue` اور `pages_crawled` شامل ہیں - کسی چھوٹے نتیجے پر بھروسہ کرنے سے پہلے یہ دیکھیں، کیونکہ ابھی جاری کرال کے پاس بتانے کو کم ہوتا ہے۔ 💰 اپ اسٹریم مفت: مکمل شدہ کرال سے استفسار کرنے کی کوئی لاگت نہیں، لاگت صرف خود کرال کی ہے۔

### قیمت کا حوالہ

- میٹرنگ: رپورٹ شدہ جواب کی لاگت۔
- حوالہ جاتی درخواست کا تخمینہ: USD 0.012۔
- حوالہ جاتی صارف ملٹی پلائر: 1.0۔ تصفیہ شدہ صارف رقم پر اسے دوبارہ لاگو نہیں کریں۔

صرف حوالہ جاتی میٹا ڈیٹا، نہ کہ اکاؤنٹ کا کوٹ، ضمانت شدہ قیمت یا اخراجات کی حد۔ ریسورس کریڈٹس Felo کریڈٹس نہیں ہیں۔ حتمی چارجز Felo کے بلنگ ریکارڈز کے مطابق ہوں گے۔

## Related links

- [Task POST](<https://docs.dataforseo.com/v3/on_page/task_post/>)
- [اس لنک](<https://docs.dataforseo.com/v3/on_page/filters_and_thresholds/?bash>)
- [url اسکیم](<https://en.wikipedia.org/wiki/List_of_URI_schemes>)

## 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>ٹاسک کی ID</em><br><strong>درکار فیلڈ</strong><br>آپ یہ ID Task POST endpoint کے جواب میں حاصل کر سکتے ہیں<br>مثال:<br>\"07131248-1535-0216-1000-17384017ad04\""
          },
          "page_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>صفحے کا نسبتی URL</em><br>اختیاری فیلڈ<br>اگر آپ یہ فیلڈ استعمال کریں تو API جواب میں صرف متعین کردہ صفحے کے لنکس ہوں گے<br>نوٹ کریں کہ اس فیلڈ میں آپ صرف نسبتی URLs متعین کر سکتے ہیں"
          },
          "page_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>صفحے کا نسبتی URL</em><br>اختیاری فیلڈ<br>اگر آپ یہ فیلڈ استعمال کریں تو API جواب میں صرف متعین کردہ صفحے کی طرف اشارہ کرنے والے داخلی لنکس ہوں گے<br>نوٹ کریں کہ اس فیلڈ میں آپ صرف نسبتی URLs متعین کر سکتے ہیں"
          },
          "limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>واپس کیے جانے والے لنکس کی زیادہ سے زیادہ تعداد</em><br>اختیاری فیلڈ<br>ڈیفالٹ قدر: <code>100</code><br>زیادہ سے زیادہ قدر: <code>1000</code>"
          },
          "offset": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>واپس کیے گئے لنکس کی نتائج صف میں آفسیٹ</em><br>اختیاری فیلڈ<br>ڈیفالٹ قدر: <code>0</code><br>زیادہ سے زیادہ قدر: <code>2000000</code><br>اگر آپ قدر <code>10</code> متعین کریں تو نتائج کی صف میں پہلے دس لنکس چھوڑ دیے جائیں گے اور ڈیٹا اگلے لنکس کے لیے فراہم کیا جائے گا"
          },
          "filters": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ]
            },
            "description": "<em>نتائج کی فلٹرنگ پیرامیٹرز کی صف</em><br>اختیاری فیلڈ<br><strong>آپ ایک ساتھ کئی فلٹرز شامل کر سکتے ہیں (زیادہ سے زیادہ 8 فلٹرز)</strong><br>شرائط کے درمیان آپ کو منطقی آپریٹر <code>and</code>، <code>or</code> سیٹ کرنا چاہیے<br>درج ذیل آپریٹرز معاون ہیں:<br><code>regex</code>، <code>not_regex</code>، <code>=</code>، <code>&lt;&gt;</code>، <code>in</code>، <code>not_in</code>، <code>like</code>، <code>not_like</code><br>آپ <code>%</code> آپریٹر <code>like</code> اور <code>not_like</code> کے ساتھ صفر یا زیادہ حروف کی کسی بھی اسٹرنگ سے مطابقت کے لیے استعمال کر سکتے ہیں<br>مثال:<br><code>[\"direction\",\"=\",\"external\"]</code><p><code>[[\"domain_to\",\"&lt;&gt;\",\"example.com\"],<br>\"and\",<br>[\"link_from\",\"not_like\",\"%example.com/blog%\"]]</code><p><code>[[\"direction\",\"=\",\"external\"],<br>\"and\",<br>[[\"link_from\",\"like\",\"%example.com/blog%\"],\"or\",[\"link_from\",\"like\",\"%example.com/help%\"]]]</code><p>ممکنہ فلٹرز کی مکمل فہرست اس لنک پر دستیاب ہے۔"
          },
          "search_after_token": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>بعد کی درخواستوں کے لیے ٹوکن</em><br>اختیاری فیلڈ<br>ہر درخواست کے جواب کے اسی فیلڈ میں فراہم کیا جاتا ہے؛<br>ایک ہی درخواست میں <code>20,000</code> سے زیادہ نتائج حاصل کرتے وقت ٹائم آؤٹ سے بچنے کے لیے یہ پیرامیٹر استعمال کریں؛<br>جواب کی صف سے منفرد <code>search_after_token</code> قدر متعین کر کے آپ کو ابتدائی ٹاسک کے بعد کے نتائج ملیں گے؛<br><code>search_after_token</code> اقدار ہر بعد کے ٹاسک کے لیے منفرد ہوتی ہیں؛<br><strong>نوٹ:</strong> اگر درخواست میں <code>search_after_token</code> متعین ہو تو دیگر تمام پیرامیٹرز پچھلی درخواست کے عین مطابق ہونے چاہئیں"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>صارف کے متعین کردہ ٹاسک کا شناخت کنندہ</em><br>اختیاری فیلڈ<br><em>حروف کی حد 255 ہے</em><br>آپ اس پیرامیٹر سے ٹاسک کی شناخت کر سکتے ہیں اور اسے نتیجے سے ملا سکتے ہیں<br>آپ جواب کے <code>data</code> آبجیکٹ میں متعین کردہ <code>tag</code> قدر دیکھیں گے"
          }
        },
        "example": [
          {
            "id": "07281559-0695-0216-0000-c269be8b7592",
            "page_from": "/apis/google-trends-api",
            "filters": [
              [
                "dofollow",
                "=",
                true
              ],
              "and",
              [
                "direction",
                "=",
                "external"
              ]
            ],
            "limit": 10
          }
        ]
      }
    ]
  },
  "example": [
    {
      "id": "07281559-0695-0216-0000-c269be8b7592",
      "page_from": "/apis/google-trends-api",
      "filters": [
        [
          "dofollow",
          "=",
          true
        ],
        "and",
        [
          "direction",
          "=",
          "external"
        ]
      ],
      "limit": 10
    }
  ]
}
```

## Responses

### 200 — کامیاب آپریشن

Headers:
- `X-Request-Id` (string) — Felo سپورٹ سے رابطہ کرتے وقت شامل کرنے کے لیے درخواست کا شناخت کنندہ۔

**application/json**

Schema: object | null

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

### 400 — درخواست پر کارروائی نہیں ہو سکی۔ درخواست کے پیرامیٹرز چیک کریں۔

### 401 — درست Felo API کلید درکار ہے۔

### 402 — درخواست آگے نہیں بڑھ سکتی کیونکہ بلنگ کی شرط پوری نہیں ہوئی۔

### 403 — اکاؤنٹ کو یہ آپریشن کرنے کی اجازت نہیں۔

### 429 — درخواست یا اخراجات کی حد پوری ہو گئی ہے۔

### 502 — سروس درخواست مکمل نہیں کر سکی۔

### 503 — API یا بلنگ سروس عارضی طور پر دستیاب نہیں۔

### 504 — درخواست پر کارروائی کے دوران سروس کا وقت ختم ہو گیا۔

### default — خرابی کا جواب؛ اپ اسٹریم پاس تھرو جوابات پرووائیڈر کی شکلیں استعمال کر سکتے ہیں

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_BaseOnPageLinkItem

`#/components/schemas/Response36Afe1097B20_BaseOnPageLinkItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "عنصر کی قسم"
    },
    "domain_from": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ریفرنگ ڈومین</em><br>لنک اس ڈومین پر ملا"
    },
    "domain_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>حوالہ شدہ ڈومین</em><br>لنک اس ڈومین کی طرف اشارہ کر رہا ہے"
    },
    "page_from": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ریفرنگ صفحہ</em><br>اس صفحہ کا نسبتی URL جس پر لنک ملا"
    },
    "page_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>حوالہ شدہ صفحہ</em><br>اس صفحہ کا نسبتی URL جس کی طرف لنک اشارہ کر رہا ہے"
    },
    "link_from": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ریفرنگ صفحہ</em><br>اس صفحہ کا مطلق URL جس پر لنک ملا"
    },
    "link_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>حوالہ شدہ صفحہ</em><br>اس صفحہ کا مطلق URL جس کی طرف لنک اشارہ کر رہا ہے"
    },
    "dofollow": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>بتاتا ہے کہ لنک dofollow ہے یا نہیں</em><br>اگر قدر <code>true</code> ہو تو لنک میں <code>rel=\"nofollow\"</code> خصوصیت نہیں ہے"
    },
    "page_from_scheme": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>ریفرنگ صفحہ کا url اسکیم</em>"
    },
    "page_to_scheme": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>حوالہ شدہ صفحہ کا url اسکیم</em>"
    },
    "direction": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>لنک کی سمت</em><br>ممکنہ قدریں: <code>internal</code>, <code>external</code>"
    },
    "is_broken": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>لنک ٹوٹا ہوا ہے</em><br>بتاتا ہے کہ لنک کسی ٹوٹے ہوئے صفحہ یا وسیلہ کی طرف جا رہا ہے یا نہیں"
    },
    "is_link_relation_conflict": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>بتاتا ہے کہ لنک کا کسی دوسرے لنک سے تضاد ہو سکتا ہے</em><br>اگر <code>true</code> ہو تو <code>link_to</code> کی طرف اشارہ کرنے والے کم از کم ایک لنک میں <code>rel=\"nofollow\"</code> خصوصیت ہے <strong>اور</strong> کم از کم ایک dofollow ہے"
    },
    "page_to_status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>حوالہ شدہ صفحہ کا اسٹیٹس کوڈ</em><br>اس صفحہ کا اسٹیٹس کوڈ جس کی طرف لنک اشارہ کر رہا ہے"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "anchor": "#/components/schemas/Response36Afe1097B20_OnPageAnchorLinkItem",
      "image": "#/components/schemas/Response36Afe1097B20_OnPageImageLinkItem",
      "canonical": "#/components/schemas/Response36Afe1097B20_OnPageCanonicalLinkItem",
      "alternate": "#/components/schemas/Response36Afe1097B20_OnPageAlternateLinkItem",
      "link": "#/components/schemas/Response36Afe1097B20_OnPageLinkLinkItem",
      "redirect": "#/components/schemas/Response36Afe1097B20_OnPageRedirectLinkItem",
      "meta": "#/components/schemas/Response36Afe1097B20_OnPageMetaLinkItem"
    }
  }
}
```

### 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": "ٹاسکس کی کل لاگت، USD",
      "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": "ٹاسک کا اسٹیٹس کوڈ\nDataForSEO کی جانب سے تیار کردہ، درج ذیل حد میں ہو سکتا ہے: 10000-60000\nرسپانس کوڈز کی مکمل فہرست یہاں مل سکتی ہے"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "ٹاسک کا معلوماتی پیغام\nعمومی معلوماتی پیغامات کی مکمل فہرست یہاں مل سکتی ہے"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "عمل درآمد کا وقت، سیکنڈز"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "ٹاسکس کی کل لاگت، USD",
      "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_OnPageLinksResponseInfo

`#/components/schemas/Response36Afe1097B20_OnPageLinksResponseInfo`

```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_OnPageLinksTaskInfo"
              }
            ]
          },
          "description": "<em>ٹاسکس کی صف</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_OnPageLinksResultInfo

`#/components/schemas/Response36Afe1097B20_OnPageLinksResultInfo`

```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>"
    },
    "search_after_token": {
      "type": [
        "string",
        "null"
      ]
    },
    "current_offset": {
      "type": [
        "integer",
        "null"
      ]
    },
    "total_items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>ڈیٹا بیس میں متعلقہ آئٹمز کی کل تعداد</em>",
      "format": "int64"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>نتائج کی صف میں آئٹمز کی تعداد</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseOnPageLinkItem"
          }
        ]
      },
      "description": "<em>آئٹمز کی صف</em>"
    }
  }
}
```

### Response36Afe1097B20_OnPageLinksTaskInfo

`#/components/schemas/Response36Afe1097B20_OnPageLinksTaskInfo`

```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_OnPageLinksResultInfo"
              }
            ]
          },
          "description": "<em>نتائج کی صف</em>"
        }
      }
    }
  ]
}
```
