Could this be a networking issue at your end?
It's still a little slow for me, but well under 2 seconds:
$ time curl
"https://gdata.youtube.com/feeds/api/playlists/3128E15B8D159842?v=2&max-results=50&start-index=1" > /dev/null 2>&1
real 0m1.551s
user 0m0.040s
sys 0m0.020s
Tim Wintle
On Mon, 2012-06-04 at 09:27 -0700, Benito Estrada wrote:
> Hi,
>
>
> I am working in a educational project and need to retrieve YT
> playlist.
>
> I am using API calls like:
>
>
> https://gdata.youtube.com/feeds/api/playlists/3128E15B8D159842?v=2&max-results=50&start-index=1
>
> In general YT response is REAL slow. In order to isolate the possible
> problems I made a test PHP program that contains only 2 lines of code:
>
>
> $url =
> "https://gdata.youtube.com/feeds/api/playlists/3128E15B8D159842?v=2&max-results=50&start-index=1";
> $xml = simpleXML_load_file($url,"SimpleXMLElement",LIBXML_NOCDATA);
>
>
> In the average I get a response of 23 seconds.
>
>
> Same happens if I copy/paste this url in the browser address line.
>
>
> What is wrong?
>
>
> Thanks for your help,
>
>
> Benito Estrada
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "YouTube APIs Developer Forum" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/youtube-api-gdata/-/-net_wnCTaQJ.
> To post to this group, send email to
> youtube-api-gdata@googlegroups.com.
> To unsubscribe from this group, send email to youtube-api-gdata
> +unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/youtube-api-gdata?hl=en.
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment