microlink logo

Turn medium.com into structured data

Microlink SDK

Make your content attractive

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

large

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

module.exports = props => {

  const { status, data } = await mql('https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091', {
    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://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091
{
  "title": "Apple should shrink its finance arm before it goes bananas",
  "description": "It is fashionable to say that tech firms will conquer the financial services industry. Yet in the case of Apple, it seems that the opposite is happening and finance is taking over tech by stealth…",
  "lang": "en",
  "author": "The Economist",
  "publisher": "Medium",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/[email protected]_economist!apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091/miro.medium.com!focal!1200!632!51!69!1!TuqTCUENe1LiQvTxglT3uA.jpeg.jpg",
    "type": "jpg",
    "size": 166002,
    "height": 632,
    "width": 1200,
    "size_pretty": "166 kB",
    "palette": [
      "#417187",
      "#B0C3E1",
      "#14394F",
      "#7088A7",
      "#D3C8B0",
      "#384356"
    ],
    "background_color": "#417187",
    "color": "#F3F5F8",
    "alternative_color": "#F7F9FC"
  },
  "audio": null,
  "url": "https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091",
  "iframe": null,
  "date": "2018-08-25T01:41:58.823Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/[email protected]_economist!apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091/miro.medium.com!max!616!1!OMF3fSqH8t4xBJ9-6oZDZw.png.png",
    "type": "png",
    "size": 8567,
    "height": 74,
    "width": 375,
    "size_pretty": "8.57 kB",
    "palette": [
      "#8C8C72",
      "#C3C3B6",
      "#48483B",
      "#545444",
      "#545444",
      "#2C2C24"
    ],
    "background_color": "#C3C3B6",
    "color": "#2C2C24",
    "alternative_color": "#515142"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/medium.png"
  }
}