Get the nid