# Financial Impact Analytics API

This endpoint provides data for real estate cashflow modelling. The metrics translate climate risk and resilience features into various cashflow items such as rate of increase in insurance, projected utility costs, and discount rates.

## Endpoint

<pre class="language-rest"><code class="lang-rest"><strong><a data-footnote-ref href="#user-content-fn-1">GET</a> https://app.alphageo.ai/api/public/v1/analytics
</strong></code></pre>

## Parameters

<table><thead><tr><th>Parameters</th><th data-type="checkbox">Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>address</td><td>false</td><td>string</td><td>Full address of the location</td></tr><tr><td>scenario</td><td>true</td><td>string</td><td><p>Identifier for CMIP6 Emission Scenarios.</p><p><em>Available values</em> : SSP245, SSP370, SSP585</p></td></tr><tr><td>longitude</td><td>false</td><td>number</td><td>Longitude of the location that being queried.</td></tr><tr><td>latitude</td><td>false</td><td>number</td><td>Latitude of the location that being queried.</td></tr></tbody></table>

## Example requests

#### cURL

```bash
$ curl --location 'https://app.alphageo.ai/api/public/v1/analytics?longitude=-97.2805288&latitude=32.7376509&period=2035&scenario=SSP245' \
--header 'Authorization: dse3X8de878c37b2fd6835c52390303fk15fc3'
```

#### Python

```python
import requests

url = "https://app.alphageo.ai/api/public/v1/analytics?longitude=-97.2805288&latitude=32.7376509&period=2035&scenario=SSP245"

payload = {}
headers = {
  'Authorization': 'dse3X8de878c37b2fd6835c52390303fk15fc3'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

```

## Example response

A successful response containing analytics of the given location.

```json
{
  "identifiers": {
    "SCENARIO": "SSP245"
  },
  "insurance": {
    "INS_RATE_FIRE": 0,
    "INS_RATE_FLOOD": -1.07,
    "INS_RATE_ANNUAL": -1.07
  },
  "utility": {
    "UTIL_RATE_COOLING": 0.38,
    "UTIL_RATE_HEATING": -0.41,
    "UTIL_RATE_ANNUAL": -0.03
  },
  "capex": {
    "CAPEX_FIRE": 0,
    "CAPEX_FLOOD": 0,
    "CAPEX_CDD": 0,
    "CAPEX_ANNUAL": 0
  },
  "discount": {
    "10_YEAR_DISCOUNT": 0.09,
    "25_YEAR_DISCOUNT": 0.22,
    "75_YEAR_DISCOUNT": 0.38
  },
  "operation_downtime": {
    "DOWNTIME_DAYS_ANNUAL": 0.08
  },
  "operation_efficiency": {
    "EFFICIENCY_LOSS_ANNUAL": 0.68
  },
  "workforce_productivity": {
    "PRODUCTIVITY_LOSS_ANNUAL": 1.26
  },
  "maintenance_cost": {
    "MAINT_RATE_ANNUAL": -0.04
  },
  "insurability": {
    "UNINSURABLE_COASTAL": 0,
    "UNINSURABLE_FIRE": 0,
    "UNINSURABLE_INLAND": 0,
    "UNINSURABLE_TOTAL": 0
  },
  "data_version": "Aug 2024"
}
```

[^1]:
