microlink logo

Turn theguardian.com into structured data

Microlink SDK

Make your content attractive

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

large

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

module.exports = props => {

  const { status, data } = await mql('https://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding', {
    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://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding
{
  "title": "Katharine Viner: ‘The Guardian’s reader funding model is working. It’s inspiring’",
  "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",
  "lang": "en",
  "author": "Katharine Viner",
  "publisher": "the Guardian",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/theguardian.com!membership!2018!nov!12!katharine-viner-guardian-million-reader-funding/i.guim.co.uk!img!media!cb2d27886a1c1f2e04a91a7f6da2d772971bec3b!0_110_6000_3599!master!6000.jpg!auto",
    "type": "jpg",
    "size": 108466,
    "height": 630,
    "width": 1200,
    "size_pretty": "108 kB",
    "palette": [
      "#AC7E26",
      "#BCD4E4",
      "#123363",
      "#928868",
      "#B8C2C4",
      "#5D4A32"
    ],
    "background_color": "#BCD4E4",
    "color": "#6E5018",
    "alternative_color": "#123363"
  },
  "audio": null,
  "url": "https://www.theguardian.com/membership/2018/nov/12/katharine-viner-guardian-million-reader-funding",
  "iframe": null,
  "date": "2018-11-13T12:15:35.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/theguardian.com!membership!2018!nov!12!katharine-viner-guardian-million-reader-funding/logo.clearbit.com!theguardian.com.png",
    "type": "png",
    "size": 5486,
    "height": 128,
    "width": 128,
    "size_pretty": "5.49 kB",
    "palette": [
      "#34446F",
      "#A4B1D4",
      "#1C2C63",
      "#677092",
      "#B4B4C4",
      "#445079"
    ],
    "background_color": "#34446F",
    "color": "#BBC2D9",
    "alternative_color": "#C0C4D2"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/theguardian.png"
  }
}