Companies

List locations for a company

GET
https://api.searchsoftware.nl/v4/records/companies/{id}/locations

Returns every location of the company, primary first, then oldest first. Not paginated. Address fields: street, city, state, zip, country, country_code. formatted is always derived from them (street, city, zip, state, then country or country_code) and cannot be set. Requires companies:read.

Parameters

idstringrequiredpath

Company ID

Response

Location list

Response fields application/json
statusstringrequired
Example
ok
Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
typestringrequired
Example
location
attributesLocationAttributesrequired
Show child attributes
streetstring | null

Street address

Example
Oudegracht 1
citystring | null
Example
Utrecht
statestring | null

State, province or region

Example
Utrecht
zipstring | null
Example
3511 AB
countrystring | null
Example
Netherlands
country_codestring | null
Example
NL
formattedstring | null

Derived from the address fields; read-only

Example
Oudegracht 1, Utrecht, 3511 AB, Utrecht, Netherlands
latstring | null

Read-only

lngstring | null

Read-only

is_primarybooleanrequired
Example
true
created_atstring<date-time> | null
Example
2026-01-15T09:00:00Z
updated_atstring<date-time> | null
Example
2026-01-15T09:00:00Z
400Bad RequestErrorResponse

Invalid id

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_ID",
    "status_code": 400,
    "message": "Invalid id"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

Company not found

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: companies:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: companies:read

apikey_authapiKey in query

API key in query string

Scopes: companies:read