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

  • RT @AsomakumBrother: da se razumemo, izmedju "malčanskog berberina" i ovog profesora glume nema razlike...nikakave
    16 hours ago
  • @Ksenija76o A treba u nos??? Pa sto mi neko nije rekao vec sam 3 polomio
    4 weeks ago
  • @OlovniV A sto si je pratio uopste 🤣
    4 weeks ago