Mangools/API

Set favorite link

Prerequisites

The link_id is the _id of a link returned by /linkminer/links. Call that endpoint first for the relevant target URL; unknown link_id values are silently ignored and the endpoint returns null.

PATCH
/linkminer/favorite-links/{link_id}

Authorization

ApiKeyAuth
x-access-token<token>

Your Mangools API key

In: header

Path Parameters

link_id*integer

link ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body?unknown

Response Body

application/json

curl -X PATCH "https://api.mangools.com/v3/linkminer/favorite-links/0" \  -H "Content-Type: application/json" \  -d '{    "favorite": true  }'
{
  "url_type": "URL",
  "available_links": 804,
  "links": [
    {
      "source": "https://sourceexample.com",
      "target": "https://targetexample.com",
      "title": "Linux Systems Analyst",
      "url": "https://targetexample.com",
      "type": "TextLink",
      "anchor": "targetexample.com",
      "last_crawl": "2021-04-07",
      "first_seen": "2021-04-07",
      "last_seen": "2021-04-07",
      "source_tf": 14,
      "source_cf": 14,
      "target_tf": 14,
      "target_cf": 14,
      "redirect": "false",
      "frame": "false",
      "no_follow": "false",
      "image": "false",
      "alt": "false",
      "deleted": "false",
      "reason_lost": "null",
      "category": "null",
      "lang": "en",
      "internal_links": 11,
      "external_links": 35,
      "fb": "null",
      "ar": "null",
      "ls": 35,
      "_id": "c1030729bd419e238a1e50351361fa56",
      "domainId": "sourceexample.com"
    }
  ]
}