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
  • searchTextXML.php changed?

searchTextXML.php changed?

Subscribe

Started February 12th, 2009 · 2 replies · Latest reply by Bram 17 years, 1 month ago

P
piruleiro

0 sounds

1 post

17 years, 1 month ago
#1

hello,
until some days ago searchTextXML.php gave me back a list of sample elements with id attribute.
now I got only the number of results...
has it changed is anser?

Bram

122 sounds

1,573 posts

17 years, 1 month ago
#2

apologies... here I was thinking no-one used it anymore.

http://www.freesound.org/searchTextXML.php?search=broken&searchDescriptions=1&searchTags=1&searchFilenames=0&searchUsernames=0&order=1&start=5&limit=6

I.e. we added: "order", "start" (0, ...) and "limit" (nr of results returned)

the XML now also returns the number of total items:

<freesound nresults="339">
<sample id="33210"/>
<sample id="1411"/>
<sample id="42907"/>
<sample id="42906"/>
<sample id="527"/>
<sample id="42901"/>
</freesound>

Here are the orders:

const ORDER_DEFAULT = 0;
const ORDER_DOWNLOADS_DESC = 1;
const ORDER_DOWNLOADS_ASC = 2;
const ORDER_USERNAME_DESC = 3;
const ORDER_USERNAME_ASC = 4;
const ORDER_DATE_DESC = 5;
const ORDER_DATE_ASC = 6;
const ORDER_DURATION_DESC = 7;
const ORDER_DURATION_ASC = 8;
const ORDER_FILEFORMAT_DESC = 9;
const ORDER_FILEFORMAT_ASC = 10;

hope that helps,

Please let me know at support AT freesound DOT org what your email address is so we can add you to our to-be-created freesound-api mailing list.

- bram

Admin | Support
Post reply
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2026 Universitat Pompeu Fabra