Link Preview – Documentation


SIMPLE API REQUEST:

http://api.linkpreview.net/?q=https://www.google.com/

 

JSON RESPONSE:

{
“title”:”Google”,
“description”:”Search webpages, images, videos and more.”,
“image”:”https:\/\/www.google.com\/images\/logo.png”,
“url”:”https:\/\/www.google.com\/”
}

 

API REQUEST WITH A KEY:

http://api.linkpreview.net/?key=123456&q=https://www.google.com/

 

JAVASCRIPT SAMPLE CODE:

var target = ‘https://www.google.com’;
// cross-origin request
$.ajax({
url: “http://api.linkpreview.net”,
dataType: ‘jsonp’,
data: {q: target},
success: function (answer) {
console.log(answer);
}
});

 

Latest Tweets

  • Plasim se da bi vecina onih koji sada pljuju Srdjana Todorovica zbog raspalog pinka istog trenutka prihvatili posao… https://t.co/BlKZIyHoNM
    2 weeks ago
  • Jel neko prenosi jebenu Ligu Evrope?
    2 months ago
  • RT @nomen_est_omen7: HITNO POTREBNA KRV !!! Sveštenik Rajko Srdić je imao veliki moždani udar,u septičkom je stanju,dobio je koronu i na re…
    2 months ago