Scrape URLs

Last Edit: Feb 02 2020

This endpoint allows you to retrieve open graph information from a URL which you can then use to add images and a description to activities. For example:


const preview = await client.og('http://www.imdb.com/title/tt0117500/');
                    

Returns the following:


{
   "url":"http://www.imdb.com/title/tt0117500/",
   "images":[
      {
         "image":"https://m.media-amazon.com/images/M/MV5BZDJjOTE0N2EtMmRlZS00NzU0LWE0ZWQtM2Q3MWMxNjcwZjBhXkEyXkFqcGdeQXVyNDk3NzU2MTQ@._V1_UY1200_CR90,0,630,1200_AL_.jpg"
      }
   ],
   "type":"video.movie",
   "title":"The Rock (1996)",
   "site_name":"IMDb",
   "description":"Directed by Michael Bay.  With Sean Connery, Nicolas Cage, Ed Harris, John Spencer. A mild-mannered chemist and an ex-con must lead the counterstrike when a rogue group of military men, led by a renegade general, threaten a nerve gas attack from Alcatraz against San Francisco."
}