# Global Adaptation Layers Risk API

The risk data API endpoint allows you to retrieve detailed climate risk data under the Global Adaptation Layers data product for any location globally.

## Endpoint

<pre class="language-rest"><code class="lang-rest"><a data-footnote-ref href="#user-content-fn-1">GET</a> https://app.alphageo.ai/api/public/v1/risk_data
</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>period</td><td>true</td><td>string</td><td><p>Time period.</p><p><em>Available values</em> : 2025, 2035, 2050, 2100</p></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/risk_data?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/risk_data?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 physical climate risk data of the given location.

```json
{
  "identifiers": {
    "SCENARIO": "SSP245",
    "PERIOD": "2035"
  },
  "heat_stress": {
    "CDD": 1921.39,
    "HOTDAYS_ABV90P": 66.64
  },
  "inland_flooding": {
    "HEAVY_PR_DAYS": 17.44,
    "R_INUN_RP0100": 0,
    "R_INUN_RP1000": 0
  },
  "coastal_flooding": {
    "C_INUN_RP0100": 0,
    "C_INUN_RP1000": 0,
    "SUBSIDENCE": 0,
    "COASTAL_EROSION": 0
  },
  "drought": {
    "MAX_CONS_DRYDAYS_1MM": 32.62,
    "HOTDAYS40C": 21.76,
    "WS": 1.1
  },
  "hurricane_wind": {
    "HU_MAX_SPEED": 74,
    "HU_AF": 0.01
  },
  "wildfire": {
    "MAX_CONS_DRYDAYS_1MM": 32.62,
    "HOTDAYS40C": 21.76,
    "AVG_VC": 0
  },
  "hail": {
    "HAILDAYS": 7.16,
    "PR_DAYS_10MM": 28.5,
    "MAXTEMP": 43.71
  },
  "data_version": "Aug 2024"
}
```

[^1]:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alphageo.ai/for-developers/alphageo-data-api/global-adaptation-layers-risk-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
