The SoundCloud API allows you to search. Coordinates (lat/lng) seem to be stored as tags in the tag_list property for tracks. It seems I can filter on matching tags.
Can I use the SoundCloud API to find matching tracks with a geospatial bounding box or a centre with a radius?
Or can I only match coordinates exactly?
If the former, how?
The SoundCloud blog posts talking about mapping audio links to maps that don't open. For example:
http://maps.soundcloudlabs.com/?lat=32.47269502206151&lon=13.359375&maxOffset=50&zoom=3
Furthermore, I'm unable to add geotags to my files on SoundCloud. Adding them as tags and saving the file fails silently: Upon reopening the file for editing, the geotags do not show up.
Third, SoundCloud API calls for tracks do not seem to include geotags.
Fourth, searching for a geotag using the SoundCloud API consistently returns no results.
Therefore, it is safe to assume that SoundCloud no longer supports geocoding on their audio files.
Related
I want to get search keywords from traffic source of video using Youtube Data Api.
I can already view 8-10 on the Dashboard, but most of the time, the video is in 1000 views and although I see 7-8, the api returns empty or only takes one. how can i solve this problem? I will be glad if you help.
I am planning to use the Spotify API to fetch some data, feeding track name and artist as search keywords. However, the track name and artist data I have some parsing errors, and I was wondering if there are any methods in Spotify API that auto-corrects the keywords.
For example, Google will fetch me documents about Radiohead even if I search for 'Radiohea','Radihead', and so. Also, the Last.fm API provides a method named 'track.getCorrection', which does jobs similar to those I explained above.
Here is the explanation of the method from the official Last.fm API website:
'Use the last.fm corrections data to check whether the supplied track has a correction to a canonical track.'
Does anyone know if such method exists in Spotify API?
No, there's no auto-correction engine. The closest Spotify gets to having a search engine is the search endpoint:
You can search, for instance, like this:
query = 'radio head'
and then
query_results = sp.search(q=query, type='playlist')
would return
...u'playlist'...{u'name': u'Air/Zero 7/Thievery Corp/Radio Head/Massive Attack/Morcheeba',...
but that requires that the playlist user spelled it wrong too. That is as far as a typo can get you, I'm afraid.
A workaround is fetching the artist using the last.fm API, use its auto-correction tool and then feed this result into Spotify API, either using artist, track or search endpoints.
I highly recommend you using more than one API for your app, as each one has its own limitations.
I'm trying to use this API to search for videos. I have a client key, secret, and everything I need.
I have scoured the API doc page up and down several times, and can't find any reference to video search.
The on-site search allows video search, and the API works fine when I search videos.
I use:
'https://connect.gettyimages.com/v3/search/images/editorial?phrase=' + query + '&fields=id%2Ctitle%2Ccaption%2Cpreview to search for images, and I've tried every combination of the word 'video' in that to search for videos, to no avail.
The images search works great, by the way.
The "swagger" interactive page (most annoying way to display an API doc, by the way) has a section for images, search/images, etc, but no video search or video (using video id).
the v3 API release notes states that they now have support for video search and download. Where?
Thanks to anyone that can lend a hand here, this is probably the most confusing API I've ever encountered.
Thank you!
sorry it's taken so long answer your question! At the time you posted, I don't think we had our video-specific search and download endpoints up. They are there now, though they're still in beta. Should be that way for a couple more weeks.
https://connect.gettyimages.com/swagger/ui/index.html#!/Search
Searching for "video" via the image search endpoints will not give you video files.
Thanks,
Matt
Getty Images API operations
I am currently creating a youtube downloader and I have the code to retrieve video thumbnails, however I want to find out a way to retrieve the video title and possibly the video size etc. If anyone can help please answer :D
I would concider you use version 3 of the Youtube API. I don't suggest parsing the html of a youtube page, you never know when they will change the format and you'll be downloading too much information. The API is much more stable.
If you look at the video section .
https://www.googleapis.com/youtube/v3/videos?id=BaW_jenozKc&part=snippet
(I can't test it on this computer)
By changing the part (or adding multiple part) you can get all the information you need about a video. Since the result is returned in json, you can use it with pretty much any programming language.
Also, read the Gettting Started. Youtube limits the number of query unless you register your application and get a developper key.
You need to read the .NET YouTube API documentation, specifically the YouTube API v2.0 – Retrieving Data for a Single Video section.
You will need to query for a single video by the video's ID and then the pieces of data in the ATOM feed that comes back to you are:
feed/entry/Title for the title of the video
feed/entry/media:group/yt:duration for the length of the video
There does not appear to be a value returned for the size of the video, however.
Try the youtube API:-
https://www.youtube.com/get_video_info?video_id=BaW_jenozKc
It should return something along the lines of:-
"&title=youtube-dl+test+video+%22%27%2F%5C%C3%A4%E2%86%AD%F0%9D%95%90".
Credits to youtube-dl:-
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py
Has anyone found a way to retrieve the activity feed on Steam for a specific user to post on a website similar to tweets? I'm adding an activity feed to my website, but really the only thing I'm most active in is Steam, so it will get stale pretty quickly without Steam in there. I've looked at the web API, but it doesn't specify if I can grab my full feed and post it or if I can just grab certain stats for specific games or not. I've tried to find an RSS feed for my activity but had no luck so far, that would definitely be the preferable format.
I've just looked at this and you can't grab the web feed directly from the site on RSS or JSON. The Web API is meant for developers of Steam applications so that they can get at the player information. For that, you need an API Key, which is provided by Steam. It is not a casual web interface like you might find on Google.
The nasty solution is to HTML scrape the page. I used Yahoo! Pipes to scrape the page (and automatically update) but ultimately decided that was entirely too dirty as it assumes that the Steam pages won't change.
A bit too late, but I'm also searching for this kind of RSS feed. I think I will end up creating a RSS bot to parse the AJAX response used to fetch the activity feed:
http://steamcommunity.com/id/[your username]/ajaxgetusernews
This URL doesn't work out of the box, I think we have to pass some cookies to get access to this page to make Steam think the bot is logged in as a normal user. It returns the HTML markup used to render the activity feed, and a URL to fetch the next batch of activities.
Be advised that this HTML markup is hard to parse because it is inconsistent.