microlink logo

Turn 9gag.com into structured data

Microlink SDK

Make your content attractive

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

large

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

module.exports = props => {

  const { status, data } = await mql('https://9gag.com/gag/aMZ1WbW', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://9gag.com/gag/aMZ1WbW', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://9gag.com/gag/aMZ1WbW', {
    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://9gag.com/gag/aMZ1WbW', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://9gag.com/gag/aMZ1WbW
{
  "title": "Wind turbines powered by passing traffic.",
  "description": "Join the fun convo with 9GAG community",
  "lang": "en",
  "author": null,
  "publisher": "9GAG",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/9gag.com!gag!aMZ1WbW/images-cdn.9gag.com!photo!aMZ1WbW_700b.jpg.jpg",
    "type": "jpg",
    "size": 55211,
    "height": 640,
    "width": 640,
    "size_pretty": "55.2 kB",
    "palette": [
      "#E4C052",
      "#E6C26E",
      "#114775",
      "#917170",
      "#C2A9A2",
      "#374F65"
    ],
    "background_color": "#E4C052",
    "color": "#5C4510",
    "alternative_color": "#114775"
  },
  "audio": null,
  "url": "https://9gag.com/gag/aMZ1WbW",
  "iframe": null,
  "date": "2018-10-18T06:39:17.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/9gag.com!gag!aMZ1WbW/logo.clearbit.com!9gag.com.png",
    "type": "png",
    "size": 2180,
    "height": 128,
    "width": 128,
    "size_pretty": "2.18 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#848484",
      "#A4A4A4",
      "#3C3C3C"
    ],
    "background_color": "#BCBCBC",
    "color": "#3C3C3C",
    "alternative_color": "#424242"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/9gag.png"
  }
}