TL;DR
What it does: Check if any positive integer is even or odd. Returns a boolean plus a random silly ad.
Quick start: https://api.isevenapi.xyz/api/iseven/6
No API key needed - just call the URL
Overview
Free parity check API. Returns whether a number is even or odd, with a random advertisement. Silly but fun. No API key needed.
Live Example
Here's the exact URL to call and the real response you'll get:
The actual response you get:
{
"ad": "Drink Sprunk cola! The essence of life.",
"iseven": true
}
What does this data mean?
The response has two fields — iseven tells you if the number is even (true/false), and ad is a random silly advertisement.
- iseven
- Boolean —
trueif the number is even,falseif it's odd - ad
- String — A random silly advertisement (e.g., "Drink Sprunk cola! The essence of life.")
How to use this API
JavaScript Example
const num = 6;
fetch(`https://api.isevenapi.xyz/api/iseven/${num}`)
.then(res => res.json())
.then(data => {
console.log(`${num} is ${data.iseven ? 'even' : 'odd'}`);
console.log(`Ad: ${data.ad}`);
});
Python Example
import requests
num = 6
response = requests.get(f"https://api.isevenapi.xyz/api/iseven/{num}")
data = response.json()
print(f"{num} is {'even' if data['iseven'] else 'odd'}")
print(f"Ad: {data['ad']}")
Frequently Asked Questions
- Do I need an API key?
- No! isEven API requires no API key at all. Just call the URL with any positive integer.
- What numbers can I check?
- Any positive integer.
- How do I check if a number is odd?
- A number is odd when
isevenreturnsfalse. The API only tells you "is this even?" — if the answer is false, it's odd. - Is this a joke?
- Yes, it's intentionally silly — the response includes a random ad. But it works correctly! It returns actual parity results for real numbers.
- Can I use this commercially?
- Yes, this API is free for both personal and commercial use. Check the official documentation for any specific restrictions.
- Is there a rate limit?
- None documented.
- How do I parse the JSON response?
- In JavaScript:
data.isevenordata.ad. In Python:data['iseven']ordata['ad'].
API Details
- Base URL
https://api.isevenapi.xyz/api/iseven/- Documentation
- https://isevenapi.xyz/
- Category
- Entertainment
- Authentication
- None required
- Rate Limit
- None documented
- Geographic Coverage
- Global