Forums

    7 posts

  • avatar
    80 sounds
    4 posts
    Web API


    Is there a web API (preferably php) in existence? Nothing fancy, but I'm just wanting to integrate some of my freesound samples with my portfolio site so I can use the freesound backend for usage stats and comments etc.

    www.kimburgess.info
  • avatar
    121 sounds
    1543 posts


    Hi PhreaKsAccount,

    this is not possible right now but we're working on it ( check > http://www.freesound.org/blog )

    - bram

    Warning: if you break the rules, see my avatar. Freesound Admin, Moderator, Ex-Freesound-Coder & Benevolent Dictator For Life.
  • avatar
    80 sounds
    4 posts


    Bummer. Good to here one is being worked on though.

    Until that time would you guys be against me writing a script to extract info from my user search page. Basically it'll grab http://www.freesound.org/usersViewSingle.php?id=89025&start=0 and pull out all the info appearing under the the "samplelist" li's into an array, then grab the data from http://www.freesound.org/usersViewSingle.php?id=89025&start=15 etc and iterate until it doesn't return any results? Basically the only info I'm needing is the sample name, link, quick summary, and number of downloads. It'll be used to create a link list of my personal site that will refer to the individual sample pages. This should result in around 4 or 5 page requests (to get all my samples) to freesound for each request to my sound design page. I'm aware this is an extremely inefficient solution but I wouldn't exactly call that section of my site high traffic (approx 10 visitors a day). In the case I'm suddenly dugg for some unknown reason etc I'll change it to cache the results and have the backend update itself from freesound say once per day.

    www.kimburgess.info
  • avatar
    121 sounds
    1543 posts


    if you cache it on your side, no problem. That would be a pretty server-killing process if you would run it many times.

    - bram

    Warning: if you break the rules, see my avatar. Freesound Admin, Moderator, Ex-Freesound-Coder & Benevolent Dictator For Life.
  • avatar
    80 sounds
    4 posts


    Bram
    if you cache it on your side, no problem. That would be a pretty server-killing process if you would run it many times.

    - bram

    Ya, like I said it's far from an elegant solution. I'll set it up to do a daily grab and dump the details into my local db. Cheers.

    www.kimburgess.info
  • avatar
    0 sounds
    1 post


    I'd like to integrate freesound.org with LMMS (lmms.sourceforge.net). Would this be ok with the site admins? We would conform to any constraints you might want to put on the relationship, display a freesound ad banner, etc. It would be really nice to have an API though. What say you?

  • avatar
    121 sounds
    1543 posts


    superjoe30,

    keep an eye on the blog, when we have an API it will be announced there.

    - Bram

    Warning: if you break the rules, see my avatar. Freesound Admin, Moderator, Ex-Freesound-Coder & Benevolent Dictator For Life.

    7 posts