Turn any twitter.com link into structured data

Turn any twitter.com link into structured data

Microlink SDK

Turn websites into rich media

Microlink SDK converts twitter.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://twitter.com/futurism/status/882987478541533189'
  />
)

size=large (documentation)

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

export default () => (
  <Microlink
    size='large'
    url='https://twitter.com/futurism/status/882987478541533189'
  />
)

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://twitter.com/futurism/status/882987478541533189'
)

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

Microlink API (documentation)

$ microlink-api https://twitter.com/futurism/status/882987478541533189
{
  "lang": "en",
  "author": "futurism",
  "title": "Futurism on Twitter",
  "publisher": "Twitter",
  "image": {
    "url": "https://microlink.io/card/twitter/image.jpg",
    "width": 720,
    "height": 720,
    "type": "jpg",
    "size": 65648,
    "size_pretty": "65.6 kB",
    "palette": [
      "#4CACFC",
      "#BFC2C6",
      "#6E91B8",
      "#3D3D48",
      "#44ACFA",
      "#040D14"
    ],
    "background_color": "#BFC2C6",
    "color": "#044D85",
    "alternative_color": "#024C89"
  },
  "description": "“These tires can even climb stairs https://t.co/ymr4KK15oI”",
  "date": "2019-06-18T12:25:57.000Z",
  "logo": {
    "url": "https://microlink.io/card/twitter/logo.png",
    "width": 192,
    "height": 192,
    "type": "png",
    "size": 2113,
    "size_pretty": "2.11 kB",
    "palette": [
      "#1CA4F4",
      "#075E91",
      "#075E91",
      "#075E91",
      "#06517E",
      "#80CCF8"
    ],
    "background_color": "#1CA4F4",
    "color": "#04334E",
    "alternative_color": "#043451"
  },
  "url": "https://twitter.com/futurism/status/882987478541533189",
  "video": {
    "url": "https://microlink.io/card/twitter/video.mp4",
    "width": 720,
    "height": 720,
    "type": "mp4",
    "size": 13319166,
    "size_pretty": "13.3 MB",
    "duration": 83.25,
    "duration_pretty": "1m"
  },
  "audio": null
}