Skip to content

MODEL API

Models

Calculations Approach makes over the same open data as the address API, for an address or a point. Every answer names the release that produced it, its method tier and its warnings; a screening calculation is not a measurement, a legal zone or an insurance price. One lookup per model and address per day, and an abstention is not counted.
API version
1.0.0
Endpoints
3
Models
0
Contents

Endpoints

https://api.approach.no/api/v1/predictions · OpenAPI contract

GET

/catalog

no key required

Models with an active Datakilde release: card, method, tier, sources, limitations, input and output schema.

Takes no parameters.

Responses and error codes

HTTPMeaningCodes in the body
200Model catalogue—
503prediction_service_unavailable
GET

/models/{model}

no key required

One model's release card and schemas.

Parameters

NameTypeBounds and defaultDescription
model
path · required
string——

Responses and error codes

HTTPMeaningCodes in the body
200Model—
404model_not_found
503prediction_service_unavailable
POST

/run

Run a served model for one subject. One oppslag per model and subject per day on the lookup allowance; repeats the same day are free, and an abstention or a failure is never counted. The grant must name the model (models capability). The answer names the release that produced it.

Parameters

NameTypeBounds and defaultDescription
model
body · required
string^[a-z][a-z0-9_]{2,62}$A model id from /catalog
options
body
object—Model-specific; see the model's input_schema
subject
body · required
object—An address id, or a point in EPSG:25833 inside Norway.
version
body
string—Optional: the release version you expect. Refused if it is not the active one, so a pinned client notices a new release.

Responses and error codes

Models

Which models are available depends on which releases are active; /catalog lists them with method, sources, limitations and schemas.

IdTitle and sourceDetails