---
description: This page covers the ways of obtaining the info about a SDK and a license
---

# About SDK and license

## SDK

To get the API version use:

```javascript
Regula.DocumentReader.getAPIVersion((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

To get the Core version use:

```javascript
Regula.DocumentReader.getCoreVersion((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

To get the Core mode use:

```javascript
Regula.DocumentReader.getCoreMode((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

Allows you to get database id, e.g. KAZ:

```javascript
Regula.DocumentReader.getDatabaseID((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

To get the database version use:

```javascript
Regula.DocumentReader.getDatabaseVersion((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

Allows you to get the database export date:

```javascript
Regula.DocumentReader.getDatabaseDate((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

To get the list of supported database documents use:

```javascript
Regula.DocumentReader.getDatabaseDescription((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

Allows to get the number of supported database countries:

```javascript
Regula.DocumentReader.getDatabaseCountriesNumber((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

Allows to get the number of supported database documents:

```javascript
Regula.DocumentReader.getDatabaseDocumentsNumber((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

## License

Allows to get an expiration date of the license:

```javascript
Regula.DocumentReader.getLicenseExpiryDate((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```

Allows to get a list of country identifiers which are defined for processing in the license. If the array is empty, there are no restrictions for processing:

```javascript
Regula.DocumentReader.getLicenseCountryFilter((str) => {
  console.log(str);
},
(error) => {
  console.log(error);
});
```
