Skip to content

Lasso News

Lasso delivers news about the changes that happen to a company or person in CVR. For example, news is delivered on changes of ownership, address changes, status changes and more.

Endpoints

News are retrieved using the following POST endpoint:

POST https://api.lassox.com/modules/news

The body of your request must be a list of Lasso Ids, e.g.:

[
  "CVR-1-34580820"
]

Don't forget to add your API key.

Query parameters

The endpoint takes the following parameters

Parameter Type Default Description
from datetime null Only return news published at or after this time.
to datetime null Only return news published at or before this time.
limit integer 30 The maximum number of news items to return.
page integer 1 The page of results to return.
types string null Restrict the result to specific news types (see News types). When null, all types are returned.
orderBy string promoteduntil The sort order. Use publishtime for chronological order.

News types

News type Id Type name Source
New financial report 26 Account CVR
Change of auditor 33 Accountant CVR
Change of ownership 27 Ownership CVR
Board change 28 Board CVR
Management change 29 Management CVR
Stakeholder change 41 Stakeholder CVR
Master-data change (phone, email, website, etc.) 30 Information CVR
New company founded 31 NewCompany CVR
Status change 32 StatusChange CVR
Sole proprietorship / partnership start or end 40 Lifetime CVR
Press release from Ritzau 34 Ritzau Via Ritzau
Bankruptcy notice from Statstidende 400 Statstidende Statstidende

Example

The following is an example of how to retrieve news for a specific company.

POST https://api.lassox.com/modules/news
[
  "CVR-1-34580820"
]
[
  {
    "promotedUntil": "2021-08-02T23:45:01.62Z",
    "headline": "Pr. 03.08.2021 flytter {LASSO X A/S|CVR-1-34580820} adresse",
    "content": "{LASSO X A/S|CVR-1-34580820} er flyttet adresse fra 1550 København V til 1253 København K.<br/><br/>På {LASSO X A/S|CVR-1-34580820}' nye adresse er der pt. registreret 3 andre aktive firmaer i det danske CVR-register, herunder {COPENHAGEN INSTITUTE OF INTERACTION DESIGN 2020 ApS|CVR-1-29916489}. <br/><br/>{LASSO X A/S|CVR-1-34580820} har registreret {Christian Weis Højfeldt|CVR-3-4000453641} som formand for bestyrelsen og {Jakob Bech Benediktson|CVR-3-4000455341} som administrerende direktør. Sidstnævnte har haft denne post siden 01.06.2014. Bestyrelsen består af følgende medlemmer: <ul><li>{Michael Eggert|CVR-3-4000126372}</li><li>{Egil Rindorf|CVR-3-4000442559}</li><li>{Christian Weis Højfeldt|CVR-3-4000453641}</li><li>{Anders Gaarde Heering|CVR-3-4004183852}</li></ul>Virksomheden har registreret en selskabskapital på 1,73 mio. DKK. ",
    "url": "https://lasso.dk/firmaer/34580820/pr-03082021-flytter-lasso-x-as-adresse/Q1ZSLTEtMzQ1ODA4MjB8Ni4xMXw4LzMvMjAyMSAxMjowMDowMCBBTXxUb2xkYm9kZ2FkZXwzNw==",
    "time": "2021-08-03T11:45:01.62Z",
    "storyId": "6.11",
    "tagLine": "03.08.2021: {LASSO X A/S|CVR-1-34580820} flytter til en anden adresse.",
    "imageId": "contactinfo_6.jpg",
    "type": "Information",
    "provider": "VIRK",
    "providerData": null,
    "uniqueId": "Q1ZSLTEtMzQ1ODA4MjB8Ni4xMXw4LzMvMjAyMSAxMjowMDowMCBBTXxUb2xkYm9kZ2FkZXwzNw==",
    "lassoIds": [
      {
        "relatedLassoIdName": "LASSO X A/S",
        "lassoId": "CVR-1-34580820",
        "isMainId": true,
        "inQuery": true
      }
    ]
  }
]

Response format

The endpoint returns an array of news items in the following format.

Field Type Description
headline string The news headline, with entity metadata markup (see Formatting the content).
content string The full news text, formatted as HTML and with entity metadata markup. See Formatting the content.
tagLine string A short, one-line summary, with entity metadata markup.
time datetime When the news item was published.
promotedUntil datetime The time until which the item is promoted, used with the default promoteduntil ordering.
type string The news type name, e.g. Information. See News types.
provider string The data provider, e.g. VIRK, Ritzau or Statstidende.
providerData object Additional provider-specific data, if any.
url string A link to the news article on lasso.dk.
imageId string The identifier of an image associated with the news item.
storyId string An identifier for the underlying story.
uniqueId string A unique identifier for the news item.
lassoIds object[] The entities the news item relates to. See Related entities.

Each entry in lassoIds describes a company or person the news item relates to.

Field Type Description
relatedLassoIdName string The name of the related entity.
lassoId string The Lasso Id of the related entity.
isMainId boolean Whether this is the primary entity the news is about.
inQuery boolean Whether this entity was one of the Lasso Ids in your request.

Formatting the content

The content field is formatted as HTML, since we insert line breaks and similar markup. It must therefore be interpreted as HTML when you place it on a page, e.g. by assigning content to the innerHTML of your HTML nodes.

In addition, we embed metadata for the people and companies that appear in the text, so you can link to them if you want. You will therefore come across text such as:

... Jonas har haft den længste relation til {Annelise Jensen|CVR-3-4000654321}, som ..

Each {name|lassoId} token can be replaced with either a plain name or a link. The following JavaScript snippet can be used as inspiration; it takes a text and replaces the tokens with links or plain names, depending on your needs:

function (text, createLinks) {
    var links = text.match(/{([^}]*)}/g)
    if (links) {
        links.forEach(function (link) {
            var content = link.match(/\{([^}]+)\}/)[1].split('|')
            if (content.length === 2) {
                if (createLinks) text = text.replace(link, '<a href="article/' + content[1] + '">' + content[0] + '</a>')
                else text = text.replace(link, content[0])
            }
        })
    }
    return text
}