Turn any cnn.com link into structured data

Turn any cnn.com link into structured data

Microlink SDK

Turn websites into rich media

Microlink SDK converts cnn.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://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html'
  />
)

size=large (documentation)

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

export default () => (
  <Microlink
    size='large'
    url='https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html'
  />
)

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://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html'
)

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

Microlink API (documentation)

$ microlink-api https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html
{
  "lang": "en",
  "author": "Faith Karimi, CNN",
  "title": "Rare black leopard captured in new images from Kenya",
  "publisher": "CNN",
  "image": {
    "url": "https://microlink.io/card/cnn/image.jpg",
    "width": 1100,
    "height": 619,
    "type": "jpg",
    "size": 111600,
    "size_pretty": "112 kB",
    "palette": [
      "#697EA8",
      "#2C3C4E",
      "#9C938C",
      "#24344C",
      "#A5B7D4",
      "#5176AD"
    ],
    "background_color": "#697EA8",
    "color": "#FFFFFF",
    "alternative_color": "#FFFFFF"
  },
  "description": "The elusive African black leopard is alive and well and living in Kenya -- and there are new pictures to prove it.",
  "date": "2019-06-18T12:24:15.000Z",
  "logo": {
    "url": "https://microlink.io/card/cnn/logo.png",
    "width": 76,
    "height": 76,
    "type": "png",
    "size": 5372,
    "size_pretty": "5.37 kB",
    "palette": [
      "#CC0404",
      "#CC0C0C",
      "#EC9999",
      "#900808",
      "#801818",
      "#960202"
    ],
    "background_color": "#CC0404",
    "color": "#FDE5E5",
    "alternative_color": "#040000"
  },
  "url": "https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html",
  "video": null,
  "audio": null
}