Turn any youtube.com link into structured data

Turn any youtube.com link into structured data

Microlink SDK

Turn websites into rich media

Microlink SDK converts youtube.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.youtube.com/watch?v=9P6rdqiybaw' />
)

size=large (documentation)

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

export default () => (
  <Microlink size='large' url='https://www.youtube.com/watch?v=9P6rdqiybaw' />
)

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.youtube.com/watch?v=9P6rdqiybaw'
)

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

Microlink API (documentation)

$ microlink-api https://www.youtube.com/watch?v=9P6rdqiybaw
{
  "lang": "en",
  "author": "Kurzgesagt – In a Nutshell",
  "title": "Wormholes Explained – Breaking Spacetime",
  "publisher": "YouTube",
  "image": {
    "url": "https://microlink.io/card/youtube/image.jpg",
    "width": 1280,
    "height": 720,
    "type": "jpg",
    "size": 120116,
    "size_pretty": "120 kB",
    "palette": [
      "#C004F9",
      "#EEEEA7",
      "#25047C",
      "#2C0494",
      "#808018",
      "#740296"
    ],
    "background_color": "#EEEEA7",
    "color": "#AC04DF",
    "alternative_color": "#2C0494"
  },
  "description": "To support Kurzgesagt and learn more about Brilliant, go to https://www.brilliant.org/nutshell and sign up for free. The first 688 people that go to that link will get 20% off the annual Premium subscription. Are wormholes real or are they just magic disguised as physics and maths? And if they are …",
  "date": "2019-06-18T12:26:16.000Z",
  "logo": {
    "url": "https://microlink.io/card/youtube/logo.png",
    "width": 144,
    "height": 144,
    "type": "png",
    "size": 16275,
    "size_pretty": "16.3 kB",
    "palette": [
      "#FC0404",
      "#FC7474",
      "#970101",
      "#950303",
      "#970101",
      "#830101"
    ],
    "background_color": "#FC0404",
    "color": "#320000",
    "alternative_color": "#320101"
  },
  "url": "https://www.youtube.com/watch?v=9P6rdqiybaw",
  "video": {
    "url": "https://microlink.io/card/youtube/video.mp4",
    "width": 1280,
    "height": 720,
    "type": "mp4",
    "size": 54645707,
    "size_pretty": "54.6 MB",
    "duration": 552,
    "duration_pretty": "9m"
  },
  "audio": {
    "url": "https://r3---sn-t0a7ln7d.googlevideo.com/videoplayback?expire=1560882386&ei=cdgIXbjbL8zp8wS82JFQ&ip=34.229.41.111&id=o-AHWHwMyYmerRgT6RdYJtgvEGIIs4WTkfEWPd9tQbs4PU&itag=140&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-t0a7ln7d%2Csn-vgqs7ns7&ms=au%2Conr&mv=u&pl=19&mime=audio%2Fmp4&gir=yes&clen=8935315&dur=552.054&lmt=1556938431867349&mt=1560859872&fvip=3&keepalive=yes&c=WEB&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ALgxI2wwRAIgZLNctMSChVHWIFrppMzCxKOWAuSAePiNk-sUiit1WTwCIEH0w8z4yvqMkEYFV4D51hmB_sB551_tqV7Wf2CnkTWW&lsparams=mm%2Cmn%2Cms%2Cmv%2Cpl&lsig=AHylml4wRQIgCGTu8fTNl5T-sm7V040Y0eHSCuzU_yVkwdcd17LmrPwCIQDklDk1M7bMStTw7Ga0TmAUi-vDB6fZB0IUJXvVCPLrqQ%3D%3D&ratebypass=yes",
    "type": "aac",
    "size": 8935315,
    "size_pretty": "8.94 MB",
    "duration": 552.054422,
    "duration_pretty": "9m"
  }
}