Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: 1 [2] 3   Go Down

Author Topic: API key request  (Read 7571 times)

0 Members and 1 Guest are viewing this topic.

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #10 on: October 25, 2015, 18:59:44 »

You cannot get an explicit list of modules that is not associated with any artist, as far as I'm aware.
It is very bad- model is inconsistent.
Theoretically, this query can be performed with request=view_modules_by_artistid with explicitly empty query.
Logged

Saga Musix

  • TMA Moderator
  • Too much pie
  • *****
  • Offline Offline
  • Posts: 2171
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: API key request
« Reply #11 on: October 25, 2015, 22:48:11 »

Well, there's unfortunately nothing I can do about that - I don't have access to the API code.
The database model is not inconsistent - All I can say is that neither ModArchive nor anyone using our API in the past required this specific feature, which is why it's not there.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #12 on: October 26, 2015, 10:45:23 »

Well, there's unfortunately nothing I can do about that - I don't have access to the API code.
Who has? I will ask directly:)

The database model is not inconsistent - All I can say is that neither ModArchive nor anyone using our API in the past required this specific feature, which is why it's not there.
Since there're no way to list all the modules (due to big amount of data, at least), grouping by artist and/or genre looks very pretty and suitable. And grouping really cover all the modules (so ModArchive DB itself is consistent), but API does not provide access to non-tagged groups (like modules with no author info and/or with no genre info) - so it looks inconsistent from external view.
As for another users- how many active users are available now? BTW, as a site user I was suprised that not all the modules are listed in artists directory.
Logged

Saga Musix

  • TMA Moderator
  • Too much pie
  • *****
  • Offline Offline
  • Posts: 2171
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: API key request
« Reply #13 on: October 26, 2015, 15:53:07 »

m0d is responsible for the API, but don't expect him to answer any faster if you bug him directly. He reads the forums so he'll see this thread eventually but he's busy with other things recently.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #14 on: October 26, 2015, 16:07:05 »

m0d is responsible for the API, but don't expect him to answer any faster if you bug him directly. He reads the forums so he'll see this thread eventually but he's busy with other things recently.
Ok. I will use existing calls taking into account possible improvements. Only after that I will try to disturb m0d:)

Stay tuned!
Logged

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #15 on: November 08, 2015, 22:28:59 »

I have found some issue:

only request=search_artist contains total_results field. All the other requests I use (request=search&type=genre, request=view_modules_by_artistid) doesn't has such a field, only results field which is really useless.

P.S. Thanks for quota usage info support!
P.P.S. Is it possible to use http://api.modarchive.org/xml-tools.php instead of documented http://modarchive.org/data/xml-tools.php to avoid redundand redirect?
Logged

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #16 on: November 17, 2015, 12:39:21 »

Since there were no replies, I've supported total_results field for all the requests hoping issue will be fixed later.

New version is available with modarchive support. Check it out at:
GooglePlay- https://play.google.com/store/apps/details?id=app.zxtune
Download .apk - http://zxtune.bitbucket.org/
Logged

Saga Musix

  • TMA Moderator
  • Too much pie
  • *****
  • Offline Offline
  • Posts: 2171
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: API key request
« Reply #17 on: January 26, 2016, 19:52:07 »

request=view_modules_by_artistid&query=0 can now be used to find all modules not associated with any artists.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #18 on: January 26, 2016, 20:41:08 »

request=view_modules_by_artistid&query=0 can now be used to find all modules not associated with any artists.
Excellent! Thanks a lot!
Logged

Vitamin

  • Devouring the Pies
  • Offline Offline
  • Posts: 15
    • View Profile
Re: API key request
« Reply #19 on: January 26, 2016, 21:01:49 »

Is it possible to increase quota?
Now I'm using ~50k requests with 7 days cache TTL. But I want to decrease TTL for 2 days (site updated quite frequently), so usage will be increased up to ~170k
Logged
Pages: 1 [2] 3   Go Up