Open source Java library to query the unofficial Danish VAT API service https://www.cvrapi.dk. You need to buy access and get an authorization token before you can use this library.
Go to file
Mark Nellemann 91e04b06f7
continuous-integration/drone/push Build is passing Details
add test
2023-02-19 15:24:05 +01:00
gradle Cleanup and migration preparations. 2023-01-03 13:59:00 +01:00
src add test 2023-02-19 15:24:05 +01:00
.drone.yml Fix maven publish. 2023-01-03 14:35:44 +01:00
.editorconfig Update build pipeline. 2019-08-19 11:43:07 +02:00
.gitignore Initial work. 2019-08-17 19:53:11 +02:00
README.md Initial support of the free API. 2023-01-10 09:48:11 +01:00
bitbucket-pipelines.yml Remove jcenter and update dependencies. 2021-08-22 15:55:46 +02:00
build.gradle Initial support of the free API. 2023-01-10 09:48:11 +01:00
gradle.properties Initial support of the free API. 2023-01-10 09:48:11 +01:00
gradlew Cleanup and migration preparations. 2023-01-03 13:59:00 +01:00
gradlew.bat Cleanup and migration preparations. 2023-01-03 13:59:00 +01:00

README.md

libcvrapi


A Java library to query https://www.cvrapi.dk (a Danish VAT API service).

Build Status

Usage

Paid API

Lookup company by CVR number:

CvrApi api = new CvrApi("My user agent", "mySecretToken");
Company company = api.getCompanyByVatNumber("57020415");
System.out.println(company.life.name);

The Company represents most of the same properties as seen in the example JSON in the api documentation.

Free API

The limited and free API can also be queried:

OpenCvrApi api = new OpenCvrApi("My user agent");
OpenCompany company = api.getCompanyByVatNumber("57020415");
System.out.println(company.name);

Gradle

repositories {
	maven { url 'https://git.data.coop/api/packages/nellemann/maven' }
}

dependencies {
    compile 'biz.nellemann.libs:libcvrapi:1.+'
}

Development

To build and test the code:

./gradle build
./gradle test