[API] FFR API Beta

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Velocity
    Doing the wrong thing the right way since 2010.
    FFR Simfile Author
    FFR Administrator
    • Jul 2007
    • 1817

    #16
    Re: [API] FFR API Beta

    Should be fixed now.

    Comment

    • llyair
      Wiki Staff
      • Jun 2014
      • 307

      #17
      Re: [API] FFR API Beta

      Originally posted by Velocity
      Should be fixed now.
      Thank you!! Haha that was so fast! (: It's working perfectly for me now, which I am really excited about (: Thanks again! \(^-^)/

      Comment

      • Hakulyte
        the Haku
        • Jul 2005
        • 4539

        #18
        Re: [API] FFR API Beta

        What do you do with {"status":-1,"error_id":"invalid_key","error":"Invalid API Key"} after getting an API Key?

        Comment

        • llyair
          Wiki Staff
          • Jun 2014
          • 307

          #19
          Re: [API] FFR API Beta

          ><;; Hiii... c:

          Now I'm getting that some songs have "good" reported in "scores" while others don't, for both JSON and xml outputs.

          For example:

          "1602":{"info":{"level":1602,"genre":12,"name":"Piano Etude (Demon Fire) [Oni]","difficulty":86,"notes":2152,"length":"3:17"},"scores":{"score":0,"perfect":0,"good":0,"average":0,"miss":0,"boo":0,"combo":0,"played":0,"rank":162}}

          vs.

          "1596":{"info":{"level":1596,"genre":1,"name":"Eclipse","difficulty":43,"notes":441,"length":"0:46"},"scores":{"score":683550,"perfect":441,"average":0,"miss":0,"boo":0,"combo":441,"played":13,"timestamp":1419032993,"rank":1}}

          From looking at a few more (haven't checked them all), it seems like the majority of ones returning "good" are in Skill Token/Token/difficulty > 80, but not all Skill Token songs are returning "good." (St. Scarhand [Standard] doesn't have "good").

          Just another small thing I'm running into, hmm~ thanks for any help/advice in advance! (:
          Last edited by llyair; 01-31-2015, 10:29 PM.

          Comment

          • Velocity
            Doing the wrong thing the right way since 2010.
            FFR Simfile Author
            FFR Administrator
            • Jul 2007
            • 1817

            #20
            Re: [API] FFR API Beta

            I added support for retrieving a players last 10 played songs.

            Originally posted by llyair
            ><;; Hiii... c:

            Now I'm getting that some songs have "good" reported in "scores" while others don't, for both JSON and xml outputs.

            ....

            From looking at a few more (haven't checked them all), it seems like the majority of ones returning "good" are in Skill Token/Token/difficulty > 80, but not all Skill Token songs are returning "good." (St. Scarhand [Standard] doesn't have "good").

            Just another small thing I'm running into, hmm~ thanks for any help/advice in advance! (:
            I'm quite unsure of what is causing this to be honest, I'll have to investigate more, but I'm unsure currently.
            Last edited by Velocity; 02-6-2015, 05:32 PM.

            Comment

            • llyair
              Wiki Staff
              • Jun 2014
              • 307

              #21
              Re: [API] FFR API Beta

              Originally posted by Velocity
              I added support for retrieving a players last 10 played songs.

              I'm quite unsure of what is causing this to be honest, I'll have to investigate more, but I'm unsure currently.
              Getting the last 10 songs is really cool! I just noticed that it gives me the actual score obtained, not the PB (if they're different)! I couldn't find a way to get that info before Though practically I'm not sure what to do now that I have it... haha.

              And hmm I see, yeah it does seem strange that one field is just gone. Thank you for the update, though

              Comment

              • llyair
                Wiki Staff
                • Jun 2014
                • 307

                #22
                Re: [API] FFR API Beta

                So I'm not sure where to ask, but just wondering if it would be possible to change ranks (action=ranks) to return raw score instead of, or in addition to, combo score?

                The thing is that ranks (action=ranks) isn't really usable (at least for getting PA), since about 1/3 of the scores are missing the "good" property and also have a "combo" of 0. Previously, when some songs were only missing "good", it could be solved by using the combo scoring formula (found this after some digging around the site):
                score = combo*1000 + perfects*550 + goods*275 + averages*55 - misses*310 - boos*20. But now that two variables are missing, I don't know how to determine PA at all.

                For an API solution, not sure if it'd be simpler to include/replace the "score" property as raw instead of combo (since then the raw scoring formula could be used), or if it would be worth it to investigate why "good" is sometimes missing. Or maybe there are other ways to figure this out, or at least solve for PA. Just some random thoughts from someone outside, in case it helps XD

                But getting the PA through the API can be useful, for example in score recovery, when checking level ranks against the scores that noname manually gathered from the forums. (Unless the checking isn't actually useful, but that's what I was using trying to use the API for anyway).

                So yeah xD I just wanted to leave these thoughts/ideas in here!

                Comment

                • Zageron
                  Zageron E. Tazaterra
                  FFR Administrator
                  • Apr 2007
                  • 6592

                  #23
                  Re: [API] FFR API Beta

                  Please let me know if the API has ceased to work for anyone.

                  Comment

                  • Untimely Friction
                    D6 Challeneged
                    • Aug 2012
                    • 1267

                    #24
                    Re: [API] FFR API Beta

                    Originally posted by Zageron
                    Please let me know if the API has ceased to work for anyone.
                    Well the link doesn't work, I was like "Oh neat we have api?"

                    Comment

                    • Zageron
                      Zageron E. Tazaterra
                      FFR Administrator
                      • Apr 2007
                      • 6592

                      #25
                      Re: [API] FFR API Beta

                      Fixed, nevermind.

                      Comment

                      • rushyrulz
                        Digital Dancing!
                        FFR Simfile Author
                        FFR Music Producer
                        • Feb 2006
                        • 12985

                        #26
                        Re: [API] FFR API Beta

                        Originally posted by Zageron
                        Please let me know if the API has ceased to work for anyone.
                        lol the TCG would literally break.


                        Comment

                        • TC_Halogen
                          Rhythm game specialist.
                          FFR Simfile Author
                          FFR Music Producer
                          • Feb 2008
                          • 19376

                          #27
                          Re: [API] FFR API Beta

                          Bump:

                          Is it possible to extend the API to have song level information?

                          Comment

                          • Dinglesberry
                            longing
                            • Dec 2007
                            • 2679

                            #28
                            Re: [API] FFR API Beta

                            Can the api provide advanced stats on a player? E.g. Number of sdgs, AAA, fcs etc. Essentially, the stats here: http://www.flashflashrevolution.com/...e=Dinglesberry

                            I suppose you could just take a players levelstats and calculate it yourself, but it'd be nice if you could just grab it directly. Some of the things can't be retrieved other ways though, like arrows hit and time played and such, so this would be nice.

                            Also, did they fix the issue of goods not showing up?
                            Last edited by Dinglesberry; 07-10-2016, 01:12 AM.

                            Comment

                            • Dinglesberry
                              longing
                              • Dec 2007
                              • 2679

                              #29
                              Re: [API] FFR API Beta

                              Bumperino, still hoping for api call for http://www.flashflashrevolution.com/...rname=username to get that table.

                              Comment

                              • Dinglesberry
                                longing
                                • Dec 2007
                                • 2679

                                #30
                                Re: [API] FFR API Beta

                                Originally posted by TC_Halogen
                                Bump:

                                Is it possible to extend the API to have song level information?
                                Since theres no updates to the API, I've been working on extending it a bit myself.. heres my WIPs so far, probably going to make features for everything I want, most likely going to do advanced stats next:

                                So far, the only one I am somewhat done is:

                                getSongStats.php?levelid='levelidhere' //Returns details stats about a song

                                Code:
                                Example: getSongStats.php?levelid=1337
                                
                                Output: Musician: - SUN3 - Listen: - - Step Artist: - bmah - Level Number: - 1337 - Song Genre: - Dance 2 - Song Style: - Dance Speed - Difficulty: - 78 - Note Count: - 1148 - Release Date: - 11-29-09 - Song Length: - 1:49 - Number of AAAs: - 45 - Number of FCs: - 391 - Number of Players: - 3,168 - # of Times Played: - 24,328 -
                                
                                Example: getSongStats.php?levelid=1853
                                
                                Output: Musician: - YouriX - Listen: - - Step Artist: - Elite Ninja - Level Number: - 1853 - Song Genre: - Funk - Song Style: - Drum'n Bass Jazz - Difficulty: - 48 - Note Count: - 965 - Release Date: - 11-24-12 - Song Length: - 1:50 - Number of AAAs: - 173 - Number of FCs: - 432 - Number of Players: - 2,128 - # of Times Played: - 5,292 -
                                She's coming along.. Just need to compile it to JSON rather than some plaintext mess. Once I have more stuff done I'll throw it up on a webserver or something.


                                EDIT: leaving this here for notes/if anyone else wants to work on stuff:

                                Code:
                                		public static const SITE_DATA_URL:String = "http://www.flashflashrevolution.com/game/r3/r3-siteData.php"; //Contains front page posts and content displayed on main page.
                                		public static const USER_INFO_URL:String = "http://www.flashflashrevolution.com/game/r3/r3-userInfo.php"; //Contains user specific settings for currently logged in, such as scroll dir, noteskin etc.
                                		public static const USER_FRIENDS_URL:String = "http://www.flashflashrevolution.com/game/r3/r3-userFriends.php"; //Lists current logged in users friends.
                                Last edited by Dinglesberry; 08-14-2016, 08:03 AM.

                                Comment

                                Working...