Please do not use this approach to get the DXCC value of spots from the DX Cluster or Skimmer. For that, please use cty.xml.


If you want just one DXCC lookup, you can do this in an extremely lightweight HTTP query as follows. Club Log will return a single number, the ADIF country code. This is as brief as possible a response to make the query fast and avoid overheads. All errors result in no response; if the callsign is bad you will get a country code of 0.


Simple lookup

https://clublog.org/dxcc?call=g7vjr&api=APIKEY


Date-bounded lookup

https://clublog.org/dxcc?call=g7vjr&api=APIKEY&year=1989&month=12&day=1&hour=12&minute=33
  • api: An API key to access this interface (protecting it from abuse), which you can obtain by emailing the helpdesk.
  • call: the callsign (required)
  • year: the year (1945 and later, optional)
  • month: the month (1 to 12, optional)
  • day: the day of the month (1 to 31, optional)
  • hour: the hour in 24h format (0 to 23, all times are GMT)
  • minute: the minute (0 to 59)
  • The date defaults to "now" if you don't specify a valid date (a valid date must include all of the above time fields, to one minute precision)

If you need more details, add a GET parameter of full=1 to the query, as follows:

https://clublog.org/dxcc?call=g7vjr&api=APIKEY&full=1

This will return a JSON array of information:

{"DXCC":223,"Name":"ENGLAND","Lat":"51.50","Lon":"0.10","CQZ":14,"Continent":"EU","PermKomi":false,"Blocked":false}
Notes:


PermKomi will be true if the callsign has been mapped using the unusual DXCC logic involved in certain Russian callsigns. See https://clublog.freshdesk.com/support/solutions/articles/54188-perm-komi-qualifying-qsos


Blocked will be true if Club Log would not permit the DXCC mapping stated, due to whitelists. You should therefore assume the DXCC mapping is not valid on the date of the QSO (or the callsign is not known to have been active from that DXCC, either at all or on the date specified).


What about multiple QSOs?


Don't iterate over this API - it's much too slow for batch use. If you want to efficiently lookup a lot of QSOs, you can do this is batches of 10,000. For more details, please read this solution: