Turn any lifehacker.com link into structured data

Turn any lifehacker.com link into structured data

Microlink SDK

Turn websites into rich media

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

size=normal (documentation)

import React from 'react'
import Microlink from '@microlink/react'

export default () => (
  <Microlink
    size='normal'
    url='https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564'
  />
)

size=large (documentation)

import React from 'react'
import Microlink from '@microlink/react'

export default () => (
  <Microlink
    size='large'
    url='https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564'
  />
)

Microlink API

Turns websites into structured data

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

Microlink Query Language (documentation)

const mql = require('@microlink/mql')
const { status, response, data } = await mql(
  'https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564'
)

console.log('status', status)
console.log('headers', response.headers)
console.log('data', data)

Microlink API (documentation)

$ microlink-api https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564
{
  "lang": "en",
  "author": "Josh Ocampo",
  "title": "How to Cancel Your Gym Membership",
  "publisher": "Lifehacker",
  "image": {
    "url": "https://microlink.io/card/lifehacker/image.jpg",
    "width": 1600,
    "height": 900,
    "type": "jpg",
    "size": 229416,
    "size_pretty": "229 kB",
    "palette": [
      "#7C7C7C",
      "#444444",
      "#C0C0C0",
      "#424242",
      "#BCBCBC",
      "#7F7F7F"
    ],
    "background_color": "#7C7C7C",
    "color": "#111111",
    "alternative_color": "#111111"
  },
  "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.",
  "date": "2019-02-14T22:00:02.000Z",
  "logo": {
    "url": "https://microlink.io/card/lifehacker/logo.png",
    "width": 600,
    "height": 60,
    "type": "png",
    "size": 8031,
    "size_pretty": "8.03 kB",
    "palette": [
      "#94B434",
      "#617622",
      "#617622",
      "#617622",
      "#54661D",
      "#CEE198"
    ],
    "background_color": "#94B434",
    "color": "#343F12",
    "alternative_color": "#343F12"
  },
  "url": "https://lifehacker.com/how-to-cancel-your-gym-membership-1832629564",
  "video": null,
  "audio": null
}