Skip to content

videos
PRO

Type: 'videos'
Video metadata with duration and channel. Pass type: 'videos' to search:
const { results } = await microlink.search('node.js streams', { type: 'videos' })

results[0]
// {
//   title: 'Learn Node.js Streams in 25 minutes',
//   channel: 'Dipesh Malvia',
//   url: 'https://www.youtube.com/watch?v=EcznOgzOdxI',
//   description: 'In this video we will understand what are streams…',
//   date: '2024-08-22T12:00:00.000Z',
//   publisher: 'YouTube',
//   duration: 1502000,
//   duration_pretty: '25m'
// }
FieldTypeDescription
titlestringVideo title
urlstringVideo page URL
descriptionstringVideo description snippet
image{ url }?Video thumbnail
video{ url }?Direct video URL if available
durationnumber?Duration in milliseconds
duration_prettystring?Human-readable duration ('25m', '1h')
publisherstring?Platform name
channelstring?Channel or creator name
datestring?ISO 8601 publish date
See the videos guide for tutorial-discovery workflows.