Turn any medium.com link into structured data

Turn any medium.com link into structured data

Microlink SDK

Turn websites into rich media

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

size=normal (documentation)

import React from 'react'
import Microlink from '@microlink/react'

export default () => (
  <Microlink
    size='normal'
    url='https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091'
  />
)

size=large (documentation)

import React from 'react'
import Microlink from '@microlink/react'

export default () => (
  <Microlink
    size='large'
    url='https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091'
  />
)

Microlink API

Turns websites into structured data

Microlink Query Language (MQL) is a programmatic way to getting content from any URL. Build APIs from websites.

Microlink Query Language (documentation)

const mql = require('@microlink/mql')
const { status, response, data } = await mql(
  'https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091'
)

console.log('status', status)
console.log('headers', response.headers)
console.log('data', data)

Microlink API (documentation)

$ microlink-api https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091
{
  "lang": "en",
  "author": "The Economist",
  "title": "Apple should shrink its finance arm before it goes bananas",
  "publisher": "Medium",
  "image": {
    "url": "https://microlink.io/card/medium/image.jpeg",
    "width": 1200,
    "height": 632,
    "type": "jpeg",
    "size": 166002,
    "size_pretty": "166 kB",
    "palette": [
      "#7088A7",
      "#384356",
      "#B0C3E1",
      "#D3C8B0",
      "#417187",
      "#14394F"
    ],
    "background_color": "#7088A7",
    "color": "#111E24",
    "alternative_color": "#0C212E"
  },
  "description": "The world’s biggest firm has a financial arm half the size of Goldman Sachs",
  "date": "2018-08-25T01:41:58.823Z",
  "logo": {
    "url": "https://microlink.io/card/medium/logo.png",
    "width": 375,
    "height": 74,
    "type": "png",
    "size": 8567,
    "size_pretty": "8.57 kB",
    "palette": [
      "#2C2C24",
      "#545444",
      "#545444",
      "#48483B",
      "#C3C3B6",
      "#8C8C72"
    ],
    "background_color": "#2C2C24",
    "color": "#C3C3B6",
    "alternative_color": "#96967E"
  },
  "url": "https://medium.com/@the_economist/apple-should-shrink-its-finance-arm-before-it-goes-bananas-f7fcdc754091",
  "video": null,
  "audio": null
}