microlink logo

Turn mozilla.org into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts mozilla.org links into beautiful previews, engaging better your links.

large

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

module.exports = props => {

  const { status, data } = await mql('https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some', {
    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://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some
{
  "title": "Array.prototype.some()",
  "description": "The some() method tests whether at least one element in the array passes the test implemented by the provided function. It returns a Boolean value.",
  "lang": "en",
  "author": null,
  "publisher": "MDN Web Docs",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/developer.mozilla.org!en-US!docs!Web!JavaScript!Reference!Global_Objects!Array!some/developer.mozilla.org!static!img!opengraph-logo.72382e605ce3.png.png",
    "type": "png",
    "size": 3806,
    "height": 600,
    "width": 600,
    "size_pretty": "3.81 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#7C7C7C",
      "#BCBCBC",
      "#444444"
    ],
    "background_color": "#7F7F7F",
    "color": "#141414",
    "alternative_color": "#151515"
  },
  "audio": null,
  "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some",
  "iframe": null,
  "date": "2020-01-11T10:43:17.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/developer.mozilla.org!en-US!docs!Web!JavaScript!Reference!Global_Objects!Array!some/logo.clearbit.com!mozilla.org.png",
    "type": "png",
    "size": 2392,
    "height": 36,
    "width": 128,
    "size_pretty": "2.39 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#7C7C7C",
      "#D1D1D1",
      "#444444"
    ],
    "background_color": "#7F7F7F",
    "color": "#141414",
    "alternative_color": "#151515"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/mdn.png"
  }
}