Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8089183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:19:40+00:00 2026-06-05T19:19:40+00:00

Recently i’m working with the dailymotion video API. However I not sure how to

  • 0

Recently i’m working with the dailymotion video API. However I not sure how to convert the returned data into my ASP.NET C# application.

GET

https://api.dailymotion.com/videos?search=fun&page=3

RESULT

{ "page": 1,
  "limit": 2,
  "total": 218248,
  "has_more": true,
  "list": [
      { "id": "xrk9mi",
        "title": "Priyanka & Shahid Kapoor get MOBBED in local train",
        "channel": "fun",
        "owner": "xlw7uu"
      },
     { "id": "xrk8fy",
        "title": "What's Up With Gaga?: Hit On Head, Perfume Bottle Leaked, Thai Fans Angry",
        "channel": "music",
        "owner": "xofeoz" }
     ]
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:19:41+00:00Added an answer on June 5, 2026 at 7:19 pm

    You would declare a class that matches up with what you’re getting back, let’s break it down into parts, starting with the outer class declaration:

    public class DailyMotionVideo {
      public int page {get;set;}
      public int limit {get;set;}
      public int total {get;set;}
      public bool has_more {get;set;}
      public XXX[] list {get;set;}
    }
    

    So I’ll do the same with XXX which needs to be a separate type so we can make an array of them:

    public class DailyMotionVideoInternalList {
      public string id {get;set;}
      public string title {get;set;}
      public string channel {get;set;}
      public string owner {get;set;}
    }
    

    Which requires us to go back and put that name into our first declaration:

    public class DailyMotionVideo {
      public int page {get;set;}
      public int limit {get;set;}
      public int total {get;set;}
      public bool has_more {get;set;}
      public DailyMotionVideoInternalList[] list {get;set;}
    }
    
    public class DailyMotionVideoInternalList {
      public string id {get;set;}
      public string title {get;set;}
      public string channel {get;set;}
      public string owner {get;set;}
    }
    

    And then you can convert the received object into this object via many methods, depending on which .NET version you’re using.

    Since you’ve already got it as a string, I’m going to assume the string is called “result”:

    DailyMotionVideo videoList = 
               new JavaScriptSerializer().Deserialize<DailyMotionVideo>(result);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently started with ASP.NET and MVC and have a few questions on working with
Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my
Recently I am working on selenium webdriver 2.0 (developing automation framework). As per requirement
Recently I've been thinking about how to transform a complex polygon into a non-complex
Recently I've noticed that on occasion I do not get a mayorship notification when
Recently I have been dealing with windows LogonUser API. The LogonUser api returns different
Recently i am making an app on facebook. So i have use facebook api.
Recently,I am handling a solution for WebPart internationalization,but I am not familiar with the
Recently I've been doing quite the project mostly working with the DateTime class. Now,..
Recently I took a test at brainbench and got not a bad result (something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.