Gå til hovedinnhold
This API is legacy. It stays available for existing integrations; new work uses the Placepoint API.
Note! This documentation is automatically generated. Information may be incomplete or contain errors, especially screenshots and code samples. We'd love your feedback: use the "Did you find what you were looking for?" widget below, the chat in the bottom right, or email support@placepoint.no - we'll get back to you as soon as we can.

Get location history of a company

GET 

/companies/:org_nr/location-history

Company Location History Endpoint​

Overview​

Returns every location interval the organization has had, sorted newest first — both resolved and unresolved.

Each interval represents a period during which the company's forretningsadresse matched a given address or property. The currently-open interval (if any) will have valid_to as null.

Returns 404 if no intervals are found for the given organization number.

Data is sourced from the occupancy_intervals collection in the PropCloud Leads database, which is built from Enhetsregisteret address change events.

Example Request​

curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/935112885/location-history' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'

Response Description​

KeyDescriptionBeskrivelseSource
orgNrOrganization numberOrganisasjonsnummerEnhetsregisteret
intervalsList of location intervals, newest firstListe over lokasjonsintervaller, nyeste førstPropCloud
intervals[].orgNrOrganization numberOrganisasjonsnummerEnhetsregisteret
intervals[].orgNameName of the organizationNavn på organisasjonenEnhetsregisteret
intervals[].orgFormOrganization form code (e.g. AS, ENK)Organisasjonsformkode (f.eks. AS, ENK)Enhetsregisteret
intervals[].orgFormDescriptionHuman-readable description of the organization formLesbar beskrivelse av organisasjonsformenEnhetsregisteret
intervals[].employeeCountNumber of registered employees at the start of the intervalAntall registrerte ansatte ved intervallets startEnhetsregisteret
intervals[].propertyIdNmaPropCloud property identifier for the resolved locationPropCloud-eiendomsidentifikator for den løste lokasjonenPropCloud
intervals[].businessAddressRaw business address string as registered in EnhetsregisteretRå forretningsadresse slik den er registrert i EnhetsregisteretEnhetsregisteret
intervals[].validFromDate when the company moved to this address (YYYY-MM-DD)Dato da selskapet flyttet til denne adressen (YYYY-MM-DD)Enhetsregisteret
intervals[].validToDate when the company left this address (YYYY-MM-DD), or null if currently open. The org is not counted as present on this date itselfDato da selskapet forlot denne adressen (YYYY-MM-DD), eller null hvis intervallet er åpent. Selskapet regnes ikke som tilstede på denne datoenEnhetsregisteret
intervals[].exitReasonReason the interval was closed: moved (address change) or deregistered (org removed from Enhetsregisteret), or null if still openGrunn til at intervallet ble lukket: moved (adresseendring) eller deregistered (org fjernet fra Enhetsregisteret), eller null hvis åpentPropCloud
intervals[].isLikelyInitialRegistrationAddresstrue if this was likely the address used when the company was first registered; false if a later observed move confirms it was not; null if it cannot be determined (lower-bound start or missing registration date)true hvis dette sannsynligvis var adressen ved første registrering; false hvis en senere observert flytting bekrefter at det ikke var det; null hvis det ikke kan fastslåsPropCloud
intervals[].validFromIsLowerBoundtrue if validFrom is an estimated lower bound rather than the exact move-in datetrue hvis validFrom er et estimert nedre grense og ikke den eksakte innflyttingsdatoenPropCloud

Request​

Responses​

Successful Response

Note! This documentation is automatically generated. Information may be incomplete or contain errors, especially screenshots and code samples. We'd love your feedback: use the "Did you find what you were looking for?" widget below, the chat in the bottom right, or email support@placepoint.no - we'll get back to you as soon as we can.