Get video title
Lightweight title-only lookup (1 quota unit).
import { Router } from 'express'import { client } from '../lib.js'const router = Router()router.get('/video/:id/title', async (req, res) => { const { id } = req.params const result = await client!.videoTitle(id) res.json(result)})export const routes = router{
"id": "string",
"title": "string"
}{
"error": {
"code": 0,
"message": "string",
"details": [
"string"
]
}
}