microlink logo

Turn cnn.com into structured data

Microlink SDK

Make your content attractive

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

large

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

module.exports = props => {

  const { status, data } = await mql('https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html', {
    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://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html
{
  "title": "Rare black leopard captured in new images from Kenya",
  "description": "The elusive African black leopard is alive and well and living in Kenya -- and there are new pictures to prove it.",
  "lang": "en",
  "author": "Faith Karimi, CNN",
  "publisher": "CNN",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/cnn.com!2019!02!13!africa!kenya-rare-black-leopard-black-panther!index.html/cdn.cnn.com!cnnnext!dam!assets!190212232845-rare-black-leopard-super-tease.jpg.jpg",
    "type": "jpg",
    "size": 111600,
    "height": 619,
    "width": 1100,
    "size_pretty": "112 kB",
    "palette": [
      "#5176AD",
      "#A5B7D4",
      "#24344C",
      "#697EA8",
      "#9C938C",
      "#2C3C4E"
    ],
    "background_color": "#5176AD",
    "color": "#FEFEFF",
    "alternative_color": "#FFFFFF"
  },
  "audio": null,
  "url": "https://www.cnn.com/2019/02/13/africa/kenya-rare-black-leopard-black-panther/index.html",
  "iframe": null,
  "date": "2020-02-09T13:19:56.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/cnn.com!2019!02!13!africa!kenya-rare-black-leopard-black-panther!index.html/logo.clearbit.com!cnn.com.png",
    "type": "png",
    "size": 4470,
    "height": 128,
    "width": 128,
    "size_pretty": "4.47 kB",
    "palette": [
      "#CC1414",
      "#EC9E9F",
      "#CC141C",
      "#8B0D0D",
      "#7F191A",
      "#8B0D13"
    ],
    "background_color": "#CC1414",
    "color": "#FEF7F8",
    "alternative_color": "#030000"
  },
  "video": {
    "url": "https://cdn.microlink.io/data/assets/cnn.com!2019!02!13!africa!kenya-rare-black-leopard-black-panther!index.html/cnnios-f.akamaihd.net!i!cnn!big!world!2019!02!13!caption!rare-images-of-black-leopard-in-kenya-orig-",
    "type": "hls",
    "size": 1800,
    "height": 1080,
    "width": 1920,
    "size_pretty": "1.8 kB"
  },
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/cnn.png"
  }
}