Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

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.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

Freesound Forums

  • Freesound Forums
  • Bug Reports, Errors and Feature Requests
  • API python: duration filter request

API python: duration filter request

Subscribe

Started May 15th, 2021 · 3 replies · Latest reply by frederic.font 4 years, 10 months ago

I
Ignasinou

0 sounds

1 post

4 years, 10 months ago Edited: 4 years, 10 months ago
#1

Hi,

I have been using the Freesound API in python on a daily basis for a while (two weeks or so). But, two days ago, when requesting using the filtering by the duration the response received is an ERROR 400

freesound.FreesoundException:

I'm using the same code I used two weeks ago, and the request is working fine when requested without a filter, am I missing something, has anything changed lately?

This is the code that used to work:

results_pager = freesound_client.text_search(
query="relax",
fields="id,name,username,license,type,duration",
filter="duration:[0.0 TO 901.0]",
sort="duration_desc"
)

Regards,
Ignasi.

Migfus20

108 sounds

36 posts

4 years, 10 months ago
#2

Maybe it reached on limit.

Down for a while 😭
frederic.font

748 sounds

506 posts

4 years, 10 months ago
#3

Hi,

API-related questions should go to the API mailing list (see links here https://freesound.org/help/developers/).
We did change things but not in the way filters are interpreted. Make sure you're directing your requests to https://freesound.org/xxx (no www. and with https). If problem persists please write to the API mailing list and we can discuss there.

Cheers,

frederic
the freesound team
Post reply
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2026 Universitat Pompeu Fabra