Get the parent menu of the node
If you want to get the parent of the menu link use getParent():

$menu_link_manager = \Drupal::service('plugin.manager.menu.link');
$links = $menu_link_manager-&gt;loadLinksByRoute('entity.node.canonical', array('node' =&gt; $node_id));
if ($link = reset($links)) {
  if ($parent = $link-&gt;getParent()) {
    $parent = $menu_link_manager-&gt;createInstance($parent);
    $parent_title = $parent-&gt;getTitle();
    $parent_url = $parent-&gt;getUrlObject()-&gt;toString();
  }
}