# Metro Lisboa

> Check the live service status of Lisbon's metro, Metro de Lisboa: whether the Yellow, Blue, Green and Red lines are running normally, with the operator's notice for any disrupted line. No account or API key required.

App · 1 action. Web page: https://docs.lodol.com/docs/integrations/metro-lisboa

## Actions

### Get line status

Check whether Lisbon's metro is running normally: the status of the Yellow, Blue, Green and Red lines (or just one), with Metro de Lisboa's notice, in Portuguese, for any line that is disrupted. No API key required.

**Inputs**

- Line (`line`, text): Only check this line. Leave empty for all four. Portuguese names such as 'azul' work too. One of: `yellow` (Yellow Line (Linha Amarela)), `blue` (Blue Line (Linha Azul)), `green` (Green Line (Linha Verde)), `red` (Red Line (Linha Vermelha)).

**Outputs**

- `all_normal` (true/false): True when every listed line is running normally.
- `count` (number): How many lines are listed.
- `disrupted_count` (number): How many of the listed lines are not running normally.
- `lines` (list): Each line's status, in Metro de Lisboa's order (Yellow, Blue, Green, Red).
- `source_url` (text): Metro de Lisboa's website, to credit or link to.
- `summary` (text): One line about the network, e.g. 'Normal service on all lines', or each disrupted line with its notice.

**Example output**

```json
{
  "all_normal": true,
  "count": 4,
  "disrupted_count": 0,
  "lines": [
    {
      "color": "#FFC425",
      "is_normal": true,
      "line_id": "yellow",
      "message_pt": null,
      "message_type": "0",
      "name": "Yellow Line",
      "name_pt": "Linha Amarela",
      "status": "Normal service"
    },
    {
      "color": "#5591CD",
      "is_normal": true,
      "line_id": "blue",
      "message_pt": null,
      "message_type": "0",
      "name": "Blue Line",
      "name_pt": "Linha Azul",
      "status": "Normal service"
    },
    {
      "color": "#00AAA6",
      "is_normal": true,
      "line_id": "green",
      "message_pt": null,
      "message_type": "0",
      "name": "Green Line",
      "name_pt": "Linha Verde",
      "status": "Normal service"
    },
    {
      "color": "#EE2B74",
      "is_normal": true,
      "line_id": "red",
      "message_pt": null,
      "message_type": "0",
      "name": "Red Line",
      "name_pt": "Linha Vermelha",
      "status": "Normal service"
    }
  ],
  "source_url": "https://www.metrolisboa.pt/en/",
  "summary": "Normal service on all lines"
}
```
