People updates
Sometimes it is necessary to know which people have been updated since a specific date. This is useful for instance if you have a service that continuously updates your database with the newest changes from CVR. The data returned is always the updated data, but you can chose to include historic data as well by appending /history to the URL.
You can retrieve changes the same way for companies and production units.
To get the people that have been updated since a certain date, use the following endpoint
GET api.lassox.com/data/cvr/person/delta?since=2021-02-01&max=2021-02-02&pageSize=50
GET api.lassox.com/data/cvr/person/delta/history?since=2021-02-01&max=2021-02-02&pageSize=50
Parameters
The following parameters are available for the endpoints
| Name | Type | Description |
|---|---|---|
| since | Datetime | The minimum value for update time |
| max | Datetime | The maximum value for update time (optional) |
| pageSize | Integer | The number of results returned |
| cToken | String | The continuation token to use |
| useLastLoad | Boolean | Important! Read this section. We recommend setting this to true, though the default value is "false" for the time being |
| maxDaysSinceUpdate | Integer | In conjunction with useLastLoad, sets a maximum of days ago the entity must have been updated (LastUpdated) to be included. Default is 7. |
Response
Regardless of which data you request, you will receive a scrolled result, including a continuationToken, an indicator of whether or not there is a next page, and variouts counts. Scrolled indicates that you can scroll to the next page, but cannot scroll back, due to limitations in the CVR registry.
{
"continuationToken": STRING,
"hasNextPage": true,
"totalPages": 32,
"results": [
... list of requested entities here ...
],
"page": 1,
"pageSize": 100,
"resultsFound": 3200,
"resultsReturned": 100
}
If there are more results than your give pageSize, you will be given a continuationToken that can be provided with the query parameter cToken to retrieve the next page. The continuation token will only be valid for 3 minutes, so ensure your pageSize is small enough that you can handle the results in under that time.
Also note that repeated requests with the same cToken will continue the paging, but will not increment the page number. This is due to limitations in the CVR registry, and we advise to always use the returned continuationToken, and only once.