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 December 9th, 2020 · 2 replies · Latest reply by Headphaze 4 years ago
Hello,
I received my API key and I wish to download sounds via curl like in the API docs.
Let's pretend my API key is abCDEFghijkLMNOP123456789 and the sound I want has an id of 12345.
The docs are kind of confusing me because of the brackets, but according to the docs I need to do this:
curl -H "Authorization: Bearer {{abCDEFghijkLMNOP123456789}}" 'httpss://freesound.org/apiv2/sounds/12345/download/'
I think the second s in "httpss" is a typo so instead I'm running:
curl -H "Authorization: Bearer {{abCDEFghijkLMNOP123456789}}" 'httpss://freesound.org/apiv2/sounds/12345/download/'
(I think that I'm supposed to include the double curly brackets around my API key, but I'm not sure. I've tried it both ways).
Now when I run the above I get this from curl in response:
{"detail":"Authentication credentials were not provided."}
What am I doing wrong?
You should post this in the API google group...
https://groups.google.com/g/freesound-api
You'll have much better luck with responses there