microlink logo

Turn producthunt.com into structured data

Microlink SDK

Make your content attractive

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

iframe

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

module.exports = props => {

  const { status, data } = await mql('https://www.producthunt.com/posts/macos-mojave', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

large

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

module.exports = props => {

  const { status, data } = await mql('https://www.producthunt.com/posts/macos-mojave', {
    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.producthunt.com/posts/macos-mojave', {
    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.producthunt.com/posts/macos-mojave', {
    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.producthunt.com/posts/macos-mojave', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.producthunt.com/posts/macos-mojave
{
  "title": "macOS Mojave - The next generation of software for Macs | Product Hunt",
  "description": "Stay better focused on your work in Dark Mode. Automatically organize files using Stacks. Take more kinds of screenshots with less effort. Try four handy new built-in apps, and discover great new ones in the redesigned Mac App Store. Now you can get more out of every click.",
  "lang": "en",
  "author": null,
  "publisher": "Product Hunt",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/producthunt.com!posts!macos-mojave/ph-files.imgix.net!871df586-9f3b-41ce-8335-e01993da117a!auto=format&fit=crop&h=512&w=1024.jpg",
    "type": "jpg",
    "size": 80205,
    "height": 512,
    "width": 1024,
    "size_pretty": "80.2 kB",
    "palette": [
      "#3AACC6",
      "#FAE4C2",
      "#A06C24",
      "#5E86B1",
      "#D1AB9D",
      "#334054"
    ],
    "background_color": "#FAE4C2",
    "color": "#236878",
    "alternative_color": "#8C5F20"
  },
  "audio": null,
  "url": "https://www.producthunt.com/posts/macos-mojave",
  "iframe": {
    "html": "<iframe style=\"border: none;\" src=\"https://cards.producthunt.com/cards/posts/128194?v=1\" width=\"500\" height=\"405\" frameborder=\"0\" scrolling=\"no\" allowfullscreen></iframe>",
    "scripts": []
  },
  "date": "2020-01-09T16:13:24.323Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/producthunt.com!posts!macos-mojave/logo.clearbit.com!producthunt.com.png",
    "type": "png",
    "size": 2733,
    "height": 128,
    "width": 128,
    "size_pretty": "2.73 kB",
    "palette": [
      "#DC542C",
      "#ECA494",
      "#712812",
      "#832E15",
      "#812A17",
      "#832E15"
    ],
    "background_color": "#DC542C",
    "color": "#2C1007",
    "alternative_color": "#2E0F08"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/producthunt.png"
  }
}