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 4022556
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:29:24+00:00 2026-05-20T10:29:24+00:00

I have a function that gets a video item from youtube, below is the

  • 0

I have a function that gets a video item from youtube, below is the http webclient call that gets the xml:

        Dim request As String = String.Format("http://gdata.youtube.com/feeds/api/videos/{0}?restriction=us", id)
        Dim responseByte() As Byte = Me.WebClient.DownloadData(request)
        Dim responseXML As String = System.Text.UTF8Encoding.UTF8.GetString(responseByte)

The reason i decided to create the functionality to get videos this way rather than using Youtubes API framework was becuase it was to slow.

Now when i did it this way with my own functionality is was faster BUT a big BUT its still slow. If i display 24 videos on a page it takes all together when getting each video information from the xml a total ammount of arround 24 seconds. this is a real overhead, 24 seconds just to recieve 24 videos is too long and if i want to display more videos it will take longer.

So the question is is there a faster way to recieve video information from youtube?

All i want to extraxt is the:

Title
ImageUrl
Artist
Duration

  • 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-05-20T10:29:25+00:00Added an answer on May 20, 2026 at 10:29 am

    Add the fields querystring parameter, then followed by the elements you want to extract:

        Dim request2 As String = String.Format("http://gdata.youtube.com/feeds/api/videos/{0}?fields=title,media:group/yt:duration,media:group/media:thumbnail&restriction=us", id)
    

    Doing it this way halfed the result time, quicker but would like it to be much faster than this approach still. Does anyone know of a quicker methodd or is this the only answer?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a function that gets a given number of random records from
In my Java code I have function that gets file from the client in
I have a function that gets a value from the database and returns it.
I have a function that gets x(a value) and xs(a list) and removes all
I have a function that gets passed the document object like: toggle( $('username') );
I have a function that gets an array of DOM elements (based on tags)
I have a function that gets the selected text, the text is selected by
I have a function that gets a class passed to it as a parameter.
I have a function that gets a string passed to it. When testing the
I have a function that gets raw HTML to output to a table, but

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.