microlink logo

Turn flickr.com into structured data

Microlink SDK

Make your content attractive

Microlink SDK converts flickr.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.flickr.com/photos/[email protected]/46358385844/', {
    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.flickr.com/photos/[email protected]/46358385844/', {
    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.flickr.com/photos/[email protected]/46358385844/', {
    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.flickr.com/photos/[email protected]/46358385844/', {
    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.flickr.com/photos/[email protected]/46358385844/', {
    video: true,
    audio:true,
    palette: true,
    iframe: true,
    ...props
  })
}

Using Microlink CLI (docs)

$ microlink-api https://www.flickr.com/photos/[email protected]/46358385844/
{
  "title": "Egyptian Museum, Cario, Egypt",
  "description": "Egyptian Museum, Cario, Egypt",
  "lang": "en",
  "author": null,
  "publisher": "Flickr",
  "image": {
    "url": "https://cdn.microlink.io/data/assets/[email protected]!46358385844/live.staticflickr.com!7922!46358385844_288223a7e3_b.jpg.jpg",
    "type": "jpg",
    "size": 247635,
    "height": 1024,
    "width": 768,
    "size_pretty": "248 kB",
    "palette": [
      "#C4C045",
      "#89B2F4",
      "#999722",
      "#A37B57",
      "#94ADC2",
      "#564439"
    ],
    "background_color": "#C4C045",
    "color": "#464510",
    "alternative_color": "#0D3D8A"
  },
  "audio": null,
  "url": "https://www.flickr.com/photos/[email protected]/46358385844/",
  "iframe": {
    "html": "<a data-flickr-embed=\"true\" href=\"https://www.flickr.com/photos/[email protected]/46358385844/\" title=\"Egyptian Museum, Cario, Egypt by cattan2011, on Flickr\"><img src=\"https://live.staticflickr.com/7922/46358385844_288223a7e3_b.jpg\" width=\"768\" height=\"1024\" alt=\"Egyptian Museum, Cario, Egypt\"></a><script async src=\"https://embedr.flickr.com/assets/client-code.js\" charset=\"utf-8\"></script>",
    "scripts": [
      {
        "async": true,
        "src": "https://embedr.flickr.com/assets/client-code.js",
        "charset": "utf-8"
      }
    ]
  },
  "date": "2020-01-11T10:42:56.787Z",
  "logo": {
    "url": "https://cdn.microlink.io/data/assets/[email protected]!46358385844/logo.clearbit.com!flickr.com.png",
    "type": "png",
    "size": 2185,
    "height": 128,
    "width": 128,
    "size_pretty": "2.19 kB",
    "palette": [
      "#FC0986",
      "#FC8FC6",
      "#0C64D4",
      "#97014E",
      "#95034D",
      "#084490"
    ],
    "background_color": "#FC0986",
    "color": "#031A37",
    "alternative_color": "#3A001E"
  },
  "video": null,
  "screenshot": {
    "url": "https://cdn.microlink.io/screenshot/flickr.png"
  }
}