Page 1 of 1

JSON API

PostPosted: Tue, 03.03.2015 01:43:08
by moroz1999
Пока нет нормального описания API, вывалю сюда хотя бы примеры, которые делал для Demozoo. Распространение и использование в целях любого утаскивания информации с моей стороны приветствуется (за авторов не отвечаю).

Tunes:
http://zxart.ee/api/action:filter/types ... MusicAll=1 - first 100 tunes sorted by title
http://zxart.ee/api/action:filter/types ... tyId=10018 - first 100 tunes from Dihalt 2011
http://zxart.ee/api/action:filter/types ... horId=2630 - first 100 tunes by Factor6
http://zxart.ee/api/action:filter/types ... 1417219200 - first 100 tunes modified since timestamp 1417219200

Pictures:
http://zxart.ee/api/action:filter/types ... ctureAll=1 - first 100 pictures sorted by title
http://zxart.ee/api/action:filter/types ... tyId=15728 - first 100 pictures from IVP5
http://zxart.ee/api/action:filter/types ... horId=2630 - first 100 pictures by Factor6
http://zxart.ee/api/action:filter/types ... 1417219200 - first 100 pictures modified since timestamp 1417219200

Parties
http://zxart.ee/api/action:filter/types ... partyAll=1 - first 100 demoparties sorted by title
http://zxart.ee/api/action:filter/types ... tyId=15728 - International Vodka Party 5 (id=15728)
http://zxart.ee/api/action:filter/types ... 1410010200 - 100 demoparties modified since timestamp 1410010200

Authors
http://zxart.ee/api/action:filter/types ... uthorAll=1 - first 100 authors
http://zxart.ee/api/action:filter/types ... horId=2630 - Factor6
http://zxart.ee/api/action:filter/types ... 1410010200

Types can be combined, in this case start/limit are applied to type set by "export" parameter:
http://zxart.ee/api/action:filter/types ... MusicAll=1 - 100 tunes with authors
http://zxart.ee/api/action:filter/types ... MusicAll=1 - 100 authors only having tunes
http://zxart.ee/api/action:filter/types ... uthorAll=1 - 100 authors with tunes where applicable
http://zxart.ee/api/action:filter/types ... MusicAll=1 - 100 tunes with authors and parties

All filters can be combined as well:
http://zxart.ee/api/action:filter/types ... eYear=2013 - all pictures from 2013 with authors
http://zxart.ee/api/action:filter/types ... me=factor6 - all pictures from Factor6 made at 2010.