Skip to content

Get started with the API

The ownr v2 API gives you data on Danish companies, persons and properties as JSON. You can also manage what you follow, your Ajour lists, segments and pipelines.

  • Base URL: https://ownr.dk/api/v2
  • Format: JSON in requests and responses
  • Sign-in: OAuth 2.0 client credentials

1. Get your API key

Log in to ownr and open API Adgang. Under Din API-nøgle you find the Client ID and Client secret.

The key is your own and follows your licence: the API gives you the same data you can see in the browser.

2. Get an access token

Terminal window
curl -X POST https://ownr.dk/api/v2/token \
-d grant_type=client_credentials \
-d client_id=CLIENT_ID \
-d client_secret=CLIENT_SECRET

The answer holds a token that is valid for one hour:

{
"status": "success",
"access_token": "…",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "companies persons properties ajour pipeline"
}

3. Call an endpoint

Terminal window
curl "https://ownr.dk/api/v2/company/search?q=SNT%20ApS&limit=1" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"items": [
{
"item": {
"id": 36732261,
"slug": "company",
"url": "/api/v2/company/36732261",
"name": "SNT ApS"
},
"status": "AKTIV",
"address": {
"address_1": "Østre Havnegade 12, 1. th",
"zip": "9000",
"city": "Aalborg",
"country": "DK"
}
}
],
"count": 15,
"page": 1,
"pageCount": 10
}
}

Every answer has the same shape: status and data. See Responses, errors and quota. Add ?pretty=1 to pretty-print an answer.

Next steps