Bergmanis API

High-performance validation tools for Latvian business data.

https://api.bergmanis.com

Endpoints

GET /company

Fetch Latvian company data by registration number.

Parameter Type Description
reg_nr String Required. 11-digit registration number.
Example Request
cURL
curl "https://api.bergmanis.com/company?reg_nr=40003000631"
Example Response
JSON
{
  "success": true,
  "reg_nr": "40003000631",
  "data": {
    "name": "LATVENERGO, AS",
    "address": "Pulkveža Brieža iela 12, Rīga, LV-1230",
    "status": "Active",
    "type": "Akciju sabiedrība"
  }
}
GET /vat

Validate Latvian VAT number format.

Parameter Type Description
number String Required. Format: LV12345678901
Example Request
cURL
curl "https://api.bergmanis.com/vat?number=LV40003000631"
Example Response
JSON
{
  "success": true,
  "country_code": "LV",
  "vat_number": "40003000631",
  "full_vat": "LV40003000631",
  "valid_format": true,
  "message": "VAT format is valid."
}
GET /iban

Validate Latvian IBAN structure and checksum.

Parameter Type Description
iban String Required. 21 characters starting with LV.
Example Request
cURL
curl "https://api.bergmanis.com/iban?iban=LV21HABA0001234567890"
Example Response
JSON
{
  "success": true,
  "iban": "LV21HABA0001234567890",
  "country": "Latvia",
  "bank_code": "HABA",
  "valid": true,
  "message": "IBAN is valid."
}

Error Codes

400 Bad Request

Missing or invalid parameters.

404 Not Found

Endpoint does not exist.

500 Server Error

Unexpected server error.