GET /videos endpoint does not work for links
See original GitHub issueI’m trying to get the video metadata given a vimeo video URL, and found from this StackOverflow answer that I should use the https://api.vimeo.com/videos endpoint with the links query parameter.
When I try to fire this query via this library with:
const links = 'https://vimeo.com/35055590'
client.request({
method: 'GET',
path: '/videos',
query: {
query: undefined,
links: links,
sort: 'relevant',
per_page: 50,
page: 1,
fields: 'name,pictures.sizes,user.name,link'
}
}, (err, body, code, headers) => {
if (err) {
console.error(err)
}
})
I get an error reporting:
Error: {"error":"Something strange occurred. Please try again.","link":null,"developer_message":"The query param provided is not supported for the request.","error_code":2101}
at IncomingMessage.<anonymous> (/home/guru/workspace/videoshare-development/node_modules/vimeo/lib/vimeo.js:164:19)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
get_video_info YouTube endpoint suddenly returning 404 not ...
EDIT: I found this can work. I don't why. But it really works.
Read more >Troubleshoot Azure Private Endpoint connectivity problems
Step-by-step guidance to diagnose private endpoint connectivity.
Read more >YouTube Data API - Errors | Google Developers
This error indicates that the user has an unlinked Google Account, which means that the user has a Google Account but does not...
Read more >Publish Content - Pages - Meta for Developers - Facebook
Live Videos - If a Page post contains a video that has expired, such as a live broadcast, you can get some post...
Read more >Video and Audio APIs - Learn web development | MDN
Here is a <a href="rabbit320.mp4">link to the video</a> instead. </p> </video> ... If you don't specify this, you get no playback controls: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ah okay great. I’ll update my requests to remove
sortwhen trying to uselinks. Thanks a lot for looking into this!Hey @gurupras, I looked into this this morning and there isn’t a bug here. What’s going on is that we don’t allow sorting on batch requests to
/videos.Remove
sort: 'relevant',from your request and it’ll succeed.