microlink logo

Turn ycombinator.com into structured data

Microlink SDK

Make your content attractive

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

large

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

module.exports = props => {

  const { status, data } = await mql('https://news.ycombinator.com/item?id=13713480', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

normal

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

module.exports = props => {

  const { status, data } = await mql('https://news.ycombinator.com/item?id=13713480', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

small

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

module.exports = props => {

  const { status, data } = await mql('https://news.ycombinator.com/item?id=13713480', {
    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://news.ycombinator.com/item?id=13713480', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://news.ycombinator.com/item?id=13713480
{
  "title": "Announcing the first SHA-1 collision | Hacker News",
  "description": "The visual description of the colliding files, at http://shattered.io/static/pdf_format.png, is not very helpful in understanding how they produced the PDFs, so I took apart the PDFs and worked it out.Basically, each PDF contains a single large (421,385-byte) JPG image, followed by a few PDF command…",
  "lang": "en",
  "author": null,
  "publisher": "ycombinator.com",
  "image": null,
  "audio": null,
  "url": "https://news.ycombinator.com/item?id=13713480",
  "iframe": null,
  "date": "2020-01-11T10:45:09.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/news.ycombinator.com!item!id=13713480/logo.clearbit.com!ycombinator.com.png",
    "type": "png",
    "size": 3909,
    "height": 128,
    "width": 128,
    "size_pretty": "3.91 kB",
    "palette": [
      "#F46424",
      "#F4B48C",
      "#7E2B06",
      "#913107",
      "#8B3D0D",
      "#913107"
    ],
    "background_color": "#F46424",
    "color": "#4E1A04",
    "alternative_color": "#482007"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/ycombinator.png"
  }
}