microlink logo

Turn gfycat.com into structured data

Microlink SDK

Make your content attractive

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

iframe

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

module.exports = props => {

  const { status, data } = await mql('https://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

large

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

module.exports = props => {

  const { status, data } = await mql('https://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif', {
    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://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif
{
  "title": "Backflip GIF | Gfycat",
  "description": "Watch and share Pubg GIFs on Gfycat",
  "lang": "en",
  "author": "Gfycat",
  "publisher": "Gfycat",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/thumbs.gfycat.com!TimelyHealthyArmadillo-size_restricted.gif/thumbs.gfycat.com!TimelyHealthyArmadillo-size_restricted.gif.gif",
    "type": "gif",
    "duration": 10.2,
    "size": 2629197,
    "height": 250,
    "width": 444,
    "duration_pretty": "10s",
    "size_pretty": "2.63 MB",
    "palette": [
      "#AC7044",
      "#B88C68",
      "#28576C",
      "#9C9061",
      "#ACA47E",
      "#2C4D59"
    ],
    "background_color": "#AC7044",
    "color": "#FFFFFF",
    "alternative_color": "#0A161B"
  },
  "audio": null,
  "url": "https://thumbs.gfycat.com/TimelyHealthyArmadillo-size_restricted.gif",
  "iframe": {
    "html": "<div style='position:relative;padding-bottom: calc(56.25% + 44px)'><iframe src='https://gfycat.com/ifr/TimelyHealthyArmadillo' frameborder='0' scrolling='no' width='100%' height='100%' style='position:absolute;top:0;left:0;' allowfullscreen></iframe></div>",
    "scripts": []
  },
  "date": "2017-11-20T16:03:20.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/thumbs.gfycat.com!TimelyHealthyArmadillo-size_restricted.gif/logo.clearbit.com!gfycat.com.png",
    "type": "png",
    "size": 6946,
    "height": 128,
    "width": 128,
    "size_pretty": "6.95 kB",
    "palette": [
      "#147BEC",
      "#8CBCF0",
      "#093F7A",
      "#0B498D",
      "#114A87",
      "#0B498D"
    ],
    "background_color": "#147BEC",
    "color": "#031223",
    "alternative_color": "#041322"
  },
  "video": {
    "url": "https://cdn.microlink.io/data/assets/thumbs.gfycat.com!TimelyHealthyArmadillo-size_restricted.gif/thumbs.gfycat.com!TimelyHealthyArmadillo-mobile.mp4.mp4",
    "type": "mp4",
    "duration": 10.067,
    "size": 3173657,
    "height": 360,
    "width": 640,
    "duration_pretty": "10s",
    "size_pretty": "3.17 MB"
  },
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/gfycat.png"
  }
}