Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HaveIBeenPwned Subscription API

Inspect the calling key's subscription state.

HaveIBeenPwned Subscription API is one of 8 APIs that HaveIBeenPwned publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 9 JSON Schema definitions.

Tagged areas include Subscription. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, rate-limit docs, and 9 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 2 schemas. It is described by OpenAPI 3.0.3, at version 3.0.0.

Requests are made against a single base URL, https://haveibeenpwned.com/api/v3.

1 operations 1 paths 2 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
3.0.0
Base URL
https://haveibeenpwned.com/api/v3
Authentication
API Key
Resource Areas
1

Authentication & Security 1

HaveIBeenPwned Subscription API declares 1 security scheme for authenticating requests. An API key is passed in the header as hibp-api-key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — 32-character hexadecimal API key issued at https://haveibeenpwned.com/API/Key. Required for all account, paste, stealer log, domain search, and subscription en…

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

Subscription 1

Inspect the calling key's subscription state.

GET
/subscription/status
Get Subscription Status
getSubscriptionStatus → 200401

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are SubscriptionStatus (11 properties), Error (2 properties). Each schema is shown below with its type and property counts.

Error
object
Standard HIBP error payload.
2 properties 2 required
SubscriptionStatus
object
Details of the calling key's subscription.
11 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

haveibeenpwned-subscription-api-openapi.yml Raw ↑

Other APIs HaveIBeenPwned publishes across the network.

HaveIBeenPwned Breached Accounts API
HaveIBeenPwned Breaches API
HaveIBeenPwned Data Classes API
HaveIBeenPwned Domain Search API
HaveIBeenPwned Pastes API
HaveIBeenPwned Range Search API
HaveIBeenPwned Stealer Logs API