microlink logo

Turn vice.com into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts vice.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.vice.com/en_us/article/ywxjvg/steel-ball-control-dreams-dormio-mit-hypnagogia', {
    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.vice.com/en_us/article/ywxjvg/steel-ball-control-dreams-dormio-mit-hypnagogia', {
    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.vice.com/en_us/article/ywxjvg/steel-ball-control-dreams-dormio-mit-hypnagogia', {
    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.vice.com/en_us/article/ywxjvg/steel-ball-control-dreams-dormio-mit-hypnagogia', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.vice.com/en_us/article/ywxjvg/steel-ball-control-dreams-dormio-mit-hypnagogia
{
  "title": "MIT Researchers Have Developed a ‘System for Dream Control’",
  "description": "When is a sleeper actually asleep?",
  "lang": "en",
  "author": "Daniel Oberhaus",
  "publisher": "Vice",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/vice.com!en_us!article!ywxjvg!steel-ball-control-dreams-dormio-mit-hypnagogia/video-images.vice.com!articles!5ada59e9b1e922000633eb19!lede!1524491359677-2.jpeg!crop=1xw!1xh;cente",
    "type": "jpg",
    "size": 75057,
    "height": 675,
    "width": 1200,
    "size_pretty": "75.1 kB",
    "palette": [
      "#3C54F4",
      "#8AB8F4",
      "#0C2089",
      "#081990",
      "#0D448B",
      "#0C208C"
    ],
    "background_color": "#3C54F4",
    "color": "#000107",
    "alternative_color": "#000105"
  },
  "audio": null,
  "url": "https://www.vice.com/en_us/article/ywxjvg/steel-ball-control-dreams-dormio-mit-hypnagogia",
  "iframe": null,
  "date": "2018-04-23T13:30:00.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/vice.com!en_us!article!ywxjvg!steel-ball-control-dreams-dormio-mit-hypnagogia/logo.clearbit.com!vice.com.png",
    "type": "png",
    "size": 6880,
    "height": 128,
    "width": 128,
    "size_pretty": "6.88 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#7C7C7C",
      "#BCBCBC",
      "#484848"
    ],
    "background_color": "#7F7F7F",
    "color": "#151515",
    "alternative_color": "#161616"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/vice.png"
  }
}