Developer Information: Querying LoTW for DXCC Credits
LoTW provides a web service at https://lotw.arrl.org/lotwuser/logbook/qslcards.php that accepts RESTful queries that report DXCC Credits granted to QSOs confirmed via QSL card or LoTW from an LoTW DXCC Award Account that has been linked with a DXCC Record.
Using this web service, a logging application can update logged QSOs to reflect DXCC credit granted.
Each query is an HTTP "GET" string, formed in accordance with standard URL requirements (e.g., RFC1738). An example query URL might look like:
This query would return all DXCC credits for user k0gw if "notmypass" were k0gw's password.
Credit records are reported in ADIF format, with a header and one record per credit using the ADIF fields described below.
If the query fails, an HTML page containing an explanation will be returned; the absence of an ADIF end of header tag can be used to detect this outcome.
|Note that while the user's primary call sign is usually the username, this is not always the case and should not be assumed.
|If present, specifies the ARRL DXCC Entity code of the DXCC Record to be queried when the user has Logbook DXCC award accounts for multiple DXCC entities
The following table shows the ADIF fields that appear in the output. Where no Value is shown, the value of the field is that of the standard ADIF field of that name.
|program name: LoTW qslcards.php
|Call sign on the DXCC record
|ARRL DXCC Entity code on the DXCC record
|Entity name on the DXCC record (in nEnglish)
|User name on the DXCC record
|ARRL unique (“Master”) ID of user
|DXCC system unique ID for DXCC record
|Logbook unique ID of user
|DXCC record last update date
|Number of award credit records to follow
|QSO Data Fields
|From DXCC system; may be abbreviated to a “prefix” or a numeric ARRL DXCC Entity code
|Present if an ADIF non-compliant Mode is recorded for this credit in the DXCC system
|The mode group indicates whether the QSO's mode counts towards the CW, Phone or Digital awards respectively in the DXCC program; possible
|Present if an ADIF compliant Mode is record for this credit in the DXCC system
|Present if a Band is recorded for this credit in the DXCC system
|Credit entity's ARRL DXCC Entity code
|Credit entity's name (in English)
|Credit entity's deletetion status
|Award credits granted by this confirmation. Awards per ADIF award enumeration
|Award credits granted by this confirmation. Awards per Logbook internal award enumeration:
|Five (5) character alpha-numeric application serial "number". Corresponds to the "Appl-#" value which appears on the DXCC credit slip. First application is number "00000"
|Date time group (timestamp) for when this credit was processed into DXCC system, Format is: YYYY-MM-DD hh:mm:ss, Given at one minute granularity (seconfs are always zero),
|Indicates end of file. This can be used to verify that the file was completely received. This field is not followed by <EOR>. Since this tag is not ADIF-compliant it will be replaced in a future release when an ADIF-compliant end-of-file marker is available.