# UN Sustainable Development Goals

> Browse official UN goals and indicators, find geographic area codes, and retrieve published observations for reporting.

App · 4 actions. Web page: https://docs.lodol.com/docs/integrations/un-sdg

## Actions

### Get UN indicator observations

Read published observations for one data series and reporting area, optionally limited to a year.

**Inputs**

- Series code (`series_code`, text, required): Data series code, such as EG_ACS_ELEC.
- Area code (`area_code`, number, required): M49 reporting area code, such as 124 for Canada. From 0 to 999.
- Year (`year`, number): Year of observations to return. From 1900 to 2200.
- Page (`page`, number): Page number, starting at 1. At least 1.
- Page size (`page_size`, number): Maximum observations in a page (1 to 100). From 1 to 100.

**Outputs**

- `data` (object): The response from UN Sustainable Development Goals.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "dimensions": {},
        "geoAreaCode": "example",
        "geoAreaName": "example",
        "series": "example",
        "source": "example",
        "timePeriodStart": 1,
        "value": "example"
      }
    ],
    "pageNumber": 1,
    "totalElements": 1,
    "totalPages": 1
  }
}
```

### List targets and indicators for a UN goal

Find targets, indicators and data series for a single goal.

**Inputs**

- Goal code (`goal_code`, number, required): Goal number from 1 to 17. From 1 to 17.

**Outputs**

- `data` (list): The response from UN Sustainable Development Goals.

**Example output**

```json
{
  "data": [
    {
      "code": "example",
      "targets": [
        {
          "code": "example",
          "description": "example",
          "indicators": [
            {
              "code": "example",
              "description": "example",
              "series": [
                {
                  "code": "example",
                  "description": "example",
                  "uri": "example"
                }
              ]
            }
          ],
          "title": "example"
        }
      ],
      "title": "example"
    }
  ]
}
```

### List UN indicator reporting areas

Get M49 codes and names for countries, areas and regional groupings.

**Inputs**: None.

**Outputs**

- `data` (list): The response from UN Sustainable Development Goals.

**Example output**

```json
{
  "data": [
    {
      "geoAreaCode": "example",
      "geoAreaName": "example"
    }
  ]
}
```

### List UN Sustainable Development Goals

Get the 17 goals with their codes, titles and descriptions.

**Inputs**: None.

**Outputs**

- `data` (list): The response from UN Sustainable Development Goals.

**Example output**

```json
{
  "data": [
    {
      "code": "example",
      "description": "example",
      "title": "example"
    }
  ]
}
```
