microlink logo

Turn lifehacker.com into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts lifehacker.com links into beautiful previews, engaging better your links.

large

const mql = require('@microlink/mql')

module.exports = props => {

  const { status, data } = await mql('https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

const mql = require('@microlink/mql')

module.exports = props => {

  const { status, data } = await mql('https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

const mql = require('@microlink/mql')

module.exports = props => {

  const { status, data } = await mql('https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Features

Capabilities under the hood.

  • Background Refresh
    Stale revalidation, keeping things fresh and always up to date via ttl, reflecting any change on the target URL.
  • Unified Metadata
    Normalized from Open Graph, JSON+LD or HTML markup, such as author, images, colors, dates, lang, etc.
  • Caching Level
    Using Microlink CDN to deliver a different resource each time the query string changes.
  • Color Detection
    Get predominant and complementary colors per every image detected.
  • Contextual Data
    Get more from any data, expanding it to get extra useful information.
  • Media Detection
    Get the original source of any image, video or audio.
  • Native Embeds
    Using oEmbed to get the embedded representation of any URL.
  • Prerender Ready
    Cloud based solution with superior operational performance.
  • Cloud Browsing
    Fast, scalable, and reliable browser automation.
  • Background Refresh
    Stale revalidation, keeping things fresh and always up to date via ttl, reflecting any change on the target URL.
  • Unified Metadata
    Normalized from Open Graph, JSON+LD or HTML markup, such as author, images, colors, dates, lang, etc.
  • Caching Level
    Using Microlink CDN to deliver a different resource each time the query string changes.
  • Color Detection
    Get predominant and complementary colors per every image detected.
  • Contextual Data
    Get more from any data, expanding it to get extra useful information.
  • Media Detection
    Get the original source of any image, video or audio.
  • Native Embeds
    Using oEmbed to get the embedded representation of any URL.
  • Prerender Ready
    Cloud based solution with superior operational performance.
  • Cloud Browsing
    Fast, scalable, and reliable browser automation.

Microlink API

Build APIs from websites

Microlink Query Language (MQL) is a programmatic way to getting content from any URL.

Using MQL (docs)

const mql = require('@microlink/mql')

module.exports = props => {

  const { status, data } = await mql('https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564
{
  "title": "How to Cancel Your Gym Membership",
  "description": "We get it—sometimes, a gym just doesn’t work out. Maybe it’s too crowded or the ceilings tiles are falling and landing on your head. It happens! Unfortunately, canceling your gym membership is a lot like competing in the Hunger Games, of which there are no winners, only the wounded.",
  "lang": "en",
  "author": null,
  "publisher": "Lifehacker",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/lifehacker.com!how-to-cancel-your-gym-membership-1832629564/i.kinja-img.com!gawker-media!image!upload!c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_12",
    "type": "jpg",
    "size": 138919,
    "height": 675,
    "width": 1200,
    "size_pretty": "139 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#7C7C7C",
      "#B9B9B9",
      "#444444"
    ],
    "background_color": "#7F7F7F",
    "color": "#141414",
    "alternative_color": "#151515"
  },
  "audio": null,
  "url": "https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564",
  "iframe": null,
  "date": "2019-02-14T22:00:02.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/lifehacker.com!how-to-cancel-your-gym-membership-1832629564/x.kinja-static.com!assets!images!logos!newsletter!lifehacker-500px.png.png",
    "type": "png",
    "size": 14060,
    "height": 124,
    "width": 500,
    "size_pretty": "14.1 kB",
    "palette": [
      "#94B334",
      "#CFE198",
      "#84B424",
      "#627622",
      "#627622",
      "#5D7F19"
    ],
    "background_color": "#94B334",
    "color": "#2A390B",
    "alternative_color": "#2F400D"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/lifehacker.png"
  }
}