The link object represents a single link recommendation for a particular wiki article.

Example

{
  "context_after": " to distin",
  "context_before": "cially in ",
  "link_index": 0,
  "link_target": "Science fiction",
  "link_text": "science fiction",
  "match_index": 0,
  "score": 0.5104129910469055,
  "wikitext_offset": 13852
}

Schema

context_after

required string

Characters immediately succeeding the link text, may include space, punctuation, and partial words
context_before

required string

Characters immediately preceding the link text, may include space, punctuation, and partial words
link_index

required integer

0-based index of the link recommendation within all link recommendations, sorted by wikitext offset
link_target

required string

Article title that should be linked to
link_text

required string

Phrase to link in the article text
match_index

required integer

0-based index of the link anchor within the list of matches when searching for the phrase to link within simple wikitext (top-level wikitext that's not part of any kind of wikitext construct)
score

required number

Probability score that the link should be added
wikitext_offset

required integer

Character offset describing where the anchor begins