API Directory › 🎉 Fun & Random › Yes or No
No authHTTPSCORS

Yes or No API

Get a random yes/no answer with a matching gif — free, no key.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Yes or No docs ↗

What it does

yesno.wtf answers any question with ‘yes’, ‘no’ or occasionally ‘maybe’, and returns a matching animated GIF. You can also force a particular answer.

Base URL

https://yesno.wtf

Authentication

None. GET /api returns {"answer": "yes", "forced": false, "image": "https://yesno.wtf/assets/yes/N.gif"}. Force with /api?force=yes|no|maybe.

Code examples

curl
curl -s https://yesno.wtf/api
curl -s "https://yesno.wtf/api?force=maybe"
JavaScript
const r = await fetch("https://yesno.wtf/api").then(r => r.json());
answerEl.textContent = r.answer;
gifEl.src = r.image;

Rate limits & quotas

No key, no documented rate limit. The GIFs are hosted on the same domain. The answer is uniformly random (weighted toward yes/no) unless you force it.

Key response fields

answeryes, no or maybe
forcedtrue if you passed ?force=
imageURL of a matching animated GIF

Common errors

400Invalid force value (must be yes, no or maybe).
5xxRare — default to a coin flip on your side.

When to use it (and alternatives)

A joke decision-maker, a ‘should I deploy on Friday’ button, or a chat-bot gag. Combine with the Bored API for ‘should I? / then do this’.

FAQ

Is the answer actually random?

Yes — it ignores your question entirely and picks randomly (mostly yes/no, rarely maybe). Use ?force= when you need a scripted outcome.

Can I get just the answer without a GIF?

The response always includes the image URL, but you can ignore it and use only answer.

Are the GIFs safe for work?

Generally yes — they are reaction GIFs. As with any third-party media, review before embedding in a professional context, or host your own set.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Fun & Random APIs

← Back

More Fun & Random APIs · All 196 APIs