# קישורים

**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` אחרי העמודים הראשונים. קורא סריקה שהסתיימה, ולכן זקוק ל-`id` מ-`post_dataforseo_on_page_submit` ומחזיר `crawl_progress` עם `crawl_status` של `max_crawl_pages`, `pages_in_queue` ו-`pages_crawled` — בדקו אותם לפני שמסתמכים על תוצאה קטנה, כי סריקה שעדיין רצה פשוט מדווחת על פחות. 💰 חינם מהספק: שאילתה על סריקה שהסתיימה אינה עולה דבר, רק הסריקה עצמה.

### מראה תמחור

- מדידה: עלות תגובה מדווחת.
- אומדן בקשת ייחוס: 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>מזהה המשימה</em><br><strong>שדה חובה</strong><br>אפשר לקבל את המזהה הזה בתגובה של נקודת הקצה Task POST<br>דוגמה:<br>\"07131248-1535-0216-1000-17384017ad04\""
          },
          "page_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>כתובת URL יחסית של עמוד</em><br>שדה אופציונלי<br>אם משתמשים בשדה הזה, תגובת ה-API תכיל רק קישורים מהעמוד שצוין<br>שימו לב שבשדה הזה אפשר לציין רק כתובות URL יחסיות"
          },
          "page_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>כתובת URL יחסית של עמוד</em><br>שדה אופציונלי<br>אם משתמשים בשדה הזה, תגובת ה-API תכיל רק קישורים פנימיים שמצביעים לעמוד שצוין<br>שימו לב שבשדה הזה אפשר לציין רק כתובות URL יחסיות"
          },
          "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>tag</code> שציינתם תמצאו באובייקט <code>data</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 — נדרש מפתח API תקף של Felo.

### 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": "סך עלות המשימות, בדולר ארה״ב",
      "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_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>"
        }
      }
    }
  ]
}
```
