Voer de eerste API-call uit
Het doel van deze pagina is om voorbeelden te geven van het uitvoeren van een API-aanroep in uw toepassing.
Tip! Gebruik de volgende toepassingen
OpenAPI specificatie
OpenAPI specification for AVM API
{
"openapi": "3.0.2",
"info": {
"title": "AVM API",
"description": "Predicts the transaction value for a given house address.",
"version": "2.0"
},
"paths": {
"/predict": {
"post": {
"tags": [
"AVM API"
],
"summary": "Displays the AVM data as well as the prediction.",
"operationId": "output_predict_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AVM"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Prediction for the given house address.",
"content": {
"application/json": {
"schema": {},
"example": {
"Output": {
"BagID": "str",
"PostCode": "str",
"HouseNumber": "int",
"HouseAddition": "str",
"City": "str",
"Street": "str",
"HouseType": "str",
"BuildYear": "int",
"InnerSurfaceArea": "int",
"OuterSurfaceArea": "int",
"Volume": "int",
"EnergyLabel": "str",
"Longitude": "float",
"Latitude": "float",
"Rooms": "int",
"Image": "str",
"ValuationDate": "int",
"PriceEstimation": "int",
"Confidence": "str",
"AccuracyIndicator": "int or str"
}
}
}
}
},
"400": {
"description": "The given house address was not found in database.",
"content": {
"application/json": {
"example": [
"Output: The given house address was not found in database."
]
}
}
},
"422": {
"description": "Validation Error.",
"content": {
"application/json": {
"example": {
"detail": [
{
"loc": [
"query",
"housenumber"
],
"msg": "ensure this value is greater than 0",
"type": "value_error.number.not_gt",
"ctx": {
"limit_value": 0
}
}
]
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"AVM": {
"title": "AVM",
"required": [
"postcode",
"housenumber"
],
"type": "object",
"properties": {
"postcode": {
"title": "Postcode of the given house.",
"pattern": "^(?!1000|1001|1002|1003|1004|1005|1006|1007|1008|1009|1010)[1-9][0-9]{3}[A-Z]{2}$",
"type": "string",
"example": "1234AB"
},
"housenumber": {
"title": "House number of the given house.",
"exclusiveMinimum": 0.0,
"type": "integer",
"example": 1
},
"houseaddition": {
"title": "House addition of the given house.",
"type": "string",
"default": ""
},
"valuationdate": {
"title": "Date of evaluation.",
"type": "string",
"format": "date",
"default": "20230410"
},
"buildyear": {
"title": "Buildyear",
"maximum": 2023.0,
"minimum": 1800.0,
"type": "integer"
},
"innersurfacearea": {
"title": "Innersurfacearea",
"exclusiveMinimum": 0.0,
"type": "number"
},
"outersurfacearea": {
"title": "Outersurfacearea",
"exclusiveMinimum": 0.0,
"type": "number"
},
"housetype": {
"title": "Housetype",
"enum": [
"Vrijstaande woning",
"2 onder 1 kap woning",
"Geschakelde 2 onder 1 kapwoning",
"Geschakelde woning",
"Tussen/rijwoning",
"Hoekwoning",
"Eindwoning",
"Galerijflat",
"Portiekflat",
"Corridorflat",
"Maisonnette",
"Benedenwoning",
"Bovenwoning",
"Portiekwoning"
],
"type": "string"
},
"energylabel": {
"title": "Energylabel",
"enum": [
"G",
"F",
"E",
"D",
"C",
"B",
"A",
"A+",
"A++",
"A+++",
"A++++",
"A+++++"
],
"type": "string"
},
"image": {
"title": "Image",
"enum": [
0,
1
],
"type": "integer",
"default": 0
}
}
}
}
}
}Een verzoek uitvoeren in Reqbin.com
Een API call uitvoeren in Insomnia

Een API call uitvoeren in Postman
Last updated