Skip to content
OSINTtools.io

keys.openpgp.org API

Verifying OpenPGP keyserver: look up a public key by email, fingerprint or key ID; identities appear only if the owner verified them.

Base URL
https://keys.openpgp.org
Sign-in
No key
Format
REST
Endpoints
4

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

Introduction

keys.openpgp.org is a public OpenPGP key server run on Hagrid. It has a native VKS interface under /vks/v1/ and a subset of the legacy HKP interface under /pks/. Keys come back ASCII-armored.

Lookups by email return a key only for an exact match and only when the address owner opted in to email lookup. Lookups by fingerprint or long key ID work for the primary key or any subkey; hex digits must be uppercase without a 0x prefix on the VKS endpoints.

No API key is needed. A missing key returns 404 and a plaintext message. Upload and verification endpoints exist in the docs and are not described here.

Quick start

  1. No key needed

    The keys.openpgp.org API answers without an account or key.

  2. Make your first request

    Get the key for an exact email address, if its owner opted in to lookup.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://keys.openpgp.org/vks/v1/by-email/someone%2540example.com'
  3. Read the response

    A 200 response looks like this.

    -----BEGIN PGP PUBLIC KEY BLOCK-----
    
    xjMEZexampleexampleexampleexampleexampleexampleexample
    -----END PGP PUBLIC KEY BLOCK-----

Authentication

No key or account: every endpoint answers without one.

Rate limits and pricing

By fingerprint or key ID: 5 requests per second. By email address: 1 request per minute. The docs say limits also apply to HKP and exceeding them returns 429.

Errors

StatusMeaning
404No key found
429Rate limit exceeded
503Database maintenance (POST requests)

Key lookups

Returns the ASCII-armored key with Content-Type application/pgp-keys. The address must be URI-encoded.

Path parameters

emailstringrequiredtakes your email

URI-encoded email address

Example: someone%40example.com
Response fields · 1Show

(body)string

ASCII-armored OpenPGP public key

curl 'https://keys.openpgp.org/vks/v1/by-email/someone%2540example.com'
No key needed
Response
-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEZexampleexampleexampleexampleexampleexampleexample
-----END PGP PUBLIC KEY BLOCK-----
  • Passive: the target is not contacted

Hex digits must be uppercase, without a 0x prefix. Returns an ASCII-armored key.

Path parameters

fingerprintstringrequired

Key fingerprint in uppercase hex

Example: 0123456789ABCDEF0123456789ABCDEF01234567
Response fields · 1Show

(body)string

ASCII-armored OpenPGP public key

curl 'https://keys.openpgp.org/vks/v1/by-fingerprint/0123456789ABCDEF0123456789ABCDEF01234567'
No key needed
Response
-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEZexampleexampleexampleexampleexampleexampleexample
-----END PGP PUBLIC KEY BLOCK-----
  • Passive: the target is not contacted

Same formatting rules as by-fingerprint. Returns an ASCII-armored key.

Path parameters

keyidstringrequired

Long key ID in uppercase hex

Example: 89ABCDEF01234567
Response fields · 1Show

(body)string

ASCII-armored OpenPGP public key

curl 'https://keys.openpgp.org/vks/v1/by-keyid/89ABCDEF01234567'
No key needed
Response
-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEZexampleexampleexampleexampleexampleexampleexample
-----END PGP PUBLIC KEY BLOCK-----

HKP

Hagrid returns either one key or none. Only exact matches are returned, the expiration date is blank, and parameters other than op and search are ignored. Use op=get to fetch the key itself.

Query parameters

searchstringrequiredtakes your email

Exact email address, long key ID or fingerprint (0x prefix optional for IDs)

Example: someone@example.com
Response fields · 1Show

(body)string

Machine-readable HKP index lines (info, pub and uid lines)

curl 'https://keys.openpgp.org/pks/lookup?op=index&options=mr&search=someone%40example.com'
No key needed
Response
info:1:1
pub:0123456789ABCDEF0123456789ABCDEF01234567:22:255:1700000000:
uid:someone@example.com:1700000000::