We've sent a verification link by email
Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.
Started September 5th, 2023 · 3 replies · Latest reply by Headphaze 1 year, 3 months ago
In the text search documentation it says: "Therefore, searching for query=123 will find you sounds with id 1234, sounds that have 1234 in the description, in the tags, etc." (Source: https://freesound.org/docs/api/resources_apiv2.html#text-search)
This sounds like a simple query searches for inclusion of the term, not an exact match. However, trying this out with "insomnia" and "insomniac" I see a different set of non-overlapping search results (with everything else being the same in the two requests).
==========================================================================================
insomnia
curl -H "Authorization: Token " "https://freesound.org/apiv2/search/text/?query=insomnia&filter=duration%3A%5B1.0%20TO%2015.0%5D%20AND%20license%3A%22Creative%20Commons%200%22"
produces 1 result:
{"count":1,"previous":null,"next":null,"results":[{"id":386059,"name":"Insomnia Chimes.wav","tags":["Chimes","Atmosphere","Icy","Ambient","Soundscape","Chilling","Bells"],"license":"http://creativecommons.org/publicdomain/zero/1.0/","username":"bean jamin"}]}
==========================================================================================
insomniac
curl -H "Authorization: Token " "https://freesound.org/apiv2/search/text/?query=insomniac&filter=duration%3A%5B1.0%20TO%2015.0%5D%20AND%20license%3A%22Creative%20Commons%200%22"
produces 3 results:
{"count":3,"previous":null,"next":null,"results":[{"id":261322,"name":"Insomniac Drum Loop.wav","tags":["Bitcrush","Bitcrushed","Room-Drum-Kit","Rhythm","Drum-Kit","Hat","Kick","Full","Spread","Bass","Hip-Hop","Hi","Clap","Drums","Snare","Wide","Stereo","Drum","Drum-Loop","Hi-Hats","Rim-Shot","Hi-Hat","Reverb","Loop","Shot","Distortion","Rim","Distorted","Full-Drum-Loop","Trap"],"license":"http://creativecommons.org/publicdomain/zero/1.0/","username":"Stereo Surgeon"},{"id":261208,"name":"Insomniac Snyth Loop.wav","tags":["arp","simple","Rev","Synth","Test","EDM","electronic","arpeggiated","Loop","synth","Surgeon","electro","minimal","Man","Stereo","Reverse","pluck","dark","techno","Trap","mellow","plucky","Test-Man","Dance","arpeggio","Synth-Loop","Stereo-Surgeon","Hip-hop","Chill","loop"],"license":"http://creativecommons.org/publicdomain/zero/1.0/","username":"Stereo Surgeon"},{"id":261209,"name":"Insomniac Snyth Loop Rev.wav","tags":["arp","simple","Rev","Synth","Test","EDM","electronic","arpeggiated","Loop","synth","Surgeon","electro","minimal","Man","Stereo","Reverse","pluck","dark","techno","Trap","mellow","plucky","Test-Man","Dance","arpeggio","Synth-Loop","Stereo-Surgeon","Hip-hop","Chill","loop"],"license":"http://creativecommons.org/publicdomain/zero/1.0/","username":"Stereo Surgeon"}]}
==========================================================================================
This is slightly inconvenient. Is there any way we can make the search inclusive of the search term rather than an exact match?
I am not a programmer but maybe this forum post helps you how the search works these days
https://freesound.org/forum/production-techniques-music-gear-tips-and-tricks/44217/
The techteam is working very hard and maybe the had no time to work on the manuals???
Good luck
Hi cosonify
Please use the dedicated message group for API related stuff. You'll have more luck with getting your questions answered there...
https://groups.google.com/g/freesound-api
Cheers