Get vehicles registered on a person's folkbokföringsadress
curl --request GET \
--url https://lens-api.tic.io/persons/{id}/vehicles/address \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/persons/{id}/vehicles/address"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/persons/{id}/vehicles/address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/persons/{id}/vehicles/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/persons/{id}/vehicles/address"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/persons/{id}/vehicles/address")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/persons/{id}/vehicles/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"isProtected": true,
"hasAddress": true,
"isTooBroad": true,
"addressLine": "<string>",
"postalCode": "<string>",
"city": "<string>",
"registeredSince": "2023-11-07T05:31:56Z",
"keepers": [
{
"key": 123,
"link": "thisPerson",
"unknownOrdinal": 123,
"persons": [
{
"personId": 123,
"displayName": "<string>",
"isThisPerson": true
}
],
"candidateCount": 123,
"registeredAtAddress": true,
"addressAsOf": "2023-11-07T05:31:56Z",
"vehicles": [
{
"brukareIntelligenceScoreTotal": 123,
"brukareIntelligenceNumberOfMax": 123,
"agareIntelligenceScoreTotal": 123,
"agareIntelligenceNumberOfMax": 123,
"isOwner": true,
"isUser": true,
"isCurrent": true,
"transportstyrelsen_VehicleSummaryId": 123,
"companyId": 123,
"registreringsnummer": "<string>",
"companyid_Identitetsnummer": 123,
"companyid_Agare": 123,
"agareNamn": "<string>",
"brukareNamn": "<string>",
"isStolen": true,
"forvarvsdatum": "2023-11-07T05:31:56Z",
"forvarvsdatumAgare": "2023-11-07T05:31:56Z",
"fordonsbenamning": "<string>",
"handelsbeteckning": "<string>",
"namn": "<string>",
"arsmodell": 123,
"fordonsar": 123,
"chassinummer": "<string>",
"fabrikatskod": "<string>",
"fabrikskodBeskrivning": {
"item1": "<string>",
"item2": "<string>"
},
"modellnummer": "<string>",
"gruppnummer": "<string>",
"antalBrukare": 123,
"leasing": true,
"kreditkop": true,
"mileageKm": 123,
"mileageDate": "2023-11-07T05:31:56Z",
"fordonsslag": "<string>",
"fordonslagBeskrivning": "<string>",
"fordonsstatusKod": "<string>",
"avregOrsak": "<string>",
"fordonsstatusKodBeskrivning": "<string>",
"fordonsslagsklass": "<string>",
"fordonsslagsklassBeskrivning": "<string>",
"fordonsslagsklassOchBeskrivning": "<string>",
"drivmedel1Kod": "<string>",
"drivmedel2Kod": "<string>",
"drivmedel3Kod": "<string>",
"anvandningssatt1": "<string>",
"anvandningssatt2": "<string>",
"anvandningssatt3": "<string>",
"anvandningssatt4": "<string>",
"anvandningssatt5": "<string>",
"elfordonKonfiguration": "<string>",
"elfordonKonfigurationBeskrivning": "<string>",
"drivmedelsBeskrivningar": [
"<string>"
],
"anvandningssatt": [
"<string>"
]
}
]
}
]
}Persons
Get vehicles registered on a person's folkbokföringsadress
Returns the vehicles registered on the address where the person is folkbokförd, grouped per keeper.
GET
/
persons
/
{id}
/
vehicles
/
address
Get vehicles registered on a person's folkbokföringsadress
curl --request GET \
--url https://lens-api.tic.io/persons/{id}/vehicles/address \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/persons/{id}/vehicles/address"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/persons/{id}/vehicles/address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/persons/{id}/vehicles/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/persons/{id}/vehicles/address"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/persons/{id}/vehicles/address")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/persons/{id}/vehicles/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"isProtected": true,
"hasAddress": true,
"isTooBroad": true,
"addressLine": "<string>",
"postalCode": "<string>",
"city": "<string>",
"registeredSince": "2023-11-07T05:31:56Z",
"keepers": [
{
"key": 123,
"link": "thisPerson",
"unknownOrdinal": 123,
"persons": [
{
"personId": 123,
"displayName": "<string>",
"isThisPerson": true
}
],
"candidateCount": 123,
"registeredAtAddress": true,
"addressAsOf": "2023-11-07T05:31:56Z",
"vehicles": [
{
"brukareIntelligenceScoreTotal": 123,
"brukareIntelligenceNumberOfMax": 123,
"agareIntelligenceScoreTotal": 123,
"agareIntelligenceNumberOfMax": 123,
"isOwner": true,
"isUser": true,
"isCurrent": true,
"transportstyrelsen_VehicleSummaryId": 123,
"companyId": 123,
"registreringsnummer": "<string>",
"companyid_Identitetsnummer": 123,
"companyid_Agare": 123,
"agareNamn": "<string>",
"brukareNamn": "<string>",
"isStolen": true,
"forvarvsdatum": "2023-11-07T05:31:56Z",
"forvarvsdatumAgare": "2023-11-07T05:31:56Z",
"fordonsbenamning": "<string>",
"handelsbeteckning": "<string>",
"namn": "<string>",
"arsmodell": 123,
"fordonsar": 123,
"chassinummer": "<string>",
"fabrikatskod": "<string>",
"fabrikskodBeskrivning": {
"item1": "<string>",
"item2": "<string>"
},
"modellnummer": "<string>",
"gruppnummer": "<string>",
"antalBrukare": 123,
"leasing": true,
"kreditkop": true,
"mileageKm": 123,
"mileageDate": "2023-11-07T05:31:56Z",
"fordonsslag": "<string>",
"fordonslagBeskrivning": "<string>",
"fordonsstatusKod": "<string>",
"avregOrsak": "<string>",
"fordonsstatusKodBeskrivning": "<string>",
"fordonsslagsklass": "<string>",
"fordonsslagsklassBeskrivning": "<string>",
"fordonsslagsklassOchBeskrivning": "<string>",
"drivmedel1Kod": "<string>",
"drivmedel2Kod": "<string>",
"drivmedel3Kod": "<string>",
"anvandningssatt1": "<string>",
"anvandningssatt2": "<string>",
"anvandningssatt3": "<string>",
"anvandningssatt4": "<string>",
"anvandningssatt5": "<string>",
"elfordonKonfiguration": "<string>",
"elfordonKonfigurationBeskrivning": "<string>",
"drivmedelsBeskrivningar": [
"<string>"
],
"anvandningssatt": [
"<string>"
]
}
]
}
]
}Max+ tier
A keeper is one individual in the vehicle register. It is named only when it resolves to somebody folkbokförd on the address; otherwise it is listed as one of the possible residents, or as unknown.
The list is empty with
| Field | Meaning |
|---|---|
link | How the keeper relates to the person: thisPerson, maybeThisPerson, resident, maybeResident or unknown. |
registeredAtAddress | false when only the population register places the keeper on the address and the vehicle register still shows an earlier one. |
isProtected true for people with protected personal data, hasAddress false without a current Swedish folkbokföringsadress, and isTooBroad true for an address that is not one household.
The person’s vehicles lists only vehicles whose keeper resolves to exactly this person.Authorizations
Path Parameters
Internal person ID