Turn any theguardian.com link into structured data

Turn any theguardian.com link into structured data

Microlink SDK

Turn websites into rich media

Microlink SDK converts theguardian.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='http://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding'
  />
)

size=large (documentation)

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

export default () => (
  <Microlink
    size='large'
    url='http://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding'
  />
)

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(
  'http://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding'
)

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

Microlink API (documentation)

$ microlink-api http://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding
{
  "lang": "en",
  "author": "Katharine Viner",
  "title": "Katharine Viner: ‘The Guardian’s reader funding model is working. It’s inspiring’",
  "publisher": "the Guardian",
  "image": {
    "url": "https://microlink.io/card/the guardian/image.jpg",
    "width": 1200,
    "height": 630,
    "type": "jpg",
    "size": 108480,
    "size_pretty": "108 kB",
    "palette": [
      "#123363",
      "#B8C2C4",
      "#928968",
      "#5D4A32",
      "#AD7F26",
      "#BCD4E4"
    ],
    "background_color": "#123363",
    "color": "#C9932C",
    "alternative_color": "#BCD4E4"
  },
  "description": "The Guardian’s editor-in-chief reflects on the state of media today and explains how the support of 1 million readers has enabled us to report and investigate the most important stories of our time",
  "date": "2018-11-13T12:15:35.000Z",
  "logo": {
    "url": "https://microlink.io/card/the guardian/logo.png",
    "width": 152,
    "height": 152,
    "type": "png",
    "size": 1621,
    "size_pretty": "1.62 kB",
    "palette": [
      "#042C64",
      "#5A7397",
      "#365484",
      "#ACBCCC",
      "#3C5C84",
      "#A0B6D8"
    ],
    "background_color": "#042C64",
    "color": "#8FA8D1",
    "alternative_color": "#90ABCC"
  },
  "url": "http://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding",
  "video": null,
  "audio": null
}