Yes or No API
Get a random yes/no answer with a matching gif — free, no key.
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
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 -s https://yesno.wtf/api curl -s "https://yesno.wtf/api?force=maybe"
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
| answer | yes, no or maybe |
| forced | true if you passed ?force= |
| image | URL of a matching animated GIF |
Common errors
| 400 | Invalid force value (must be yes, no or maybe). |
| 5xx | Rare — 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.