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 companies by organization number, batch, and/or update date

GET 

/companies/location-history

Location History By Query Endpoint

Overview

Returns location intervals from occupancy_intervals, optionally filterable by organization-number, batch-id, and/or an updated-start-date/updated-end-date range — any combination of the three can be used together (combined filters are ANDed together), and omitting all three simply paginates over the entire collection. Results are sorted newest first, same as the single-organization location-history endpoint, but since a request is not restricted to one organization, each interval carries its own orgNr.

The response is paginated: page (default 1) and page-size (default 1000) control which slice of the matching intervals is returned, and totalPages in the response tells you how many pages exist in total. Requesting a page beyond totalPages returns 404, same as any other filter combination with no matches.

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

Returns 404 if no intervals are found for the given filters.

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

Example Requests

curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/location-history' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'
curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/location-history?organization-number=935112885' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'
curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/location-history?batch-id=42' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'
curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/location-history?updated-start-date=2025-01-01&updated-end-date=2025-06-30' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'
curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/location-history?organization-number=935112885&batch-id=42&updated-start-date=2025-01-01&updated-end-date=2025-06-30' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'
curl -X 'GET' \
'https://apis.propcloud.no/api/public/companies/location-history?batch-id=42&page=2&page-size=100' \
-H 'accept: application/json' \
-H 'api-key: YOUR_API_KEY'

Response Description

KeyDescriptionBeskrivelseSource
totalPagesThe total number of pages of response for this specific query.Totalt antall sider med respons for denne spesifikke forespørselen.PropCloud
pageSizeThe number of items per page used for this response (the page-size query param, or its default of 1000).Antall elementer per side brukt for dette svaret (page-size-parameteren, eller standardverdien 1000).PropCloud
orgNrOrganization numberOrganisasjonsnummerEnhetsregisteret
orgNameName of the organizationNavn på organisasjonenEnhetsregisteret
orgFormOrganization form code (e.g. AS, ENK)Organisasjonsformkode (f.eks. AS, ENK)Enhetsregisteret
orgFormDescriptionHuman-readable description of the organization formLesbar beskrivelse av organisasjonsformenEnhetsregisteret
employeeCountNumber of registered employees at the start of the intervalAntall registrerte ansatte ved intervallets startEnhetsregisteret
propertyIdNmaPropCloud property identifier for the resolved locationPropCloud-eiendomsidentifikator for den løste lokasjonenPropCloud
businessAddressRaw business address string as registered in EnhetsregisteretRå forretningsadresse slik den er registrert i EnhetsregisteretEnhetsregisteret
validFromDate when the company moved to this address (YYYY-MM-DD)Dato da selskapet flyttet til denne adressen (YYYY-MM-DD)Enhetsregisteret
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
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
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
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
batchIdUnique identifier for the batch of recordsUnik identifikator for batchenPropCloud
updatedAtThis timestamp field records the date and time when the data was uploaded to MongoDB.Dette tidsstempelfeltet registrerer datoen og klokkeslettet når dataene ble lastet opp til MongoDB.PropCloud

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.