Searching for companies
To search for companies, use the following endpoint:
GET api.lassox.com/data/cvr/search?query=Lasso&type=company
{
"companies": {
"continuationToken": "MnwzfExBU1NPfGFjdGl2ZXxGYWxzZQ==",
"hasNextPage": true,
"totalPages": 4,
"results": [{
"foundByName": "LASSO X A/S",
"status": "NORMAL",
"lassoId": "CVR-1-34580820",
"name": "LASSO X A/S",
"entityType": "Company",
"address1": "Rådhuspladsen 37",
"postalCode": 1550,
"city": "København V",
"country": "Danmark",
"score": 26.295444
}, {
"foundByName": "Lasson Mechanics A/S",
"status": "Aktiv",
"lassoId": "CVR-1-78632952",
"name": "Lasson Mechanics A/S",
"entityType": "Company",
"address1": "Topgårdsvej 32",
"postalCode": 3050,
"city": "Humlebæk",
"country": "Danmark",
"score": 16.163883
}, {
"foundByName": "Lassolli ApS",
"status": "NORMAL",
"lassoId": "CVR-1-40577882",
"name": "Lassolli ApS",
"entityType": "Company",
"address1": "Gaden 45",
"postalCode": 2150,
"city": "Nordhavn",
"country": "Danmark",
"score": 15.844145
}
],
"page": 1,
"pageSize": 3,
"resultsFound": 12,
"resultsReturned": 3
}
}
This endpoint returns a list of companies that match the query. It will include
a score that indicates how well the company or person matches your result --- the higher the
better. The general idea is that this functionality be used to create search functionality,
after which you can retrieve the actual data for a company you require using the LassoId.
Note that we search in both primary names as well as historic and alternate names, meaning that
a search for an old name can result in the current name being returned, in which case the name
we found the company by will appear in the foundByName property.
If there are more pages of results than can fit in one request, you will be given with a
continuationToken for companies and people (they will be the same) that you can use to
retrieve the next page using the cToken parameter.
You can modify the amount of results per page using the pageSize parameter. You can also specify the status of a company by using the status parameter to
specify whether to return either active, inactive, or all. To search specifically for
people, see People → Search.
In addition to this, you can add the following filters to the query itself using the syntax
filtername:value after the query:
| Filter | Description | Type | Example |
|---|---|---|---|
| company | Related Company Name (Person only) | String | query=Jeppe company:Lasso X |
| city | The city | String | query=lasso x city:københavn |
| postalcode | The postal code | Integer | query=lasso x postalcode:2200 |
| street | The street name | String | query=lasso x street:Nørrebrogade |
| streetno | The street number | String | query=lasso x streetno:36 |
| floor | The floor of the building | String | query=lasso x floor:st |
| side | The sidedoor of the floor | String | query=lasso x side:th |
| protected | Commercially protected (Company only) | Boolean | query=lasso x protected:false |
| The e-mail | String | query=lasso x email:lassox.com | |
| telephone | The telephone number | String | query=lasso x telephone:71747812 |
| cvr | Related CVR number | Integer | query=lasso x cvr:23452345 |
Note that you can combine any number of these filters, e.g.
query=Kiosk city:København street:Nørrebrogade.
In addition to the basic name searches, you can search for CVR numbers or LassoIds, as well as phonenumbers, in which case we will check both in the CVR registry AND in Danish teledata for companies with a matching phonenumber.