microlink logo

Turn wikipedia.org into structured data

Microlink SDK

Make your content attractive

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

large

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

module.exports = props => {

  const { status, data } = await mql('https://en.wikipedia.org/wiki/Bob_Dylan', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://en.wikipedia.org/wiki/Bob_Dylan', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://en.wikipedia.org/wiki/Bob_Dylan', {
    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://en.wikipedia.org/wiki/Bob_Dylan', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://en.wikipedia.org/wiki/Bob_Dylan
{
  "title": "Bob Dylan - Wikipedia",
  "description": "This article is about the musician. For his debut album, see Bob Dylan (album).",
  "lang": "en",
  "author": "Contributors to Wikimedia projects",
  "publisher": "Wikimedia Foundation, Inc.",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/en.wikipedia.org!wiki!Bob_Dylan/upload.wikimedia.org!wikipedia!commons!thumb!0!02!Bob_Dylan_-_Azkena_Rock_Festival_2010_2.jpg!1200px",
    "type": "jpg",
    "size": 268195,
    "height": 1600,
    "width": 1200,
    "size_pretty": "268 kB",
    "palette": [
      "#4C2C94",
      "#ECCC9C",
      "#571D0B",
      "#986161",
      "#CBB5AA",
      "#53312A"
    ],
    "background_color": "#ECCC9C",
    "color": "#4C2C94",
    "alternative_color": "#571D0B"
  },
  "audio": null,
  "url": "https://en.wikipedia.org/wiki/Bob_Dylan",
  "iframe": null,
  "date": "2020-01-10T07:19:52.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/en.wikipedia.org!wiki!Bob_Dylan/wikimedia.org!static!images!wmf-hor-googpub.png.png",
    "type": "png",
    "size": 4012,
    "height": 60,
    "width": 260,
    "size_pretty": "4.01 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#4C4C4C",
      "#4C4C4C",
      "#040404"
    ],
    "background_color": "#BCBCBC",
    "color": "#040404",
    "alternative_color": "#424242"
  },
  "video": {
    "url": "https://cdn.microlink.io/data/assets/en.wikipedia.org!wiki!Bob_Dylan/upload.wikimedia.org!wikipedia!commons!transcoded!4!4e!Sara_Danius_announces_the_Nobel_Prize_in_Lite",
    "type": "webm",
    "duration": 157.712,
    "size": 16671232,
    "height": 480,
    "width": 854,
    "duration_pretty": "3m",
    "size_pretty": "16.7 MB"
  },
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/wikipedia.png"
  }
}