VimeoDotNet SDK

This blog has been moved.


140 thoughts on “VimeoDotNet SDK

  1. Hi Saeed,

    This code is great! thanks for it! It is going to save a lot of time on the project I am developing.

    I am doing a web application project. I only need the authentication and upload process so I have just take that part, but I will keep your API because for sure I will use it on the future.

    Thanks for this great job!

  2. Hi,

    any idea why i get a “Length cannot be less than zero.” after calling vc.vimeo_videos_getInfo(“video-id”);

    i just want to get public video/channel/album information without using user authentication. i know the simple api is maybe the better solution here, but the simple api will not provide different thumbnails for a video i guess.

    btw, here is the stack trace:

    [ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length]
    System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +12681562
    Common.OAuthBase.GenerateTimeStamp() in C:\Users\Mike\Desktop\Libraries\vimeodotnet-66089\Vimeo\Common\OAuthBase.cs:397
    Common.VimeoAPI.BuildOAuthApiRequestUrl(String url, String token, String tokenSecret, SortedDictionary`2& parameters, String httpMethod) in C:\Users\Mike\Desktop\Libraries\vimeodotnet-66089\Vimeo\Common\VimeoApi.cs:84
    Vimeo.API.VimeoClient.GetRequestUrl(String baseUrl, String method, SortedDictionary`2 parameters, SortedDictionary`2& oauth_parameters, String httpMethod) in C:\Users\Mike\Desktop\Libraries\vimeodotnet-66089\VimeoAPI\API\VimeoClient.cs:239
    Vimeo.API.VimeoClient.ExecuteGetRequest(String method, SortedDictionary`2 parameters) in C:\Users\Mike\Desktop\Libraries\vimeodotnet-66089\VimeoAPI\API\VimeoClient.cs:244
    Vimeo.API.VimeoClient.vimeo_videos_comments_getList(String video_id, Nullable`1 page, Nullable`1 per_page) in C:\Users\Mike\Desktop\Libraries\vimeodotnet-66089\VimeoAPI\API\VimeoClient.cs:1479
    Website_Test.vimeo.send(Object sender, EventArgs e) in C:\Users\Mike\Documents\Visual Studio 2010\Projects\Test\Website_Test\vimeo.aspx.cs:31
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691



    1. Hi Mike,

      I tried to simulate your problem by calling vc.vimeo_videos_getInfo without authenticating. Here’s what I did:
      I created a new solution based on VimeoDotNet and modified the GlobalConstants.cs file with my Consumer Key and Secret; Made a new project (Target: .NET Framework 4.0) and added a reference to VimeoAPI. Inside this new project I wrote this:

      using Vimeo.API;
      private void button1_Click(object sender, EventArgs e)
      VimeoClient vc = new VimeoClient();
      var a = vc.vimeo_videos_getInfo("24352120");

      There was a bug in parsing the unauthenticated XML response (oops! πŸ™‚ ), but I don’t think it was the source of your problem. I fixed the bug (Here’s the update: and now this piece of code works fine.

      Download the update and try what I did step by step, see if it fixes your problems. If not, inform me with any more clues you find. πŸ˜‰

      1. Hi,

        is it possible to play videos from vimeo using these wrapper / Api. ?
        or only possible to view the informations about the uploaded videos ?

        thanks in advance

      2. Hi. To play the videos, you can use the Embed API which gives you a Vimeo player that you can put wherever you want. VimeoDotNet helps you use the Vimeo Advanced API and Vimeo Upload API methods.

  3. Hi Saeed,

    thanks for the fast feedback and modification, but as you already mentioned that was not the reason for my problem. But good news… Take a look at OAuthBase.cs (Line 396).

    timeStamp = timeStamp.Substring(0, timeStamp.IndexOf(“.”));

    The “.” is the separator here in english UI Culture, but not so in german (development on virtual german Windows 7 machine) πŸ™‚ in the german UI “,” is working, so for a test i changed it to “,” and everything is fine so far.

    The real (not test) app is set to english UI culture in web.config, so no need to change here, but to have multilingual support here a change or at least a hint would be fine πŸ™‚

    With everything works.


    1. Wow! I didn’t see that coming! πŸ™‚

      Actually I borrowed the oAuth portion of the code from another project in Vimeo’s examples page, and then implemented the Vimeo API on top of it. (That’s why there are three projects in the source code). So I had no idea something like this would happen! But I think I can modify this line to work on all regions. From what I’m seeing here, I think this code takes the integer part of the timeStamp (or something like this) which can be done in an easier way.


      Edit: FYI that line from Rob Green’s OAuth code should be changed to this:
      string timeStamp = ((Int64)ts.TotalSeconds).ToString();

  4. Hi Saeed,

    I tried your code several times but always failed. So, I want a simple example to upload video to vimeo with FileUpload control in .NET Frame 4.0, can you send me via


    1. Hi,
      Could you be more specific?
      Did you get a run time error or Vimeo error? Which line doesn’t work for you?

      // vc is an authenticated VimeoClient object with upload permission
      Ticket t = vc.vimeo_videos_upload_getTicket(null, null);
      vc.PostVideo(t,@ "c:\myvideo.wmv");

  5. Hi Saeed,

    I do it like this, when I print out the, It returns me the error:

    “System.NullReferenceException: Object reference not set to an instance of an object”

    Vimeo.API.VimeoClient vc = new Vimeo.API.VimeoClient();

    Vimeo.API.Ticket t = vc.vimeo_videos_upload_getTicket(null, null);


    Callback URL: Not set
    Upload Access: Requested – pending

    I think the “Upload Access” should not be ” pending” but “approved”, yes?

    I am confused.


    1. Exactly. Pending means the vimeo people didn’t give you the upload permission yet. So that’s a problem.
      And in your code I don’t see the part where you log into your account. Did you write that part? Or are you trying to get a ticket without logging in?

  6. Hi Saeed,

    I am not able to upload a file, as I told you I just take a part of your project because I already have some stuff. Can I told you my problem, hopefully you can help me.

    Basically I do the POST method with the file data, and seems that everything works but returns 0 value and on the vimeo account is not the video.

    some code:

    string baseUrl = ticket[“endpoint”].Value + “&chunk_id=” + chunk_id.ToString() + “&” + OAuthTokenKey + “=” + Token;
    // this give to me all parameters as your “oAuth.GenerateSignature” with also ticket id and chunk //
    query = oAuthWebRequest(Method.POST, baseUrl);

    NameValueCollection parameters = HttpUtility.ParseQueryString(query.Split(‘?’)[1]);
    parameters.Add(“file_data”, “”);

    string endpoint = ticket[“endpoint”].Value + “&chunk_id=” + chunk_id.ToString();
    HttpWebRequest req = System.Net.WebRequest.Create(endpoint) as HttpWebRequest;

    // from here is almost a copy-paste of your “PostVideo” method
    string boundary = String.Format(“———-{0}”, Guid.NewGuid());

    req.ContentType = String.Format(“multipart/form-data; boundary={0}”, boundary);
    req.Method = Method.POST.ToString();
    req.KeepAlive = true;
    req.Credentials = System.Net.CredentialCache.DefaultCredentials;

    StringBuilder header = new StringBuilder();

    foreach (string key in parameters)
    header.AppendFormat(“–{0}\r\n”, boundary);
    if (key.Equals(“file_data”))
    header.AppendFormat(“Content-Disposition: form-data; name=\”file_data\”; filename=\”{0}\”\r\n”,
    header.Append(“Content-Type: application/octet-stream\r\n\r\n”);
    header.AppendFormat(“Content-Disposition: form-data; name=\”” + key + “\”\r\n\r\n{0}\r\n”,

    // get the header as bytes
    byte[] headerBytes = Encoding.ASCII.GetBytes(header.ToString());

    // get the footer bytes
    byte[] footerBytes = Encoding.ASCII.GetBytes(String.Format(“\r\n–{0}–“, boundary));

    // get the complete set of bytes
    byte[] data = file_data

    // set the content length
    req.ContentLength = data.Length;

    // write the bytes to the request stream
    using (Stream s = req.GetRequestStream())
    s.Write(data, 0, data.Length);

    // get the response
    HttpWebResponse response = req.GetResponse() as HttpWebResponse;

    Stream responseStream = response.GetResponseStream();
    StreamReader responseReader = new StreamReader(responseStream);

    return responseReader.ReadToEnd();

    It is returning currently a 0 value but the response says an “ok”, do I miss something?

    the video I am trying to upload is UploadVideo(“c:\\test\\xml_test2.m4v”) just in case video format matters.

    hope you can help, many thanks!


    1. If you copied the code correctly, the upload should work. To be able to see the video on vimeo (and begin transcoding) you must call the complete method after finishing your upload.

      If you are not sure if the POST process is completed successfully, call the verify method.

      1. ok… I didn’t use the complete method :S

        Thanks! I am going to work on it and I will tel you πŸ˜‰

  7. Hi!

    I don’t understand very well how to login. Your code above says:
    string unauthorizedToken = vc.GetUnauthorizedRequestToken();

    but vc.GetUnauthorizedRequestToken() returns void.

    And also, I don’t know where to get the “verifier” value in

    I hope you can help me with this.
    Thank you very much for making your wrapper public!

      1. Thanks Saeed,

        I think my situation is different, because I’m working on a web site that will always use our own Vimeo account. Users will upload their videos to my server, and later, a process will upload them to Vimeo with a single Vimeo Account… So I don’t think I need that “verifier” string or any login process…

        I’ll keep trying to figure out.. Any help appreciated !

      2. This is the only way to connect to a vimeo account using the Advanced API.
        In your case, you can authorize once, store the oauth authorized token and use it to authorize next times.

  8. Hi there,

    I am working on a web project hopefully using your wrapper. I have gotten past the authentication, but I am a little stuck with the rest.
    We probably have a little different needs than others using your wrapper. My company has a collection of videos and this app will just be a way to select and display them. What I need is to return all the videos to the account, or choose a specific tag, but still limited just to our account, then display the thumbnails so they can click and select the video they want. No upload, just this simple. We already have the page designed so all I have to do is get the list of returned videos into a simple unordered list and CSS will take care of the rest. Problem is, I can’t really find an example using your wrapper for this. I have the app already logged in, is there any place you know with any examples for what I want? It looks to me that the getbytag method returns all videos with that tag no matter what the account, which is not what I want. But even if I was to use that, I really need to see an example of a call to the method.

    1. Hello there,

      Unfortunately you can either get all of the videos for an account (vimeo.videos.getAll) or search for a tag in vimeo (vimeo.videos.getByTag). Also whichever method you use, you are limited to getting 50 videos in each page (API Request). So if you want to get all of the videos for an account, you have to know the number of videos that user has (people.getInfo) and use vimeo.videos.getAll in a loop.

      Anyway, here’s how you can call vimeo.videos.getAll to get a list of my first 50 videos using VimeoDotNet:

      var vids = vc.vimeo_videos_getAll(true, 
         1 /*page*/, 

      Here’s how you can find videos tagged as “cheese”:

      var vids = vc.vimeo_videos_getByTag(true, 
         1 /*page*/, 

      and you can for example print a list of their titles and thumbnail urls like this:

      foreach (var item in vids)
      1. thank you very much. I was able to get your examples to work very nicely. I hate to be a pest, but I do have another question. In the return info for the videos, and even if I do a videos_getinfo, I don’t seem to see a list of the tags associated with a video. Since, as you pointed out, we can’t limit a getbytag to only our account, our plan is to create our own list of tags by going through all the videos in our account, as we don’t believe we will have a huge amount of videos. The problem is I don’t see where the tags are returned for the video. Am I missing something?

      1. Thank you very much for the quick response and fix. It looks like my application is now getting the tags from the videos. You have just made my life much easier ;). Thank you for your professionalism in this matter. Hopefully I won’t have any more nagging questions πŸ™‚

    1. The vimeo_videos_upload_complete method returns the video id, so:

      //Get the video ID
      var video_id = vc.vimeo_videos_upload_complete(filename, ticket_id);
      //Set the description
      vc.vimeo_videos_setDescription(video_id, "Hello, World!");
      //Add tags
      vc.vimeo_videos_addTags("foo", video_id);
      vc.vimeo_videos_addTags("bar", video_id);

      Read the methods list for more info.

    1. Thanks Carl,
      The API Wrapper should work on WP7 with few (if any) tweaks.

      If you are asking about the client application (Vimeo for Windows), I’m planning on porting it to WinRT (Windows 8 Metro) first. I’m also thinking of porting Vimeo for Windows to WP7, but I’m not sure how I can play vimeo videos on WP7 properly. I have to work on it!

  9. GenerateAuthorizationUrl return only

    And this is not working.
    All I did was ad my consumer keys and secret like this

    var vc = new Vimeo.API.VimeoClient(APIKey, APISecret);
    string url = vc.GenerateAuthorizationUrl();

    Is this still up to date?

    Trying to debug it and the method GetUnauthorizedRequestToken build an url that returns and error:

    400 Bad Request – Missing required parameter – A required parameter was missing: oauth_callback.

    1. This issue has been fixed.
      I’m getting lots of similar questions during the past month or so. This code used to work with no problem, and I suspect a change in Vimeo API is causing this problem.
      Because I haven’t used Vimeo API for a long time, and I’m too busy with my other projects to modify this wrapper every time they change their API, I really don’t know
      what the problem is exactly.

      However I did a little debugging and found out that the source of the problem is in the ExecuteGetCommand(…) method in VimeoApi.cs, which is the method that executes
      API commands. If you or anyone else found the problem, tell me and I’ll fix the wrapper so that everyone can use it.


  10. Saeed,
    I have determined that the VimeoDotNet API does not properly complete the GetUnauthorizedRequestToken() call, possibly due to the fact that I do not have an oAuth_callback defined on my account. Actually, i tried it with and without a callback defined.

    Here is the error returned from the call:
    400 Bad Request – Missing required parameter – A required parameter was missing: oauth_callback.

    I do see in the documentation that you can send the string, oob, to use the callback defined on your application… but that looks to be the following call, where you are requesting an access key.

    Can you help?

    1. Jashmead,

      I too have the same problem with the unauthorized token. I seem to get a “Bad Request” on the “” uri.

      Has something changed on the Vimeo API? I am just starting to use the api (yours and Vimeo’s) as from today.


  11. OK: got it:

    * In the oAuthBase :: GenerateSignatureBase (the first overload) I added a new QueryParameter(OAuthCallbackKey, “oob”).

    * Then, in the VimeoAPI :: BuildOAuthApiRequestUrl (the second overload), I also added
    sb.AppendFormat(“&oauth_callback={0}&”, “oob”);
    to the stringbuilder, and
    parameters.Add(“oauth_callback”, “oob”);
    to the SortedDictionary.

    Hope this helps someone

    1. @Steven: I finally found the time to implement your solution and so far I think it works perfect πŸ™‚ they probably made oauth_callback a required parameter. I’ll perform a check-in with the fix soon.

      1. I got the latest just now. I get an error that generate signature takes 12 arguments. On

        string sig = oAuth.GenerateSignature(uri, consumerKey,
        token, tokenSecret, httpMethod, timeStamp, nonce,
        out normalizedUrl, out normalizedRequestParameters, addCallBack);

        in VimeoApi.cs …. Can you help?

      2. I’ve added another parameter (bool addCallBack) to this method, which you should send a true value to it. However, you shouldn’t even be calling this function directly, you should be using the Vimeo API classes and they will do the rest.

        Oh and there were some problems with the source control (some files weren’t uploaded before) so I’ve updated the source code again.

  12. I’m not understanding the process to get access for my applicaiton. Many users will be using my windows app to log into the same vimeo account. So do they each have to do the access process or can I just do it and store the data in the application? I don’t see code for that .. I have no clue how to proceed. Help would be appreciated.

      1. But you are saying I still have to run through the authorization steps? So what is the process.. do I check for the authorization data and if it’s non existant, mae the user authorize? That sounds confusing for the user. Do I understand the process? Then I can store it and it’ll be there at least for my use ever time of the application?

      2. Auth steps are covered in the article. First, check if you already have a functional token and token secret. If not, you will have to obtain an “unauthorized request token”, make the user open an “Authorization URL” and then try to get the access token.

        I think you can’t use multiple tokens for one user and application, but you might be able to auth once and share the token between different people.

  13. Hi Saeed

    Since today, I tried to upload a video of 132mb. On doing so, I get an exception on “req.GetResponse” saying the operation timed out. Setting the ReadWriteTimeOut and TimeOut on the request doesn’t work. Do you have any idea what could go wrong?


    1. That’s a lot of bytes, did you do a single part upload? if so, try uploading in chunks. It’s easy:

      var path = @”C:\myvideo.mp4″;
      var t = vc.vimeo_videos_upload_getTicket();
      int chunksCount = vc.GetChunksCount(path);

      for (int i = 0; i < chunksCount; i++)
      vc.PostVideo(t, i, path);

      //maybe do a verify_chunks here.


      In an unrelated note, A couple of days ago I tried uploading a video in chunks, and the transcoded video on vimeo was corrupt. If you have this problem too after the transcode, tell me. πŸ˜‰

  14. Hi Saeed

    For some reason, I cannot upload in chunks, because after a couple of consecutive calls, I get a “Operation timed out”. I tried several options (ConnectionLimits, Keepalive true and false, …). I now have a file of 625 chunks (each a megabyte I guess), and sometimes I get to 30 chunks uploaded, sometimes only 5.

    I found that, uploading in one whole chunk, and setting the ReadWriteTimeOut and the TimeOut on the request to int.MaxValue, the upload succeeds in one request. However, the concept of uploading in chunks seems more appealing.

    Could you enlighten me on how I can solve the issue with uploading in chunks?

  15. I also found that, in PostVideo method, a request is made with the ticket endpoint. However, there is a variable called url which is declared using the ticket’s endpoint.
    It seems to me that the webrequest should be made with the url variable, instead of the ticket.endpoint. When using the ticket’s endpoint, the “chunk_id” would be added multipled times (chunk_id=0&chunk_id=1&chunk_id=2, etc). Additionally, the ‘ticket.Endpoint += “&chunk_id=” chunkid.tostring()’ seems to be obsolete to me.

    Although this seems to be ‘a’ problem, it doesn’t seem to be ‘the’ problem to uploading in chunks (as mentioned above).

    Another thing: if I start Fiddler, before starting my appliciation, I do seem to manage to upload more chunks (however, not all of them). In my comment above, I stated that I have 625 chunks. Without fiddler, the max uploaded chunks was about 15. With fiddler however, the uploading stopped at 85 chunks. For some reason, the applications seems to run out of connections.

    1. About the β€˜ticket.Endpoint +=’ problem: It seems that you are using an old version of VimeoDotNet. Try downloading the latest version of the source code.

      I don’t really know what’s up with the timeouts, I don’t seem to get any of these errors. Can you email me your code and the debug output (using the latest version of VimeoDotNet)?

  16. So here’s what I did to ‘solve’ this issue (although for me it seems to be a workaround):

    After a few consecutive requests, I got an “Operation Timed out” exception. So I thought, maybe I could retry?
    I set the ReadWriteTimeOut and the TimeOut of the request to 5 seconds (5000ms). The PostVideo method should be able to be called multiple times (if necessary), but with a maximum amount of times. So, I created a method to allow an action to be called. If the action fails, the exception is caught and discarded. However, when a maximum amount of tries is reached, the exception is thrown.
    The PostVideo method is used within this method, and in my code, with a maximum of 5 retries.

    It seems that, for 100 chunks to be uploaded, I have 120 calls (so, in average, 10 chunks out of 100 must be called twice).

    So in short: if the call fails, call it again, and it’ll work πŸ™‚

    1. The solution is posting the chunks, call verify to find the missing chunks, post the missing chunks, verify again, post again, and keep doing this until all chunks are successfully uploaded.

  17. Hello. I encountered a problem.When video is uploaded complete i open and want play uploaded video, but video dont play, it write “there was a problem loading this video”.

  18. static VimeoDotNetHelper()
    client = new Vimeo.API.VimeoClient(app_key, app_secret);
    bool isLogin = client.Login(user_token, user_secret);


    return await TaskEx.Run(() =>
    string res = client.Upload(fileName);
    Vimeo.API.VimeoClient.vimeo_videos_upload_getQuotaResponse qresp = new VimeoClient.vimeo_videos_upload_getQuotaResponse();
    var quota = client.vimeo_videos_upload_getQuota();
    Ticket ticket = client.vimeo_videos_upload_getTicket(res);
    Chunks ch = client.vimeo_videos_upload_verifyChunks(;
    string complete = client.vimeo_videos_upload_complete(fileName,;
    return “” + res;
    catch (Exception ex)
    return “”;
    i have vimeo plus accaunt.

  19. If i upload file throuth the video is palaing normally, but if i upload with VimeoApi it’s not work…

    1. You are using the all-in-one method Upload(), so there’s no need to follow any of the upload steps. Remove all other lines, your code should be like this:

      string res = client.Upload(fileName);
      return β€œ” + res;

      or if the video file is too big to fit entirely in memory, your code can be like this:

      string res = client.UploadInChunks(fileName);
      return β€œ” + res;

      these methods handle all the upload steps and return the final video id on vimeo if the operation is successful.

      What your code does right now is:
      1. It uploads the file fine, and gets the video ID (using the all in one method)
      2. it gets another ticket and tries to Replace the video you have just uploaded
      3. It uploads nothing and tells vimeo to finish the process, hence ruining the video.

  20. string res = client.Upload(fileName);
    return β€œ” + res;

    Now i see next:
    great things are about to happen – your video will start converting shortly
    but conversion does not start.
    may by i need call
    string complete = client.vimeo_videos_upload_complete(fileName,;

  21. it happened. thank you.
    I have more questions:
    1) Can i Cancel uploading process?
    2) i need ProgersBar. Can I get a percentage of upload?

    1. Yes you can do both, but you have to use the regular uploading steps: 1. get a ticket 2. post video chunks 3. verify 4. complete

      read the upload tutorials in my blog (you can find them from the menu on top of my blog). also the VDNUploader sample in the project and Vimeo for Windows Advanced Uploader can be good references for learning the steps.

  22. I have new problem. i upload some file(1.76 Mb) and get two parts at a rate of 1 Mb and what is left(~0.7 Mb). In Vimeo upload only first chunk. in varifcation method i have mismatch between the two bytes
    if (item.size ==,, TicketForm.ChunkSize))
    so the chank again add to list and sey me “There are still (AllChank) chunks left.\nAre you sure you want to complete the upload?”

    my code:
    Ticket ticket = client.vimeo_videos_upload_getTicket();
    FileInfo fi = new FileInfo(fileName);
    long size = fi.Length;
    int resSize= (int)size / 20;
    int chankCount = client.GetChunksCount(fileName);
    Queue chankQueue = new Queue();
    for (int i = 0; i 0)
    int id = chankQueue.Dequeue();
    client.PostVideo(ticket, id, fileName);

    var vc = client.vimeo_videos_upload_verifyChunks(;
    if (vc != null)
    foreach (var item in vc.Items)
    if (item.size != client.GetChunkSize(size,
    client.PostVideo(ticket,, fileName);

    1. I’m not sure what your problem is, I have uploaded several videos with different methods during the past few weeks to check for problems and they all uploaded fine.

      in your code you are trying to dequeue an empty queue and your for loop is all wrong, it shouldn’t even compile! for (int i = 0; i 0)

      1. Im thory. it’s my copy-paste trable:
        return await TaskEx.Run(() =>
        Ticket ticket = client.vimeo_videos_upload_getTicket();
        int chankCount = client.GetChunksCount(fileName);
        Queue chankQueue = new Queue();
        for (int i = 0; i 0)
        int id = chankQueue.Dequeue();
        client.PostVideo(ticket, id, fileName);
        // var vcc = client.vimeo_videos_upload_verifyChunks(;
        var vc = client.vimeo_videos_upload_verifyChunks(;
        if (vc != null)
        foreach (var item in vc.Items)
        if (item.size – 2 != client.GetChunkSize(size,
        client.PostVideo(ticket,, fileName);//return two bytes greater
        return “” + client.vimeo_videos_upload_complete(fileName,;
        catch (Exception ex)

        return “”;

      1. in you app i click to Login-> Manual Enter Tocken Data and past my user_tocken and user secret, but app send me invalid tocken. i don want change my tokens. how i can do this?

  23. So, have you noticed any changes in the Vimeo API recently? I see that they are returning a DECIMAL for the duration in the .getInfo call. You (and I, as I use your stuff) have duration as an INT, using Int.Parse() to get the value. Well, guess what, that doesn’t work when the duration is 462.33

    Did you run into that issue?

  24. Hi, firstly, thank you for all of them.. I have a stupid problem.. I dont know how to get verifier code.. When I create my developer account in vimeo, I wrote as Callback URL. After I call string url = vc.GenerateAuthorizationUrl(); this function and I open link and I click “allow” in vimeo, after that it redirects .. I dont know how to get verifier code or which page I must change it. I think that I make a small mistake but I dont know where is it..

    thank you

    1. And my second question (I wrote access token manually) When I want to upload a video, It occours error getting ticket. Is it about update access? Because I have just requested

      Upload Access

      Requested – Pending decision.
      You should receive a decision within 3 business days of your request.

      If its not about that, where can be problem? Sorry I am really new on it

      thank you

    2. Hi, VimeoDotNet is designed for desktop applications that don’t care about the callback URL, if you want to use the callback URL you should modify the code a little bit.

      That being said, you have specified a wrong callback URL when you were registering the application. Go to the Vimeo Developers page, find your application, and change the callback URL.

      1. Leave it blank if you have a desktop app, or set it to your website’s authorization page if you have a web application, and get the verifier from the query string and get your access token using it.

  25. πŸ™‚ I was thinking that callback url is compulsory.. I removed it and It has been solved. Thak you very very much for everything ! πŸ™‚

  26. Hi Saeed, I want to search video in vimeo with you library. But I am not sure that is possible.. Could you show me how can I do it? I will type a keyword and I want library to sends me list of videos which matches my criteria.

    thank yoy

      1. thank you. I have already found it and I could search but my problem was getting all information of videos. I could get a few info for video.. I opened link which you give me and I realized that I missed something πŸ™‚ is full_response.. after I fixed my link and it works

        for folk: you cant run this link directly, you need to use an authentication. you must use oAuth ..

        so thank you Saeed again. I really glad to see your website..

        assalamun alaikum

  27. Hi Saeed,

    My source code is like;
    protected void Page_Load(object sender, EventArgs e)
    var vc = new Vimeo.API.VimeoClient(“3aa0af40ed92c1d4064b1xxxxxxxxxxxxxxxxxx”, “36a4154cce6eb38e7xxxxxxxxxxxxxxxxxxxx”, “delete”);
    string url = vc.GenerateAuthorizationUrl();
    if (vc.Login(“3544a1ff87xxxxxxxxxxxxxxxxxxxxxxx”, “e68c22c285be02349xxxxxxxxxxxxxxxxxxxxx”))
    //start application


    I opened url then click ‘allow’ and now i have a verifier but i can’t arrive this page.How can I arrive this page?

    Also I wrote for app url on edit page.Is this true? or should I write another url ?

    Thanks in advance

    1. Did you write for the callback URL? If so, that’s wrong. You should delete that or set it to your (web) application’s auth page.

      That picture is not a page, it’s a form in Vimeo for Windows. It’s not included in the VimeoDotNet library. I don’t understand what is your problem when you have the verifier code?

  28. HΔ° saeed

    I want to show my videos on my page.My source code is like;

    dlYanMenu.DataSource = vc.vimeo_videos_getAll(“12374770”, true, Vimeo.API.VimeoClient.VideosSortMethod.Default,1,3);


    But I show this error message;

    DataBinding: ‘Vimeo.API.Video’ does not contain a property with the name ‘id’

    How can I solve this problem

    Thanks in advance

    1. You can’t bind a videos object to your UI, you have to create your own data structure. Also I don’t think you would even want to bind an entire videos object because it contains a lot of information.

  29. Hi, first of all i like to thanks you for such a wonderful library. I used it and manage to upload video on vimeo. After that i am storing video information in my local database for mapping purpose. but after uploading when i call getinfo method to get the uploaded video information i am getting video duration 0 as vimeo is doing some post uploaded process. so can you guide me how to get duration after upload. I am using MVC/C#

    1. Thanks! Unfortunately that is the value the Vimeo API gives us and I have no control over it. Though, it is logical for the API to return 0 for the duration before encoding the video, since the video must be processed first in order to find out its duration.

      Anyway, there’s nothing I can do to fix this problem, but you can post it in Vimeo API forums ( to see if there’s a workaround.

      Of course since you have the file locally, you can easily use some Win32 APIs or DirectX or some other tool to get the duration of the file. Here’s an example:

  30. Hi Thanks for reply. I have another question. In your API you used setPrivacy for Advance API. but how to set privacy for domain specific? ex. allow video to be access by specific domain such as domain1. there is one method in vimeo, “videos.embed.setPrivacy” which can be used to set domain specific privacy, but i did not find any relevant method in your API. So does this mean that it is not possible from Advance API?

  31. Hi saeed

    I have two account(basic and plus) and i use this method;

    vc.vimeo_albums_getAll(userid, Vimeo.API.VimeoClient.AlbumsSortMethods.Alphabetical, 1, null)

    I can use this method on basic account but i can’t on plus account.I met a error ;

    Line 44: public static Album FromElement(XElement e)
    Line 45: {
    Line 46: return new Album
    Line 47: {
    Line 48: id = e.Attribute(“id”).Value,

    I can’t understand.What is the difference between plus and basic account.

    Thanks in advance.

    1. I just have a basic account so I can’t test the code on plus or pro accounts. You can either get me a plus account if you want me to fix the problem, or you can look at the code and fix it yourself.

    2. @frhtngn: I came here looking for a solution to the same issue. Not finding one I debugged the code. For me, it was dying here because I hadn’t assigned a video to this particular album and it, thus, did not have a thumbnail so it was dying on the portion of code within the Album class where it builds the object on the fly…since thumbnail information was not present in the XML/JSON, it was attempting to reference properties of a null XElement object.

      Hope this helps (though it’s been quite a few months since your post). I don’t see a lot of need, for my implementation, to pay attention to albums that do not have videos in them so I will likely take it a few steps back into my code and not even try to get Album info for anything that does not (if possible).

  32. Hi Saeed,

    I am using free account of vimeo and trying to upload the video’s from my application over vimeo. But first, incoming user need to authenticate my application on vimeo and then i can get user detail or can do various things. Now, once user has been authenticated my application and I got the “oauth_verifier” for user, I don’t want to show that Authenticate VIMEO screen to user. I can store essential information in database which i required in database and use those to login the user automatically to VIMEO. But I am getting NULL object. Here’s I code, I am using :

    VimeoClient oVimeoClient = new VimeoClient(“CKey”, “CSecert”);

    Is there’s anything i skipped in code? Basically I don’t want the user to login again on vimeo and authenticate application once it done.

    Ravi Joshi

  33. saeed ,
    i used file upload to form post method via ajax.

    and also page load function code:

    Vimeo.API.VimeoClient vimeo = new Vimeo.API.VimeoClient(“xxxxxxxxxxxxxxxx”, “xxxxxxxxxxxxxx”, “write”);
    var url = vimeo.GenerateAuthorizationUrl();
    vimeo.Login(“xxxxxxxxxxxxxxx”, “xxxxxxxxxxxxxx”);



    1.Check the quota:
    2.Get a ticket:
    3.Send the video data:
    4.Verify the transfer:
    5.Complete the upload:
    these are steps. three steps completed. last 5 th step how to call……..?

    var endpoint= xxxx; //end point session value
    $.ajax_upload(button, {
    action: endpoint,
    onSubmit: function (file, ext) {
    //checking file extension

    onComplete: function (file, response) {

    i got upload file.mp4 from file variable oncomplete function.

    now how to call complete the method ? Please help?

    1. Have you read this guide?

      Basically if you don’t need to do any advanced stuff and your only goal is to upload the video file in one pass, there is the all-in-one method Upload that solves your problem:


      Otherwise, to answer your question, you “complete” the upload process you need to call this method:


  34. saeed,

    yes, i red your notes, you did vimeo upload, first save as file to server folder at D:\video.mp4 (method File.saveas(filepath) and then upload file from D:\video.mp4 to vimeo server.

    but my requirement , we need upload file directly to vimeo server. ( don’t save server path :D:\video.mp4)
    ( i did form post method html , this method upload succesfully, but i couldnot get video id)

    please help ?

  35. HI,

    I compiled the project. Registered an app on vimeo.

    Entered the token credentials. But I keep getting the message ‘invalid token’.

    Can anyone help”?

    Thanks in advance.

  36. Hi Saeed!

    Thank you for the great effort on this library. However I think something is broken. I am not able to get an accesstoken when authorizing a user. I use the same steps as you describe in the authorization process, but when getting the access token with the verification code, the token and tokensecret is null/empty.

    If you could take a quick look at this gist, I would be much obliged.

  37. Wow, quick response! I like! πŸ™‚

    I tried removing it, using the default value “delete”, but still no change.

    Are you sure the authorization part is still working? Maybe vimeo changed something?

    1. I’m not sure; could you tell me the values in each step of your program? (By step I mean before any VimeoDotNet function calls πŸ™‚ )

      Or try logging in with the example included with the project on CodePlex and see if it works; because I myself downloaded the uploader yesterday and used it and it worked πŸ™‚

      [Update: There *might* be something wrong with VimeoDotNet because I just saw another comment saying that they get invalid token, though I highly doubt it because I used the *same thing* yesterday! I’ll try to take a look at it myself later today.]

      1. Ok, cause I can’t figure out the problem :p

        I have included the logs from the debug window (your logging), as DetailedLogging.

        I also created a testapp on vimeo, and updated the gist with the real keys, tokens & secrets.

        When I try to get the accesstoken, I get the response Unauthorized.

        And when I try to use api.Login(“token”, “secret”), I get the repsonse “bad oAuth signature” or something.

        Thanks for the quick answers and the dedication πŸ™‚ Let me know if you need something πŸ™‚

      2. Now I am able to authenticate & log in! πŸ™‚ It seems that vimeo just took some time to register the app or something, since I got a unauthorized response from vimeo.

        Appreciate your time πŸ™‚

  38. Hi Saeed,

    Is there a way to get all items from My Portfolio page in Vimeo. I can get all videos uploaded by a user but did not find a function to get all portfolios. I am not sure if I should call them portfolios or channels or albums. I tried with vimeo_channels_getAll() and vimeo_albums_getAll() but not get anything. I would really appreciate any help.Thanks!

      1. Thanks for your reply. I found out that vimeo does not provide any api method to access the portfolios.

        I have another question with accessing the Thumbnail image of a particular Video. I am getting all the private videos using vimeo_videos_getAll method. There is a property named Thumbnails in a Video object which returns all the thumbnails instead of one thumbnail image associated with that particular video. Is there a way to find out which one of those images is the right thumbnail?

        Btw, thanks for providing this API. It’s a huge help to me.. It saved me a lot of time πŸ™‚

      2. You’re welcome πŸ™‚ I haven’t checked that out in a while. I’d suggest you play with that method in the Vimeo API Sandbox online, and do some trial and error to see which thumbnail is what.

  39. Hi Trying to create an album using the API – IS Video ID mandatory? What happens if iam a new user and have no video yet ?

  40. The type or namespace name ‘Ticket’ could not be found (are you missing a using directive or an assembly reference?)

  41. Hi, I’ve managed to have some success with VimeoDotNet. I can login and get a result from the vimeo_videos_getInfo and vimeo_videos_getAll calls, but the vimeo_videos_setTitle always returns false (fail). Is it a permissions issue? I use “edit” for the permission. Many thanks if anyone can spot anything…

    VimeoClient vc = new VimeoClient(“xxxx”, “xxxx”, “edit”);
    vc.Token = “xxxx”;
    vc.TokenSecret = “xxxx”;
    Boolean blnLogin = vc.Login();
    if (blnLogin)
    Video vidTest = vc.vimeo_videos_getInfo();

    String t = vidTest.title; — This fetches the video ok

    Boolean blnUpd = vc.vimeo_videos_setTitle(, “new title”);

    — blnUpd is false and the title is not updated.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s