Ryan Jewell
Ryan Jewell

Reputation: 1

Vimeo API - Cannot request from metadata connections URI

I am currently using axios with the Vimeo API.

I'm confused on why I can request https://api.vimeo.com/tags/customtag and get a response showing that there is indeed 35 videos.

"metadata": {
    "connections": {
        "videos": {
            "uri": "/tags/customtag/videos",
            "options": [
                "GET"
            ],
            "total": 35
        }
    }
},

But then if I make another request using the uri in the previous request like https://api.vimeo.com/tags/customtag/videos it is empty:

{
"total": 0,
"page": 1,
"per_page": 25,
"paging": {
    "next": null,
    "previous": null,
    "first": "/tags/customtag/videos?page=1",
    "last": "/tags/customtag/videos?page=1"
},
"data": []

}

These videos are indeed hidden off of Vimeo for competitor confidentiality purposes. Is there a way to access this data and keep it private?

Upvotes: 0

Views: 180

Answers (1)

aaronm67
aaronm67

Reputation: 289

EDITED:

This is a bug on the Response, the tags do not return private videos.

You can fetch your private videos using your videos endpoint,

https://developer.vimeo.com/api/reference/videos#get_videos

You can use the filter_tag query parameter, so for example

GET /me/videos?filter_tag=customtag should do what you're looking for.

Upvotes: 1

Related Questions