BTC Address

GET/v0/btc-address

Validates whether a string is a valid Bitcoin mainnet address. When valid, the response includes the detected address type.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesThe Bitcoin address to validate

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/btc-address?value=1A1zP1eP5QGefi2DMPTfTL5SLmv7Divf"

Response Fields

FieldTypeDescription
validbooleanWhether the value is a valid Bitcoin mainnet address
typestringAddress type: P2PKH (Legacy, starts with 1), P2SH (Script hash, starts with 3), P2WPKH (Native SegWit, starts with bc1q), or P2TR (Taproot, starts with bc1p). Omitted when valid is false.

Example Response

{
  "valid": true,
  "type": "P2PKH"
}