microlink logo

Turn twitch.tv into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts twitch.tv links into beautiful previews, engaging better your links.

iframe

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

module.exports = props => {

  const { status, data } = await mql('https://www.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

large

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

module.exports = props => {

  const { status, data } = await mql('https://www.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer', {
    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.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer', {
    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.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer', {
    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.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer
{
  "title": "Twitch",
  "description": "Twitch is the world’s leading video platform and community for gamers.",
  "lang": "en",
  "author": "shroud",
  "publisher": "Twitch",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/twitch.tv!shroud!clip!AuspiciousTubularBunnyFUNgineer/static-cdn.jtvnw.net!ttv-static-metadata!twitch_logo3.jpg.jpg",
    "type": "jpg",
    "size": 10264,
    "height": 200,
    "width": 262,
    "size_pretty": "10.3 kB",
    "palette": [
      "#9344FC",
      "#BC8CF7",
      "#390282",
      "#420296",
      "#45098F",
      "#420296"
    ],
    "background_color": "#9344FC",
    "color": "#030007",
    "alternative_color": "#030006"
  },
  "audio": null,
  "url": "https://www.twitch.tv/shroud/clip/AuspiciousTubularBunnyFUNgineer",
  "iframe": {
    "html": "<iframe src=\"https://clips.twitch.tv/embed?clip=AuspiciousTubularBunnyFUNgineer&autoplay=false\" width=\"620\" height=\"351\" frameborder=\"0\" scrolling=\"no\" allowfullscreen></iframe>",
    "scripts": []
  },
  "date": "2020-01-11T10:44:34.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/twitch.tv!shroud!clip!AuspiciousTubularBunnyFUNgineer/logo.clearbit.com!twitch.tv.png",
    "type": "png",
    "size": 2866,
    "height": 128,
    "width": 128,
    "size_pretty": "2.87 kB",
    "palette": [
      "#9444FC",
      "#B47CFC",
      "#1B1229",
      "#949494",
      "#C4C4C6",
      "#575757"
    ],
    "background_color": "#1B1229",
    "color": "#A059FC",
    "alternative_color": "#B47CFC"
  },
  "video": {
    "url": "https://cdn.microlink.io/data/assets/twitch.tv!shroud!clip!AuspiciousTubularBunnyFUNgineer/clips-media-assets2.twitch.tv!AT-cm!399451391.mp4.mp4",
    "type": "mp4",
    "duration": 59.968,
    "size": 60611235,
    "height": 1080,
    "width": 1920,
    "duration_pretty": "60s",
    "size_pretty": "60.6 MB"
  },
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/twitch.png"
  }
}