microlink logo

Turn apple.com into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts apple.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.apple.com/music/', {
    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.apple.com/music/', {
    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.apple.com/music/', {
    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.apple.com/music/', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.apple.com/music/
{
  "title": "Music",
  "description": "Stream 60 million songs, ad-free on Apple Music. Shop HomePod, AirPods, and headphones. And build your entertainment collection with iPod and iTunes.",
  "lang": "en",
  "author": null,
  "publisher": "Apple",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/apple.com!music/apple.com!v!music!l!images!meta!og__cqehjfdvsy2q_image.png!201912182004.png=",
    "type": "png",
    "size": 551014,
    "height": 630,
    "width": 1200,
    "size_pretty": "551 kB",
    "palette": [
      "#EDBB2C",
      "#F474AC",
      "#AB501B",
      "#A85C94",
      "#C0BBCD",
      "#3C4247"
    ],
    "background_color": "#EDBB2C",
    "color": "#7E3B14",
    "alternative_color": "#930C47"
  },
  "audio": null,
  "url": "https://www.apple.com/music/",
  "iframe": null,
  "date": "2020-01-11T10:41:57.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/apple.com!music/logo.clearbit.com!apple.com.png",
    "type": "png",
    "size": 2799,
    "height": 128,
    "width": 128,
    "size_pretty": "2.8 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#7C7C7C",
      "#BCBCBC",
      "#646464"
    ],
    "background_color": "#7F7F7F",
    "color": "#151515",
    "alternative_color": "#161616"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/apple.png"
  }
}