Turn any apple.com link into structured data

Turn any apple.com link into structured data

Microlink SDK

Turn websites into rich media

Microlink SDK converts apple.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.apple.com/homepod/' />
)

size=large (documentation)

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

export default () => (
  <Microlink size='large' url='https://www.apple.com/homepod/' />
)

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.apple.com/homepod/')

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

Microlink API (documentation)

$ microlink-api https://www.apple.com/homepod/
{
  "lang": "en",
  "author": null,
  "title": "HomePod",
  "publisher": "Apple",
  "image": {
    "url": "https://microlink.io/card/apple/image.png",
    "width": 1200,
    "height": 630,
    "type": "png",
    "size": 315235,
    "size_pretty": "315 kB",
    "palette": [
      "#B08FC1",
      "#45B9E5",
      "#314168",
      "#AB51AA",
      "#6B1C62",
      "#D4AFF9"
    ],
    "background_color": "#B08FC1",
    "color": "#FFFFFF",
    "alternative_color": "#452144"
  },
  "description": "With amazing sound, spatial awareness, and the vast Apple Music library, HomePod takes the speaker to a whole new level.",
  "date": "2019-06-18T12:23:59.000Z",
  "logo": {
    "url": "https://microlink.io/card/apple/logo.ico",
    "width": 16,
    "height": 16,
    "type": "ico",
    "size": 22382,
    "size_pretty": "22.4 kB",
    "palette": [],
    "background_color": null,
    "color": null,
    "alternative_color": null
  },
  "url": "https://www.apple.com/homepod/",
  "video": null,
  "audio": null
}