Skip to main content

Analysis Data

This API endpoint allows you to get the combined Hazard, Loss, and Scores Data of Assets.

API Endpoint

[POST] https://api.intensel.net/apiv2/project_analysis_data/

Request Arguments

ArgumentTypeDescription
project_namestringThe name of the project.
analysis_typestringThe type of the analysis. RCP or SSP.
scenarioslistThe list of scenarios.
yearslistThe list of years.
with_mitigationbooleanInclude mitigation risk in the analysis.
with_contentbooleanInclude content risk in the analysis.
with_long_term_impactbooleanInclude long term impact in the analysis.
loss_variableslistThe list of loss variables.
score_variableslistThe list of score variables.
hazard_variableslistThe list of hazard variables.

Available Scenarios and Years

Analysis TypeScenariosYears
RCP0.0, 2.6, 4.5, 8.52020, 2030, 2050
SSP0.0, 2.6, 4.5, 8.52020, 2030, 2050, 2100

Request Example

import requests
URL = "https://api.intensel.net/apiv2/project_analysis_data/"
headers = {
'X-Intensel-Api-Key': 'YOUR_API_KEY',
}
payload = {
"project_name": "test 17_03_25-2",
"analysis_type": "SSP",
"scenarios": ["8.5", "4.5", "2.6"],
"years": ["2050", "2030", "2100"],
"with_mitigation": True,
"with_content": True,
"with_long_term_impact": True,
"loss_variables": ["rainfall_flood"],
"score_variables": ["rainfall_flood"],
"hazard_variables": ["rainfall_flood"]
}
response = requests.post(URL, json=payload, headers=headers)
data = response.json()
print(data)

Response Schema

{
"request_info": {
"project_name": string,
"analysis_type": string,
"asset_names": string[]
},
"hazard_data": {
"requested_variables": string[],
"analysis_type": string,
"asset_names": string[],
"data": [
{
"$hazard_variable": {
"meta_data": {
"units": string
},
"results": {
"$scenario_$year": float,
...
}
}
}
]
},
"loss_data": {
"requested_variables": string[],
"data": [
{
"name": string,
"latitude": float,
"longitude": float,
"loss_data": {
"$hazard_variable": {
"meta_data": {
"units": string
},
"results": {
"physical_loss": {
"$scenario_$year": float,
...
},
"operational_loss": {
"$scenario_$year": float,
...
}
}
}
}
}
]
},
"score_data": {
"requested_variables": string[],
"analysis_type": string,
"asset_names": string[],
"data": [
{
"name": string,
"latitude": float,
"longitude": float,
"score_data": {
"$hazard_variable": {
"meta_data": {
"units": string
},
"results": {
"$scenario_$year": float,
...
}
},
"overall": {
"meta_data": {
"units": string
},
"results": {
"$scenario_$year": float,
...
}
}
}
}
]
}
}

Response Schema Description

$ prefix to key means that the key is a dynamic value.

string[] means an array of strings.

float means a floating point number.

string means a string.

$hazard_variable is the name of the hazard variable.

$scenario_$year is the scenario and year combination.

... means that the object can contain more data.

Example Response

Analysis Data Response JSON -> view response