How does the Soundcloud search api work? I searched some songs and I get some results but, I just searched the word DJ SNAKE and I get no result. Why is that?
The link I used:
https://api.soundcloud.com/tracks?client_id={myID}&q=DJ%20SNAKE
Then I searched the word dj snake from the SoundCloud search bar, I get a lot of result. Why?
(Posted as answer only for formatting)
This is interesting and looks like a bug to me.
First try it with linked_partitioning:
http://api.soundcloud.com/tracks.json?client_id={myID}&q=dj+snake&linked_partitioning=1
SoundCloud returns
{"collection":[],"next_href":"https://api.soundcloud.com/tracks.json?linked_partitioning=1&client_id={myID}&offset=10&q=dj%20snake&limit=10"}
If you follow the next_href you find a DJ Snake track result, with another next_href to the next one.
For some reason, first page is empty, and each linked partition has only 1 result. That's not right....
When I try another search, I get a full page of results, as expected.
http://api.soundcloud.com/tracks.json?client_id={myID}&q=black+crowes&linked_partitioning=1
Related
I want to import posts of a page between 07-12-2017 and 10-12-2017.
I have converted the dates to unix timestamps.
https://graph.facebook.com/v2.11/ekantipur?fields=posts.until(1512926148).limit(125)&access_token=MyAccessToken
works and so does
https://graph.facebook.com/v2.11/ekantipur?fields=posts.since(1512666948).limit(125)&access_token=MyAccessToken
But since and until together does not work. It only shows a single id.
Is there an another way to accomplish this task? If yes please reply. Thankyou in advance.
Update here is my updated Url with since and until. Its still not working.
123456/posts?since=07-12-2017&until=10-12-2017
Can you update the original post with your combined Since and Until?
I'm assuming that the SINCE is set to 7/17 and the UNTIL is 10/17, correct? It looks that way from the converted numbers, but I try not to assume it isn't something small like that :). No offense intended.
Looking at the graph API, I am using the page id of one I am the admin of and using since and until and it's coming back with posts between 07-12-2017 and 10-12-2017. I'm wondering if it has something to do with the limit in your urls. What if the limit statements are narrowing things down too much?
I'm just putting this into the graph API and getting the results I'm expecting: (no, my page id isn't 123456)
Granted, I'm not calling it in a url, Graph API is pretty forgiving.
It appears that calls to the Soundcloud API with a query containing a space will fail as API search appears to only search the Permalink field, example:
http://api.soundcloud.com/users.json?q=memory%20echo&consumer_key=CONSUMERKEY&limit=20&offset=0
This is not returning the artist Memory Echo at all. If I just search for the word "memory" then I can find it after paging through 8 pages of 20 users.
How can I get results that include an artists name with a space in it as part of the larger set of search results that should be associated with the words "memory" and "echo"? Is it possible to tell the API to specifically search the Username field?
In answer to your question: Probably not.
You probably already know this, but if there is a way to do it, it isn't documented by SoundCloud. As much as it may suck, you probably are going to have to continue to crunch through search results yourself to find the correct username unless you can convince the folks at SoundCloud to add that feature onto their API.
You may be able to optimize your search by guessing the user's permalink (which appears to often be the username in lowercase with spaces removed) and falling back to a full search if the search with the permalink fails to find the user you are looking for.
Using this scheme, searching for "Memory Echo" would first call /users.json?q=memoryecho and then fall back to /users.json?q=Memory Echo if the first query failed to turn up the correct user.
Also, FYI, I tried the link provided by #bnz and also got "Memory Echo" as the first response. When I searched "memoryecho", username "Memory Echo" was the only result.
I have a Facebook app, and I'd like to allow my users to invite their Facebook friends to my app. The proper endpoint is /me/invitable_friends which is working well. But towards the bottom of that doc page, they recommend implementing a "search box" to filter the results, yet they don't offer any example of how to do this. I've searched around and haven't found anything.
It doesn't appear as though you can pass additional params for filtering the results. Obviously I can filter the results after the fact, but that's not scalable since the API only returns ~20 users at a time. That limit is modifiable (I believe), though it's of course not wise to bump it too high.
So how can I build a search box interface if I can't pass the search text to the endpoint? I must be missing something.
Thanks in advance.
PS - I'm using the JS SDK.
You should probably file a bug.
Based on the documentation the default size is 1000 records (average Facebook friend list size is 300-400)
If you don't see the next parameter at the end of the result under paging then there are no more results.
I have a website slateone.com, When I search slateone.com on google it gives me a search result with a group of links together as a single search. Whereas when I search for slateone it gives me the same links separately without any grouping.
I tried testing the same kind of search for popular websites like facebook and google shows same group search result for both facebook.com and facebook.
Please guide me on this issue.
Thanks in Advance!!
-Vinay
You are actually referring to sitelinks, they are completely automated and not editable.
Now your website first of all needs to have the title attribute in the tags defined, this will surely help the algorithm of Google to find them, but note that does not mean that this is the solution.
The exact algorithm is known only to Google, the fix i mentioned will make the links more readable for the bots, this will surely help.
The official information can be found here: https://support.google.com/webmasters/answer/47334?hl=en
Hi and thanks in advance.
I am currently working with the Facebook API, and I want to incorporate the search feature in my system, but the only problem is that I would like to do a search with one or more keywords for one or more type of object.
In other words not only search for posts but also, I would like to be able to search for posts, users and probably even events.
I have tried to put the parameter type like following type='post,user' but it doesn't return anything, the result is empty.
Is there a way to do it? The Facebook API manual doesn't say much about the search.