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.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Mark Nellemann f45b299444
continuous-integration/drone/push Build is passing Details
Initial support of the free API.
3 weeks ago
gradle Cleanup and migration preparations. 4 weeks ago
src Initial support of the free API. 3 weeks ago
.drone.yml Fix maven publish. 4 weeks ago
.editorconfig Update build pipeline. 4 years ago
.gitignore Initial work. 4 years ago
README.md Initial support of the free API. 3 weeks ago
bitbucket-pipelines.yml Remove jcenter and update dependencies. 1 year ago
build.gradle Initial support of the free API. 3 weeks ago
gradle.properties Initial support of the free API. 3 weeks ago
gradlew Cleanup and migration preparations. 4 weeks ago
gradlew.bat Cleanup and migration preparations. 4 weeks ago

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