# isEven

> Ask isEven, the tongue-in-cheek public API, whether a number is even or odd. Check one whole number or a list of up to 25, and get back a yes or no to branch on, the verdict as a word, and the spoof classified ad isEven attaches to every answer on its free tier, which covers 0 to 999,999. No account or API key required.

App · Misc References · 2 actions. Web page: https://docs.lodol.com/docs/integrations/iseven

## Actions

### Check several numbers

Ask isEven about up to 25 whole numbers in one step and get a verdict for each, in the order given, with the even and the odd ones listed and counted. isEven answers one number at a time, so each different number is one request; a repeated number is asked about once.

**Inputs**

- Numbers (`numbers`, list, required): The whole numbers to check, each from 0 to 999,999: a list from an earlier step, such as a column of a spreadsheet, or numbers separated by commas. Up to 25 at a time, since each is one request to isEven.

**Outputs**

- `count` (number): How many numbers were checked.
- `even_count` (number): How many of them isEven says are even.
- `even_numbers` (list): The even numbers, in the order given.
- `lookups` (number): How many requests were made to isEven: one for each different number.
- `odd_count` (number): How many of them isEven says are odd.
- `odd_numbers` (list): The odd numbers, in the order given.
- `results` (list): One verdict per number, in the order given.

**Example output**

```json
{
  "count": 3,
  "even_count": 1,
  "even_numbers": [
    2
  ],
  "lookups": 3,
  "odd_count": 2,
  "odd_numbers": [
    1,
    3
  ],
  "results": [
    {
      "ad": "1995 NISSAN Maxima, green, leather, loaded, CD, auto start, sunroof, 4-door, great condtion, NOT FOR SALE",
      "is_even": false,
      "is_odd": true,
      "number": 1,
      "parity": "odd"
    },
    {
      "ad": "FOR SALE - collection of old people call 253-555-7212",
      "is_even": true,
      "is_odd": false,
      "number": 2,
      "parity": "even"
    },
    {
      "ad": "Looking for someone to do yard work. Must have a hoolahoop. 760-555-7562",
      "is_even": false,
      "is_odd": true,
      "number": 3,
      "parity": "odd"
    }
  ]
}
```

### Check whether a number is even

Ask isEven whether one whole number is even or odd, and get a yes or no to branch on, the verdict as a word, and the spoof classified ad isEven attaches to every answer. The free public tier covers 0 to 999,999. No account or API key required.

**Inputs**

- Number (`number`, number, required): The whole number to check, from 0 to 999,999: the range isEven's free public tier answers for. A number from an earlier step, or typed in.

**Outputs**

- `ad` (text): The spoof classified ad isEven attaches to every answer on its free tier, a different one each time.
- `is_even` (true/false): True when isEven says the number is even.
- `is_odd` (true/false): True when isEven says the number is odd.
- `number` (number): The number that was checked.
- `parity` (text): The verdict as a word: even or odd.

**Example output**

```json
{
  "ad": "HELP WANTED: Child Care provider. Apply in person, Jack & Kill Childcare, 1905 NW Smith. NO PHONE CALLS",
  "is_even": true,
  "is_odd": false,
  "number": 6,
  "parity": "even"
}
```
