Check if a Youtube ID is valid with Nokogori and Rails : #video_controller.rb

     submitted_link = "https://www.googleapis.com/youtube/v3/videos?part=id&id="+@results[:id]+"&key="+ENV["KEY_YOUTUBE"]
     link_result = Nokogiri::HTML(open(submitted_link))

I get this result 

    {
     "kind": "youtube#videoListResponse",
     "etag": "\"uQc-MPTsstrHkQcRXL3IWLmeNsM/GWU-
    KIYwNWh_dAkOcA5xDaFhS48\"",
     "pageInfo": {
       "totalResults": 1,
       "resultsPerPage": 1
     },
     "items": [
     {
       "kind": "youtube#video",
       "etag": "\"uQc-
      MPTsstrHkQcRXL3IWLmeNsM/wp71OkMYYohvwOjzLL_4NN8r7w0\"",
       "id": "m9h7qCdgPN4"
      }
     ]
    }

I want to isolate the pageInfo -> TotalResults in order to check if the link is valid (= 1)

Have you an idea ?

Thank you 