isEven

App · Misc References · 2 actions

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.

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

NumbersnumberslistRequired
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

countnumber
How many numbers were checked.
even_countnumber
How many of them isEven says are even.
even_numberslist
The even numbers, in the order given.
lookupsnumber
How many requests were made to isEven: one for each different number.
odd_countnumber
How many of them isEven says are odd.
odd_numberslist
The odd numbers, in the order given.
resultslist
One verdict per number, in the order given.
Example output
{
  "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

NumbernumbernumberRequired
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

adtext
The spoof classified ad isEven attaches to every answer on its free tier, a different one each time.
is_eventrue/false
True when isEven says the number is even.
is_oddtrue/false
True when isEven says the number is odd.
numbernumber
The number that was checked.
paritytext
The verdict as a word: even or odd.
Example output
{
  "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"
}

On this page