Turn any producthunt.com link into structured data

Turn any producthunt.com link into structured data

Microlink SDK

Turn websites into rich media

Microlink SDK converts producthunt.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://www.producthunt.com/posts/macos-mojave'
  />
)

size=large (documentation)

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

export default () => (
  <Microlink
    size='large'
    url='https://www.producthunt.com/posts/macos-mojave'
  />
)

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://www.producthunt.com/posts/macos-mojave'
)

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

Microlink API (documentation)

$ microlink-api https://www.producthunt.com/posts/macos-mojave
{
  "lang": "en",
  "author": null,
  "title": "macOS Mojave",
  "publisher": "Product Hunt",
  "image": {
    "url": "https://microlink.io/card/product hunt/image.jpg",
    "width": 1024,
    "height": 512,
    "type": "jpg",
    "size": 80205,
    "size_pretty": "80.2 kB",
    "palette": [
      "#334054",
      "#A06C24",
      "#5E86B1",
      "#FAE4C2",
      "#D1AB9D",
      "#3AACC6"
    ],
    "background_color": "#334054",
    "color": "#57B8CE",
    "alternative_color": "#DEAD6A"
  },
  "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.",
  "date": "2019-06-18T12:25:11.000Z",
  "logo": {
    "url": "https://microlink.io/card/product hunt/logo.png",
    "width": 152,
    "height": 152,
    "type": "png",
    "size": 1307,
    "size_pretty": "1.31 kB",
    "palette": [
      "#DC542D",
      "#ECAC94",
      "#832E15",
      "#813417",
      "#832E15",
      "#712812"
    ],
    "background_color": "#DC542D",
    "color": "#2C1007",
    "alternative_color": "#2A1108"
  },
  "url": "https://www.producthunt.com/posts/macos-mojave",
  "video": null,
  "audio": null
}