microlink logo

Turn microlink.io into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts microlink.io links into beautiful previews, engaging better your links.

large

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

module.exports = props => {
  const { status, data } = await mql('https://microlink.io', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {
  const { status, data } = await mql('https://microlink.io', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {
  const { status, data } = await mql('https://microlink.io', {
    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://microlink.io', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://microlink.io
{
  "title": "Browser as API",
  "description": "Turns websites into data: Enter a URL, receive information. Make any URL embeddable. Capture any website as a snapshot. Generate PDF from any website. Automate web performance.",
  "lang": "en",
  "author": null,
  "publisher": "Microlink",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/microlink.io/cdn.microlink.io!www!home.png.png",
    "type": "png",
    "size": 97629,
    "height": 882,
    "width": 1686,
    "size_pretty": "97.6 kB",
    "palette": [
      "#FCBE3D",
      "#FCDC94",
      "#825802",
      "#6D58A7",
      "#B4A9D4",
      "#444444"
    ],
    "background_color": "#FCDC94",
    "color": "#7F5702",
    "alternative_color": "#825802"
  },
  "audio": null,
  "url": "https://microlink.io",
  "iframe": null,
  "date": "2020-05-13T09:40:03.217Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/microlink.io/cdn.microlink.io!logo!trim.png.png",
    "type": "png",
    "size": 5050,
    "height": 500,
    "width": 500,
    "size_pretty": "5.05 kB",
    "palette": [
      "#EC447C",
      "#F286AA",
      "#780C30",
      "#644CA4",
      "#8A0E37",
      "#8A0E37"
    ],
    "background_color": "#EC447C",
    "color": "#3D0618",
    "alternative_color": "#40061A"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/microlink.png"
  }
}