Search code examples
jsonvimeo

Getting user error when trying a web request


I am making the following request trying to get the thumbnail images for a specific video.

https://api.vimeo.com/videos/447593888/pictures?access_token=XXXXXXXXXX

I generated the access token in my account however I get the following error.

"No user credentials were provided."

Any idea why this wouldn't work? I wish there was a simple send and return the Title, Duration, Thumbnail when I sent the ID value.


Solution

  • Access tokens should be passed in the request header, not as a query parameter (this is also insecure as a malicious actor could intercept the request url and get your access token, which is why only tokens with "public" scope can be provided this way): https://developer.vimeo.com/api/authentication#presenting-the-access-token

    I wish there was a simple send and return the Title, Duration, Thumbnail when I sent the ID value.

    Have you tried oEmbed? The oEmbed API doesn't require authentication, and can be used to get the metadata (name, description, thumbnails) for any embeddable video: https://developer.vimeo.com/api/oembed/videos