Skip to content
OSINTtools.io

QRZ.com API

Amateur radio callsign database: look up a ham operator by callsign, name, county or grid square, with operator-written bios.

Base URL
https://xmldata.qrz.com/xml
Sign-in
No key
Free tier
Free trial
Pricing
Subscription
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from qrz.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The QRZ XML Callbook Data service looks up amateur radio callsigns in QRZ.com's database and returns name, address, coordinates, grid locator, licence dates and class, email, QSL information and the profile image URL as XML. An investigator uses it to resolve a callsign to a licence holder record and location. It also resolves prefixes and callsigns to DXCC countries.

Calls are plain HTTP GET or POST to https://xmldata.qrz.com/xml/ with the query parameters in the address (& or ; as separator). First log in with username and password to get a session key, then send that key as s with each lookup. The docs say to cache the key and log in only once per session; the key has no guaranteed lifetime and can be invalidated if your IP address changes. A version in the path (current, or for example 1.34) picks the interface version; without one the legacy 1.24 behaviour applies.

A QRZ XML Logbook Data subscription is required for most features. Non-subscriber access returns fewer fields and is meant for testing. The login response reports the number of lookups made in the last 24 hours and the subscription expiry. Responses are XML and every one starts with the QRZDatabase element; clients must ignore nodes they do not know.

Quick start

  1. No key needed

    The QRZ.com API answers without an account or key.

  2. Make your first request

    Log in with a QRZ username and password to get a session key.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://xmldata.qrz.com/xml/current/?username=xx1xxx&password=YOUR_PASSWORD'
  3. Read the response

    A 200 response looks like this.

    <?xml version="1.0" ?>
    <QRZDatabase version="1.34">
     <Session>
      <Key>YOUR_SESSION_KEY</Key>
      <Count>12</Count>
      <SubExp>Wed Jan 1 12:34:03 2031</SubExp>
      <GMTime>Sun Nov 16 04:13:46 2030</GMTime>
     </Session>
    </QRZDatabase>

Authentication

No key or account: every endpoint answers without one.

Log in with username and password to get a session key, then pass it as the s parameter on each request. The docs recommend caching the key and logging in once per session.

Rate limits and pricing

Not stated in the docs

Free trial. Pricing: subscription.

Errors

StatusMeaning
200Errors are reported inside the XML Session node as an Error element, for example "Not found: <callsign>", "Session Timeout" or "password incorrect"

Session

  • Passive: the target is not contacted
  • Plan: Any QRZ account; full data needs a subscription

Returns a Session node with Key, Count (lookups in the last 24 hours), SubExp (subscription expiry or non-subscriber) and GMTime. Reuse the key for later calls. If the response has no Key, log in again. An Error of "Connection refused" means service is refused for the user and login will not work for at least 24 hours.

Query parameters

usernamestringrequired

A valid QRZ user name

Example: xx1xxx
passwordstringrequired

The password for the user name

Example: YOUR_PASSWORD
agentstring

Product name and version of the client program, recommended for troubleshooting

Example: myclient1.0
Response fields · 5Show

Keystring

Session key to send as s on later requests

Countinteger

Lookups made by this user in the current 24 hour period

SubExpstring

Subscription expiry, or non-subscriber

GMTimestring

Timestamp of the message

Errorstring

Error message, when the login failed

curl 'https://xmldata.qrz.com/xml/current/?username=xx1xxx&password=YOUR_PASSWORD'
No key needed
Response
<?xml version="1.0" ?>
<QRZDatabase version="1.34">
 <Session>
  <Key>YOUR_SESSION_KEY</Key>
  <Count>12</Count>
  <SubExp>Wed Jan 1 12:34:03 2031</SubExp>
  <GMTime>Sun Nov 16 04:13:46 2030</GMTime>
 </Session>
</QRZDatabase>

Lookups

