microlink logo

Turn nasa.gov into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts nasa.gov links into beautiful previews, engaging better your links.

large

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

module.exports = props => {

  const { status, data } = await mql('https://www.nasa.gov/feature/goddard/2018/update-on-the-hubble-space-telescope-safe-mode/', {
    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.nasa.gov/feature/goddard/2018/update-on-the-hubble-space-telescope-safe-mode/', {
    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.nasa.gov/feature/goddard/2018/update-on-the-hubble-space-telescope-safe-mode/', {
    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.nasa.gov/feature/goddard/2018/update-on-the-hubble-space-telescope-safe-mode/', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.nasa.gov/feature/goddard/2018/update-on-the-hubble-space-telescope-safe-mode/
{
  "title": "NASA’s Hubble Space Telescope Returns to Science Operations",
  "description": "NASA’s Hubble Space Telescope returned to normal operations late Friday, Oct. 26, and completed its first science observations on Saturday, Oct. 27 at 2:10 AM EDT.",
  "lang": "en",
  "author": null,
  "publisher": "NASA",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/nasa.gov!feature!goddard!2018!update-on-the-hubble-space-telescope-safe-mode/nasa.gov!sites!default!files!thumbnails!image!s125e012033_1.jpg.jpg",
    "type": "jpg",
    "size": 946928,
    "height": 1993,
    "width": 3000,
    "size_pretty": "947 kB",
    "palette": [
      "#4C84BC",
      "#D7BDA1",
      "#844C0C",
      "#907760",
      "#DCCABE",
      "#364857"
    ],
    "background_color": "#4C84BC",
    "color": "#231403",
    "alternative_color": "#FFFFFF"
  },
  "audio": null,
  "url": "https://www.nasa.gov/feature/goddard/2018/update-on-the-hubble-space-telescope-safe-mode/",
  "iframe": null,
  "date": "2020-01-08T12:45:55.000Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/nasa.gov!feature!goddard!2018!update-on-the-hubble-space-telescope-safe-mode/logo.clearbit.com!nasa.gov.png",
    "type": "png",
    "size": 9477,
    "height": 128,
    "width": 128,
    "size_pretty": "9.48 kB",
    "palette": [
      "#245CA4",
      "#EC848C",
      "#2B62AC",
      "#545894",
      "#CCACBC",
      "#644C84"
    ],
    "background_color": "#245CA4",
    "color": "#E0EAF7",
    "alternative_color": "#FBE6E8"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/nasa.png"
  }
}