You can download league tables from Club Log for convenient re-use or onwards publishing on other web sites. The JSON format of the leagues does not use pagination, so it is convenient and more readily accessible for this sort of purpose than the HTML version that Club Log displays.


API URL


https://clublog.org/league_api.php


API arguments


The following arguments can be provided:


mode = Filter by mode


0 = No mode filter

1 = CW

2 = Phone

3 = Date


qsl = Filter by QSL status


0 = Worked

1 = Confirmed


date = Filter by QSO date


0 = No date filter

1 = The last 12 months (eg. if today is 12 June 2016, then the range is 12 June 2015 to 12 June 2016)

2 = Not used

3 = This year (e.g. if today is between 1 January and 31 December 2016, then the year is 2016)

4 = Last year (e.g. if today is between 1 January and 31 December 2016, then last year is 2015)


club


The numerical club ID (or continent/region filter) as displayed on the main league tables. The default, 0 is the global league table. Other useful values are:


-1 = Europe

-2 = North America

-3 = South America

-4 = Asia

-5 = Oceania

-6 = Africa

-7 = Antarctica

57 = British Isles


To see the full list, please view the HTML for https://clublog.org/league.php. Search in the source HTML for "<SELECT size="1name="fClub">".


deleted


0 = Current entities

1 = Current and deleted entities


Notes


The default for each field is the value 0, so calling league_api.php without any arguments will return the global, unfiltered league table.


The results are cached for 24 hours. There is no need to call the API again within 24 hours, but doing so returns the same result quickly and is not likely to cause problems with server load. Please be aware that very large league tables take time to compute, so please allow for up to 10 seconds of calculation time if you request a league that has not been requested by another user of this API within that time.


Example URL


https://clublog.org/league_api.php?mode=1&qsl=0&date=3&club=180&deleted=0


  • mode = 1 means CW
  • qsl = 0 means worked and confirmed QSOs
  • date = 3 means 'This year'
  • club = 180 means the UKCW Table
  • deleted = 0 means current and deleted entities


Response JSON


The response JSON contains the following fields in order:

rank, callsign, DXCCs worked, slots worked and then an array of bands and DXCC count for that band (from 160m through to 13cm).


Example response


[1,"G5LP","236","1445",{"160":46,"80":129,"60":2,"40":183,"30":161,"20":210,"17":203,"15":200,"12":142,"10":113,"6":56,"4":0,"2":0,"70":0,"23":0,"13":0}]

[2,"G0ORC","205","855",{"160":0,"80":82,"60":16,"40":124,"30":113,"20":155,"17":124,"15":114,"12":55,"10":49,"6":23,"4":0,"2":0,"70":0,"23":0,"13":0}]

[3,"MD0CCE","203","796",{"160":68,"80":87,"60":0,"40":103,"30":67,"20":134,"17":101,"15":96,"12":47,"10":51,"6":42,"4":0,"2":0,"70":0,"23":0,"13":0}] etc