microlink logo

Turn nytimes.com into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts nytimes.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.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html', {
    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.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html', {
    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.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html', {
    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.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html', {
    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.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html
{
  "title": "Ada Lovelace, Mathematician Who Wrote the First Computer Program",
  "description": "Lovelace thought of math and logic as creative and imaginative, and her writings about computing in the mid-1800s earned her recognition as the first computer programmer.",
  "lang": "en",
  "author": "Claire Cain Miller",
  "publisher": "nytimes.com",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/nytimes.com!interactive!2018!obituaries!overlooked-ada-lovelace.html/static01.nyt.com!images!2018!03!19!obituaries!19lovelace-obit!00overlooked-images-slide-FRJU-faceboo",
    "type": "jpg",
    "size": 151721,
    "height": 549,
    "width": 1050,
    "size_pretty": "152 kB",
    "palette": [
      "#CCAA83",
      "#E4D4AD",
      "#5D4426",
      "#847C7C",
      "#A9ACB4",
      "#403B3F"
    ],
    "background_color": "#E4D4AD",
    "color": "#694C2B",
    "alternative_color": "#5D4426"
  },
  "audio": null,
  "url": "https://www.nytimes.com/interactive/2018/obituaries/overlooked-ada-lovelace.html",
  "iframe": {
    "html": "<iframe src=\"https://www.nytimes.com/svc/oembed/html/?url=https%3A%2F%2Fwww.nytimes.com%2Finteractive%2F2018%2Fobituaries%2Foverlooked-ada-lovelace.html\" scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\" title=\"Ada Lovelace, Mathematician Who Wrote the First Computer Program\" style=\"border:none;max-width:500px;min-width:300px;min-height:550px;display:block;width:100%;\"></iframe>",
    "scripts": []
  },
  "date": "2020-01-11T10:43:28.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/nytimes.com!interactive!2018!obituaries!overlooked-ada-lovelace.html/logo.clearbit.com!nytimes.com.png",
    "type": "png",
    "size": 3110,
    "height": 128,
    "width": 128,
    "size_pretty": "3.11 kB",
    "palette": [
      "#7F7F7F",
      "#BCBCBC",
      "#424242",
      "#7C7C7C",
      "#BCBCBC",
      "#444444"
    ],
    "background_color": "#7F7F7F",
    "color": "#141414",
    "alternative_color": "#151515"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/nytimes.png"
  }
}