YouTube Playlist API no longer functioning? - api

According to YouTube's docs:
https://developers.google.com/youtube/2.0/developers_guide_protocol_playlists
I can go to the following URL to retrieve a list of videos in a youtube playlist:
https://gdata.youtube.com/feeds/api/playlists/8BCDD04DE8F771B2?v=2
Works well right? Well no... I've been unable to find a single playlist that actually works besides the one supplied by youtube. I have a playlist here: http://www.youtube.com/playlist?list=PLABD2A8CE079F70FA. It would be logical that if I simply take the ID of the playlist and plug it into the gdata URL, it should return valid data, correct? Nope... doesn't work:
https://gdata.youtube.com/feeds/api/playlists/PLABD2A8CE079F70FA
It appears that the API doesn't work with any playlist that starts with their new "PLA" format. What do I need to do, to get the youtube API working with the new playlist system?

Well I figured it out. The playlist API is designed with the OLD Youtube Playlist IDs in mind, the ones without the "PL" at the start. So if you want to retrieve information about the videos in a playlist, you need to drop the PL from the Playlist ID and then it will work fine...
Example:
https://gdata.youtube.com/feeds/api/playlists/ABD2A8CE079F70FA
VS:
https://gdata.youtube.com/feeds/api/playlists/PLABD2A8CE079F70FA

You can add query parameters to the url. With the max-results query you can fetch a maximum of 50 results. If you want more than 50 requests, you need to call this multiple times with start-index query.
https://gdata.youtube.com/feeds/api/playlists/PLABD2A8CE079F70FA?v=2&max-results=50 will give maximum of 50 results. Fetch the next 50 results by adding the query start-index=51&max-results=50. Currently this is the only way you can achieve it.

Check this your playlist,It works fine
http://gdata.youtube.com/feeds/api/users/Jaxelrod/playlists/DC725B3F130398B2?v=2

Related

Server query to YouTube API “is there any YouTube video containing this specific word?” - if so, what is the link, upload date etc

Do you think we could use the YouTube Data API to get to know which products have any YouTube review/video. Then paired with our system via, for instance, Video Name?
Your question isn't very clear. However, you want to try this.
https://developers.google.com/youtube/v3/docs/search/list#try-it
You can set type to snippet and q to the words you want to search for.

instagram api search hashtags isn't reliable - so can I do this?

I'm looking to somehow tell users to upload a picture and do something, either tag or # our company so we are notified in real time, i just need to fetch the url of the photo that was uploaded and tagged or # or ANYTHING.
the hashtag search doesn't seem to work correctly, i've tried multiple hashtags and they wont retrieve them in any type of real time or at all.
the real-time subscription only notifies me that there is a new photo tagged that i subscribed to, so i have api search for a list of new media with that tag, which goes back to point 1, its not accurate or reliable.
so do i have any options at all on instagram?
If not do I have any options on facebook? any real time keyword search to grab the url of the photo they uploaded with a unique tag.
Check out https://github.com/chapmanu/hummingbird, it might be what you're looking for.
My experience with the Instagram Real-Time API is, that it is rather reliable.
When you get a real-time ping and then call the endpoint for your hashtag, the results are ordered newest first.
You can then paginate until you hit the last known result.
Maybe this tutorial helps: http://www.mtrinitaria.com/mykhel/tutorial-instagram-real-time-photo-update-api-with-php/

What is the maximum results returned for YouTube Data API v3 call

Context
I am in the process of providing some consultancy on doing a HTTP GET using YouTube Data API V3; in order to develop a Windows based application to GET a list of results from Youtube, for say a specific CATEGORY, or a specific TAG.
We are open to using any programming language(I'm from a C++ background and am hoping You tube will support direct HTTP connections without using Google client SDK and so on) to connect to YouTube and (HTTP) GET data.(Once a month or so, so YouTube API quotas should not be problem).
The Issue
We are being told by some of my client's web developers that YouTube API v3 will only return a maximum of 500 records/results, for say a query that returns JUST the Total viewers, the Video's link, and basic meta data such as that.
S, say I wish to find 5,000 results for category "House music" or "basketball" - and I have the Developer Key etc are all set up, would that be possible?
If so, what GET fields would I need to populate(such as "max_results_per_page")?
Thank you.
The API won't provide more than ~500 search results for any arbitrary query. It's by design. Technically, it means that the nextPageToken field won't be returned once you hit ~500 results. No additional parameter can change that.
If you want more than ~500 results for a query, you have to split it into more specific sub-queries. I'd suggest using the publishedAfter and publishedBefore parameters to achieve that, but feel free to experiment with the other ones here.
This only holds for the search-Query. Other queries like "PlaylisItem:list" deliver more results. I have tested with 100.000 items to get the videos of a playlist.

Instagram: sort photos with a specific tag with most likes

I'm running a contest on the web where the image with the most likes wins. It's tiresom having to go through 900 images manually so what I want to do is, sort all images with the tag lets say #computer after the amount of likes, with the most liked pics on top. I have searched the net like crazy for some program or site that does this (ExtraGram, gramhoot, statigram, webstagram) but none offer to sort by amount of likes and it drives me INSANE! It's a really relevant request.
I've tried istafeed.js but it doesn't include all images, actually it leaves out the ones with the moest likes which defies the purpose.
There's nothing I know of in the Instagram API that sends back media sorted by likes in advance. I don't think there's a tool to do this either, but writing one is relatively simple IMO and I've done it before for a contest specifically.
The simplest thing to do is to do the following:
Use the Instagram API (via a library or pure REST) to query by tag. For instance, if you only care about the most recently tagged media or you want to process by date, you can use the [/tag/tag-name/media/recent][1] enpoint.
Page through each result page by processing the next_max_id/next_max_tag_id.
Collect the results locally into a database. You will receive the "like" count for each media item. You will have to update the data if you want to track the likes over time.
Sort the results using your database or if it's a small result set, you could skip #3 and just sort in memory.
If you need to refresh the results, you need to subscribe to the Tag via the API. You can give Instagram a URL to then push updates, and then you'll have to retrieve 1 or media items and update them in your database accordingly.
You will of course need to register your application with Instagram to get an API key if you want to do this. Then you can either send them your client_id or use OAuth.
The best way to achieve this is to pull the photos in and then sort them programmatically based on the likes numeric value. I've designed a plugin that does this automatically for you for anyone interested.
Instagram Journal

Picasa WEB API returns only 1000 of 2400 public albums?

I've tried querying the Picasa WEb Albums API for an account that for sure contains more than 2400 public albums, but only returns 1000 results.
I know I must use the parameters start-index and max-results in the query and cycle for every 1000 results, but this doesn't produce the desired list.
I've also found that the returned data contains a of only 1000 albums despite the fact that I KNOW I have 2400.
Any ideas, please help?
UPDATE: Found this related answer, which says maximum results by API cannot exceed 1000. If it is correct can you suggest a workaround?
How am I supposed to get a list of ALL my albums?
'startindex' and 'maxresults' listed below in connection to Youtube api should have analogs for the picasa/google+ (photos) aspect. Check the api details in order to get parm names so you can set them in your data calls.
youtube example
I am also running into this same issue. Except I am trying to list photos instead of albums. If you figured out a work around I would love to see it.