Send the session key as s and the callsign as callsign. The version in the path can be any supported release or current. Not all fields are returned with each request and field order is arbitrary; non-subscribers get a limited set. Use html=<callsign> in place of callsign to fetch the biography as HTML instead of XML.

Query parameters

sstringrequired

Session key from the login response

Example: YOUR_SESSION_KEY
callsignstringrequiredtakes your name

The callsign to look up

Example: xx1xxx
Response fields · 24Show

callstring

Callsign

xrefstring

The query callsign that returned this record

aliasesstring

Other callsigns that resolve to this record

fnamestring

First name

namestring

Last name

addr1string

Address line 1 (house number and street)

addr2string

Address line 2 (city)

statestring

State (USA only)

zipstring

ZIP or postal code

countrystring

Country of the QSL mailing address

latnumber

Latitude, signed decimal

lonnumber

Longitude, signed decimal

gridstring

Grid locator

geolocstring

Source of the coordinates: user, geocode, grid, zip, state, dxcc or none

efdatestring

Licence effective date (USA)

expdatestring

Licence expiration date (USA)

classstring

Licence class

emailstring

Email address

urlstring

Web page address

biostring

Approximate size in bytes of the biography HTML; present only if a biography exists

imagestring

URL of the primary image

moddatestring

Date the record was last modified

bornstring

Operator's year of birth

Errorstring

Error such as Not found: <callsign> or Session Timeout

curl 'https://xmldata.qrz.com/xml/1.34/?s=YOUR_SESSION_KEY&callsign=xx1xxx'
No key needed
Response
<?xml version="1.0" ?>
<QRZDatabase version="1.34">
 <Callsign>
  <call>XX1XXX</call>
  <dxcc>291</dxcc>
  <fname>JANE</fname>
  <name>EXAMPLE</name>
  <addr1>1 EXAMPLE STREET</addr1>
  <addr2>EXAMPLEVILLE</addr2>
  <state>ZZ</state>
  <zip>00000</zip>
  <country>United States</country>
  <lat>10.00000</lat>
  <lon>-10.00000</lon>
  <grid>AA00aa</grid>
  <class>E</class>
  <email>jane@example.com</email>
  <geoloc>user</geoloc>
 </Callsign>
 <Session>
  <Key>YOUR_SESSION_KEY</Key>
  <Count>13</Count>
  <SubExp>Wed Jan 1 12:34:03 2031</SubExp>
  <GMTime>Sun Nov 16 04:13:47 2030</GMTime>
 </Session>
</QRZDatabase>
  • Passive: the target is not contacted

The dxcc parameter takes a number (the entity, as in the path above), a callsign (the server reduces it to a 4, then 3, then 2-letter prefix and returns the first match) or the keyword all (380+ records; the docs ask you to use it sparingly). A non-matching lookup returns No DXCC information for the query in the session error.

Query parameters

sstringrequired

Session key from the login response

Example: YOUR_SESSION_KEY
Response fields · 9Show

dxccinteger

DXCC entity number

ccstring

2-letter country code (ISO 3166)

namestring

Long name

continentstring

2-letter continent designator

ituzonestring

ITU zone

cqzonestring

CQ zone

timezonestring

UTC offset in hours

latnumber

Approximate latitude

lonnumber

Approximate longitude

curl 'https://xmldata.qrz.com/xml/current/?dxcc=291&s=YOUR_SESSION_KEY'
No key needed
Response
<?xml version="1.0" ?>
<QRZDatabase version="1.34">
 <DXCC>
  <dxcc>291</dxcc>
  <cc>US</cc>
  <name>United States</name>
  <continent>NA</continent>
  <ituzone>6</ituzone>
  <cqzone>3</cqzone>
  <timezone>-5</timezone>
  <lat>37.0</lat>
  <lon>-97.0</lon>
 </DXCC>
 <Session>
  <Key>YOUR_SESSION_KEY</Key>
  <Count>14</Count>
 </Session>
</QRZDatabase>